CVE-2026-42356: Red Hat arbitrary code execution via incorrect handler assignment during internal CGI redirects
This Red Hat advisory covers CVE-2026-42356 in Red Hat Hardened Images, Red Hat Enterprise Linux 10 and Red Hat Enterprise Linux 9.
Key facts
- Vendor rating
- Low, CVSS 3.7
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N· base score 3.7, scored by CISA-ADPAttack vector: network. Attack complexity: high. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: none. Integrity impact: low. Availability impact: none.- Weakness
- CWE-430 Deployment of wrong handler
- EPSS
- 0.44% chance of exploitation in the next 30 days (38th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: partial. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Affected
- 2.4.60; 2.4.68
- Fixed in
- httpd-main-2.4.69-1.hum1, RHSA-2026:74858
- Source published
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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.
An attacker could achieve unintended code execution when an internal redirect generated by a Common Gateway Interface (CGI) program points to a non-executable file.
If the target file resides in a directory configured for CGI execution and lacks a file extension recognized by the MIME handler, the server incorrectly treats and executes the target file as a script. This issue could allow an attacker to run unauthorized commands or code within the server context.
Red Hat severity: Low — CVSS 3.7 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N). Weakness: CWE-430.
Affected Red Hat products: Red Hat Hardened Images; Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 9; Red Hat JBoss Core Services. Red Hat lists Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8 as not affected.
Red Hat fixing advisory: RHSA-2026:74858.
Affected products named by the advisory: Red Hat package: httpd.
Text from the source record.
How to fix CVE-2026-42356
Upgrade to a fixed release named by Red Hat:
- httpd-main-2.4.69-1.hum1
- RHSA-2026:74858
Vendor guidance
- If CGI functionality is not required, disable CGI execution by commenting out `mod_cgi` or `mod_cgid` in the Apache configuration (for example, in `/etc/httpd/conf.modules.d/01-cgi.conf`), or by removing `ExecCGI` from `Options` directives in `/etc/httpd/conf/httpd.conf`. Apply the changes to the running service: systemctl reload httpd Caveats: Disabling CGI modules or execution options will prevent any existing CGI applications from functioning. Warning: Reloading or restarting the httpd service may temporarily disrupt active connections.
CVE-2026-42356 in other vendors' advisories
- Apache: CVE-2026-42356, low severity
- NetApp: NTAP-20261007-0020, low severity
More Red Hat Linux advisories
CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli DecoderCVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-freeCVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCECVE-2026-125350Nov 10, 2026Use after free in XMLCVE-2026-114713Nov 8, 2026Command injection via unescaped message tagCVE-2026-90436Nov 6, 2026Remote code execution via insecure deserialization of SOAP fault messages
Get an email when Red Hat Web Servers & Proxies publishes the next one.
See Red Hat Web Servers & Proxies's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.