CVE-2024-38474
Apache HTTP Server weakness with encoded question marks in backreferences
Reported by apache · Published July 1, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| apache2 | Alpine | 2.4.60-r0 |
| mod_ssl | Amazon Linux | 1:2.4.61-1.amzn2023, 1:2.4.61-1.amzn2.0.1 |
| mod_ldap | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| httpd-tools | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| httpd | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| httpd-manual | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| httpd-devel | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| httpd-filesystem | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| mod_proxy_html | Amazon Linux | 1:2.4.61-1.amzn2023, 1:2.4.61-1.amzn2.0.1 |
| mod_session | Amazon Linux | 2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1 |
| mod_lua | Amazon Linux | 2.4.61-1.amzn2023 |
| httpd-core | Amazon Linux | 2.4.61-1.amzn2023 |
5 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache HTTP Server | 2.4.0 |
| alpine | apache2 | 0 |
| amazon:2 | mod_ssl | 0 |
| amazon:2 | mod_ldap | 0 |
| amazon:2023 | httpd-tools | 0 |
| amazon:2 | httpd | 0 |
| amazon:2 | httpd-manual | 0 |
| amazon:2023 | httpd-devel | 0 |
| Apache Software Foundation | Apache HTTP Server | 2.4.0 |
| amazon:2 | httpd-filesystem | 0 |
| amazon:2023 | mod_ldap | 0 |
| amazon:2023 | mod_proxy_html | 0 |
| amazon:2023 | mod_session | 0 |
| amazon:2 | httpd-tools | 0 |
| amazon:2023 | httpd-filesystem | 0 |
| amazon:2 | mod_session | 0 |
| amazon:2 | mod_proxy_html | 0 |
| amazon:2023 | mod_lua | 0 |
| amazon:2023 | httpd-core | 0 |
| amazon:2023 | httpd | 0 |
…and 4 more
Timeline
- Jul 1, 2024 CVE Published
- Jul 2, 2024 EPSS Score (30 in total, the first dated here)
- Jul 13, 2024 PoC Published (21 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (29 in total, the first dated here)
- May 4, 2026 Security Advisory (50 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (48 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-38474
vulnetix vdb fixes CVE-2024-38474
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38474/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisory
- http://www.openwall.com/lists/oss-security/2024/07/01/7 url