CVE-2024-38474
Apache HTTP Server weakness with encoded question marks in backreferences
Severity: High CVSS 8.1. Status in our packages: Fixed.
About CVE-2024-38474
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.
Description quoted from the CVE record at cve.org.
| Published | 2024-07-01 |
|---|---|
| Weakness | CWE-116 Improper Encoding or Escaping of Output |
| CVSS | High 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (scored by CISA-ADP) |
| Affected upstream | Apache HTTP Server 2.4.0 through 2.4.59 |
Our advisory GPSA-2026-0026
GPSA-2026-0026: httpd: 72 security fixes for CentOS 7, including CVE-2024-38475 (opens in a new tab) (Important, issued 2026-12-06).
Status in GetPageSpeed packages
| Product | Status | Fixed in | Details |
|---|---|---|---|
| httpd | Fixed | 2.4.6-107.el7.everpatch1 | GPSA-2026-0026 (opens in a new tab) |
| Apache httpd 2.4.6 (CentOS 7) | Fixed | 2.4.6-106.el7.gps1 Affected upstream: 2.4.0 through 2.4.59 | Everpatch httpd |
Check a server for CVE-2024-38474
Everpatch httpd 2.4.6-106.el7.gps1 or later carries the fix. The package changelog names every CVE a build fixes.
rpm -q httpd
rpm -q --changelog httpd | grep -F CVE-2024-38474The httpd package restarts the server on update.
Fixed in the same build
- CVE-2024-38477: Apache HTTP Server: Crash resulting in Denial of Service in mod_proxy via a malicious request
- CVE-2024-38476: Apache HTTP Server may use exploitable/malicious backend application output to run local handlers via internal redirect
- CVE-2024-38475: Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
- CVE-2024-38473: Apache HTTP Server proxy encoding problem
- CVE-2024-24795: Apache HTTP Server: HTTP Response Splitting in multiple modules
- CVE-2023-38709: Apache HTTP Server: HTTP response splitting
Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.