Apache2: Improper escaping of output
Affects Apache apache2Source GCVE Database
Exploited in the wild · KEV due 22 May 2025 · public detection template (Nuclei) · 99% EPSS · fixed in 2.4.7-1ubuntu4.22+esm10 : patch Apache apache2 now.
Data as of 24 Nov 2026, 21:14 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 9.1 |
|---|
- KEV deadline
- US federal agencies must patch by this date; a sensible deadline for everyone else. Other KEV due dates
- EPSS
- 99.9% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.4.7-1ubuntu4.22+esm10, 2.4.18-2ubuntu3.17+esm13, 2.4.29-1ubuntu4.27+esm3 +3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 1 Jul 2024
Detectable: evidence found.
nuclei template: Sonicwall - Pre-Authentication Arbitrary File Read
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: evidence found.
Listed in CISA KEV 304 days after disclosure
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE ID reserved
by Apache Software Foundation
, 14 days before disclosure
CVE published
on cve.org
, t = 0
Added to CISA KEV (opens in a new tab)
exploitation confirmed
, 304 days after disclosure
KEV remediation due
US federal deadline
, 325 days after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA KEV (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSapache2pkg:deb/ubuntu/apache2?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSapache2pkg:deb/ubuntu/apache2?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSapache2pkg:deb/ubuntu/apache2?arch=source&distro=focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSapache2pkg:deb/ubuntu/apache2?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTSapache2pkg:deb/ubuntu/apache2?arch=source&distro=esm-infra/xenialOther threats | Affected
| Fixed in
|
Ubuntu Pro 14.04 LTSapache2pkg:deb/ubuntu/apache2?arch=source&distro=esm-infra-legacy/trustyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected. Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.
References
- ubuntu.com/security/CVE-2024-38475 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-38475 (opens in a new tab)
- httpd.apache.org/security/vulnerabilities_24.html (opens in a new tab)
- httpd.apache.org/security/vulnerabilities_24.html (opens in a new tab)
- ubuntu.com/security/notices/USN-6885-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-6885-3 (opens in a new tab)
- cisa.gov/known-exploited-vulnerabilities-catalog (opens in a new tab)
- ubuntu.com/security/notices/USN-6885-5 (opens in a new tab)