CVE-2026-42356

Apache HTTP Server: limited RCE for some internal redirects to non-CGI files in CGI directories

Published Oct 1, 2026 CVSS 3.1 · 3.7 Low EPSS < 1% KEV · Not listed
Description
Deployment of wrong handler vulnerability in Apache HTTP Server allows the target of some internal redirects from CGI programs to also be treated as CGI and executed. The target must already be in a directory enabled for CGI and have no other extension understood by mod_mime.



This issue affects Apache HTTP Server: from 2.4.60 through 2.4.68.

Analysis

AI-generated

Technical impact

The vulnerability arises when an internal redirect points to a file located inside a directory marked as executable by mod_cgi but the file lacks an extension treated as CGI by mod_mime. The server incorrectly processes this target as CGI and executes it, allowing an attacker to run arbitrary code. The flaw is a form of limited remote code execution, confined to internal redirects to files in CGI directories.

Affected Systems

Apache HTTP Server versions 2.4.60 through 2.4.68 are affected. No other Apache products or versions are listed.

Risk and Exploitability

The flaw is exploitable by an attacker who can control the arguments to a CGI program that performs an internal redirect. Because the target file must already exist in a CGI-enabled directory and have no mod_mime mapping, the attack surface is narrow but still permits arbitrary code execution. The CVSS score is 3.7, and EPSS data is unavailable, so the current exploitation likelihood cannot be quantified. The vulnerability is not listed in CISA KEV. The most likely attack vector is an internal redirect from a CGI script to a non-CGI file in a CGI directory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache HTTP Server to version 2.4.69 or newer
  • Avoid internal redirects to files inside directories configured as CGI directories
  • If upgrading is not possible, restrict internal redirect target directories to non-CGI paths or disable CGI execution for those directories

Generated by OpenCVE AI on October 1, 2026 at 19:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4902-1 apache2 security update
Debian DSA Debian DSA DSA-6569-1 apache2 security update
Ubuntu USN Ubuntu USN USN-9090-1 Apache HTTP Server vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Low

Type Values Removed Values Added
First Time appeared Apache
Apache http Server
Vendors & Products Apache
Apache http Server
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Deployment of wrong handler vulnerability in Apache HTTP Server allows the target of some internal redirects from CGI programs to also be treated as CGI and executed. The target must already be in a directory enabled for CGI and have no other extension understood by mod_mime. This issue affects Apache HTTP Server: from 2.4.60 through 2.4.68.
Title Apache HTTP Server: limited RCE for some internal redirects to non-CGI files in CGI directories
Weaknesses CWE-430
References
Weaknesses
  • CWE-430

    Deployment of Wrong Handler

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Oct 1, 2026, 8:09 PM
Reserved
Apr 26, 2026, 2:13 PM
Status
Analyzed
Published
Oct 1, 2026, 4:17 PM
Modified
Oct 6, 2026, 2:07 PM
Severity
Low
Public date
Oct 1, 2026, 3:54 PM