Patchfirst
CVE-2024-38475 KEVPublic exploit Critical · 9.1 EPSS >99.9%

Apache HTTP Server Improper Escaping of Output Vulnerability

Apache · HTTP Server

Summary

Apache HTTP Server 2.4.59 and earlier contains an improper escaping of output flaw in mod_rewrite, affecting substitutions in server context that begin with a backreference or variable as the first segment. An unauthenticated remote attacker can exploit it without user interaction, by sending requests that map URLs to filesystem locations the server is permitted to serve but that are not intended to be directly reachable, resulting in code execution or source code disclosure.

Official description · NVD

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.

Breakdown
69.4 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
4/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 10 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 48 days after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+48 days
  3. First seen exploitedVulnCheck KEV evidence+10 mo
  4. Added to CISA KEVEU database agrees+10 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

4 , grouped by in kill-chain order 4

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
MITRE CTID mapping of the KEV entry · how it is exploited

Improper escaping in Apache HTTP Server versions 2.4.59 and before permits code execution or disclosure of source code, as well as session hijacking and a potential full system compromise. An attacker can use a crafted URL to perform a traversal attack to trick the Apache server into reading sensitive files.

ExecutionTA0002

Command and Scripting Interpreter T1059 Medium
MITRE CTID mapping of the KEV entry · primary impact

Credential AccessTA0006

Steal Application Access Token T1528 Medium
MITRE CTID mapping of the KEV entry · primary impact

CollectionTA0009

Data from Local System T1005 Medium
MITRE CTID mapping of the KEV entry · primary impact

Detection

0 rules for this CVE · 272 general rules for its techniques

Rules for this CVE

0 that reference CVE-2024-38475 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Exploit Public-Facing ApplicationT1190149 general rules
Command and Scripting InterpreterT105995 general rules
Steal Application Access TokenT152814 general rules
Data from Local SystemT100514 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

7 links, grouped by NVD tag (2 duplicates merged)
↑ ↓ chooseEnter openEsc close