# CVE-2024-38474: Apache HTTP Server weakness with encoded question marks in backreferences

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.46%, higher than 84% of CVEs (2026-12-01)
- Published: 2024-07-01T18:14:47.004Z
- Modified: 2026-09-08T08:45:42.235Z
- Also known as: BIT-APACHE-2024-38474
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache HTTP Server: from 2.4.0 up to 2.4.59
- apache http_server: from 2.4.0 before 2.4.60
- netapp clustered_data_ontap: 9.0
- apache (Bitnami): from 2.4.0 before 2.4.60

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://httpd.apache.org/security/vulnerabilities_24.html> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240712-0001/> (advisory, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2024/07/01/7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38474> (web)

## Sources

- CVE List: [CVE-2024-38474](https://www.cve.org/CVERecord?id=CVE-2024-38474), CVE Terms of Use, modified 2025-03-25
- NVD: [CVE-2024-38474](https://nvd.nist.gov/vuln/detail/CVE-2024-38474), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-APACHE-2024-38474](https://osv.dev/vulnerability/BIT-APACHE-2024-38474), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-38474 · Whole record: https://cve.day/CVE-2024-38474.json · Rebuilt by cve.day 2026-11-25T22:58:42.416Z
