CVE-2024-38475 Details
Description
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.
A vulnerability exists in Apache HTTP Server in the mod_rewrite module, specifically in versions 2.4.59 and earlier. The issue arises from improper escaping of output, which allows an attacker to map URLs to filesystem locations that the server is permitted to serve but are not intentionally or directly accessible via any URL. This can lead to unauthorized code execution or disclosure of source code. The vulnerability is particularly relevant for substitutions in server context that use backreferences or variables as the first segment of the substitution. Some unsafe RewriteRules may be disrupted by this change, but the rewrite flag 'UnsafePrefixStat' can be used to revert to the previous behavior, provided the substitution is properly constrained.
Users are advised to upgrade to Apache HTTP Server version 2.4.60 or later, which addresses this vulnerability. After upgrading, review and adjust any RewriteRules that may be affected by the change in how substitutions are handled.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475 | CISA-ADP | Third Party AdvisoryUS Government Resource |
| https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf | CVE | Patch |
| https://httpd.apache.org/security/vulnerabilities_24.html | CVE | Vendor Advisory |
| https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018 | CVE | Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20240712-0001/ | CVE | Third Party Advisory |
| https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227 | CVE | Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2024/07/01/8 | CVE | Third Party Advisory |
| https://httpd.apache.org/security/vulnerabilities_24.html | [email protected] | Vendor Advisory |
| https://security.netapp.com/advisory/ntap-20240712-0001/ | [email protected] | Third Party Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| Apache HTTP Server Improper Escaping of Output Vulnerability | May 1, 2025 | May 22, 2025 | Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache http server | >= 2.4.0, < 2.4.60 |
CPE
Remediation
| |
| netapp ontap 9 | All versions |
CPE
Remediation
| |
| sonicwall sma 200 firmware | < 10.2.1.14-75sv |
CPE
Remediation
| |
| sonicwall sma 200 | All versions |
CPE
Remediation
| |
| sonicwall sma 210 firmware | < 10.2.1.14-75sv |
CPE
Remediation
| |
| sonicwall sma 210 | All versions |
CPE
Remediation
| |
| sonicwall sma 400 firmware | < 10.2.1.14-75sv |
CPE
Remediation
| |
| sonicwall sma 400 | All versions |
CPE
Remediation
| |
| sonicwall sma 410 firmware | < 10.2.1.14-75sv |
CPE
Remediation
| |
| sonicwall sma 410 | All versions |
CPE
Remediation
| |
| sonicwall sma 500v firmware | < 10.2.1.14-75sv |
CPE
Remediation
| |
| sonicwall sma 500v | All versions |
CPE
Remediation
| |
Change History
16 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 17, 2025 | Reanalysis | [email protected] |
| Nov 13, 2025 | Reanalysis | [email protected] |
| Nov 4, 2025 | Modified Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 23, 2025 | Modified Analysis | [email protected] |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| May 2, 2025 | Initial Analysis | [email protected] |
| May 2, 2025 | CVE CISA KEV Update | Cybersecurity and Infrastructure Security Agency (CISA) U.S. Civilian Government |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 12, 2024 | CVE Modified | [email protected] |
| Jul 8, 2024 | CVE Modified | CISA-ADP |
| Jul 1, 2024 | New CVE Received | [email protected] |