CVE-2024-38475: 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...
Critical CVSS 9.1
- CVE id
- CVE-2024-38475
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Apache HTTP Server Runtimes and servers |
>= 2.4.0, < 2.4.60 | 2.4.60 |
How to fix it
Upgrade Apache HTTP Server to 2.4.60 or later.
httpd -v
apache2 -v
- Install the patched Apache HTTP Server release (the httpd image tag, or your distribution's apache2/httpd security update) and restart it.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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
- CVE-2024-38475 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-38475
- Web: https://httpd.apache.org/security/vulnerabilities_24.html
- Web: https://security.netapp.com/advisory/ntap-20240712-0001/
- Web: https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf
- Web: https://httpd.apache.org/security/vulnerabilities_24.html
- Web: https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018
- Web: https://security.netapp.com/advisory/ntap-20240712-0001/
- Web: https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227
- Web: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.