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

Low 3.7 Published Updated

Attackers can execute arbitrary code via internal redirects to non-CGI files in CGI-enabled directories due to incorrect handler deployment.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-42356?

CVE-2026-42356 is a low-severity code injection vulnerability in Apache Http Server, published on 1 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-430

Which versions are affected by CVE-2026-42356?

1 open source package ship an affected version, including apache. It affects 1 product.

PackageAffectedFixed in
apache BitnamiFrom 2.4.02.4.69

Products include Apache Http Server.

How do I fix CVE-2026-42356?

Upgrade apache to 2.4.69 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-42356 being exploited?

There is no known exploitation of CVE-2026-42356 in the wild and no public exploit code.

All Apache Http Server vulnerabilities

Sources

Also known as ALPINE-CVE-2026-42356, AZL-106752, BELL-CVE-2026-42356, BIT-apache-2026-42356, CLSA-2026-1791881377, CLSA-2026-1791883129 and 7 more.

Is CVE-2026-42356 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free