Vulnerabilities

Vulnerability · CVE-2024-38475

Apache HTTP Server Improper Escaping of Output Vulnerability

Published Jul 1, 2024 · catalog updated Jun 17, 2026 · Apache HTTP Server

Patch now

CVE-2024-38475 is in the CISA known-exploited catalog, due May 22, 2025. Confirm Apache HTTP Server against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Severity
Critical9.1
Known exploitation
CISA KEV and VulnCheck KEV
EPSS
99.96%
Remediation
Remediation guidance
Affected products
cpe apache/http server · cpe netapp/ontap 9 · cpe sonicwall/sma 200 firmware · cpe sonicwall/sma 210 firmware · cpe sonicwall/sma 400 firmware · cpe sonicwall/sma 410 firmware

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • cpe apache/http serverversion unspecified
  • cpe netapp/ontap 9version unspecified
  • cpe sonicwall/sma 200 firmwareversion unspecified
  • cpe sonicwall/sma 210 firmwareversion unspecified
  • cpe sonicwall/sma 400 firmwareversion unspecified
  • cpe sonicwall/sma 410 firmwareversion unspecified
  • cpe sonicwall/sma 500v firmwareversion unspecified
  • stated HTTP Server<= 2.4.59
  • vendor Apache HTTP Serverversion unspecified

How to fix CVE-2024-38475

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2024-38475 is in the CISA known-exploited catalog, due May 22, 2025. Confirm Apache HTTP Server against the vendor advisory and apply that fix. The CVSS score does not change the priority.

Which versions are affected?

Compare what you have installed with HTTP Server <= 2.4.59. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

What should an analyst verify?

CWE-116. EPSS 99.96%. The CISA KEV listing is the exploitation evidence. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Jul 1, 2024 · Catalog

    Detected

    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 subs

  2. May 1, 2025 · CISA KEV

    Known exploited

    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

  3. May 22, 2025 · CISA KEV

    Remediation due

    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

  4. Jun 17, 2026 · Catalog

    Updated

    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 subs

Sources

  • CISA KEVConfirmed exploitationCVE-2024-38475

    Apache HTTP Server contains an improper escaping of output vulnerability in mod_rewrite that 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.

    cisa.gov
  • CVE.orgVulnerability recordCVE-2024-38475

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2024-38475

    30-day exploitation probability 100.0%

    first.org
  • NIST NVDVulnerability recordCVE-2024-38475

    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

    nvd.nist.gov
  • VulnCheck KEVConfirmed exploitationCVE-2024-38475

    Apache HTTP Server contains an improper escaping of output vulnerability in mod_rewrite that 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 o

    vulncheck.com

References

Freshness

Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.