CVE-2024-38474 Apache HTTP Server weakness with encoded question marks in backreferences
CriticalCVSS 9.8
EPSS 2.5%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Apache HTTP ServerUbuntuDebian
Description
Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in
directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant to only to be executed as CGI.
Users are recommended to upgrade to version 2.4.60, which fixes this issue.
Some RewriteRules that capture and substitute unsafely will now fail unless rewrite flag "UnsafeAllow3F" is specified.
Upgrade path
15 packages: 14 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/apache2(Alpine v3.17) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.18) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.19) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.20) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.21) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.22) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.23) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| alpine/apache2(Alpine v3.24) | < 2.4.60-r0 | 2.4.60-r0 | Fixed |
| Apache HTTP Server | >= 2.4.0, < 2.4.60; >= 2.4.0, <= 2.4.59 | 2.4.60 | Fixed |
| debian/apache2(Debian 12) | < 2.4.61-1~deb12u1; = 2.4.57-2; = 2.4.57-3; = 2.4.58-1 +7 more | 2.4.61-1~deb12u1 | Fixed |
| debian/apache2(Debian 13) | < 2.4.60-1 | 2.4.60-1 | Fixed |
| debian/apache2(Debian 14) | < 2.4.60-1 | 2.4.60-1 | Fixed |
| ubuntu/apache2(Ubuntu 22.04) | < 2.4.52-1ubuntu4.16 | 2.4.52-1ubuntu4.16 | Fixed |
| ubuntu/apache2(Ubuntu 24.04) | < 2.4.58-1ubuntu8.8 | 2.4.58-1ubuntu8.8 | Fixed |
| netapp clustered data ontap | = 9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/apache2(Debian:12) | < 2.4.61-1~deb12u1 | 2.4.61-1~deb12u1 |
| debian/apache2(Debian:12) | = 2.4.57-2 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.57-3 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.58-1 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.59-1 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.59-1~deb10u1 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.59-1~deb11u1 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.59-1~deb12u1 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.59-2 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.60-1 | No fix listed |
| debian/apache2(Debian:12) | = 2.4.61-1~deb11u1 | No fix listed |
| debian/apache2(Debian:13) | < 2.4.60-1 | 2.4.60-1 |
| debian/apache2(Debian:14) | < 2.4.60-1 | 2.4.60-1 |
| ubuntu/apache2(Ubuntu:22.04) | < 2.4.52-1ubuntu4.16 | 2.4.52-1ubuntu4.16 |
| Apache HTTP Server | >= 2.4.0, <= 2.4.59 | No fix listed |
| alpine/apache2(Alpine:v3.17) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.18) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.19) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.20) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.21) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.22) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.23) | < 2.4.60-r0 | 2.4.60-r0 |
| alpine/apache2(Alpine:v3.24) | < 2.4.60-r0 | 2.4.60-r0 |
| ubuntu/apache2(Ubuntu:24.04) | < 2.4.58-1ubuntu8.8 | 2.4.58-1ubuntu8.8 |
| Apache HTTP Server | >= 2.4.0, < 2.4.60 | 2.4.60 |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| netapp clustered data ontap | = 9.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-38474 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6885-1 vendor-advisory
- USN-6885-3 vendor-advisory
- USN-6885-4 vendor-advisory
- USN-6885-5 vendor-advisory
- USN-6885-6 vendor-advisory
- www.cve.org
- httpd.apache.org vendor-advisory
- security.netapp.com third-party-advisory
- www.openwall.com
- security.alpinelinux.org vendor-advisory