Apache Software Foundation Apache HTTP Server
Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
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.
Timeline
Days relative to CVE publicationFirst public PoC 48 days after publication; added to CISA KEV 304 days after publication. First PoC: p0in7s/CVE-2024-38475 (created 18 Aug 2024, found by us: backfilled).
PoC repositories
Found on GitHub.6 PoCs · 1 pending · 3 informational
PoCs 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| p0in7s/CVE-2024-38475 | 18 Aug 2024 +48 d | 17 | PoC |
| soltanali0/CVE-2024-38475 | 12 Dec 2024 +164 d | 5 | PoC |
| watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain | 1 May 2025 +304 d | 19 | PoC |
| abrewer251/CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoC | 7 May 2025 +309 d | 0 | PoC |
| syaifulandy/CVE-2024-38475 | 9 May 2025 +312 d | 0 | PoC via PoC Index |
| burjoy/Apache-2.4.58-Proof-of-Concept | 14 May 2026 +1.9 y | 0 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Nyakki-Labs-0x420/Myesve | 31 May 2026 +1.9 y | 0 | Pending · mkdir /quarantine/Nyakki-Labs-0x420__Myesve-331f62970e50: permission denied |
Informational 3
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| mrmtwoj/apache-vulnerability-testing | 5 Oct 2024 +96 d | backfilled | 136 | Informational · list |
| kr-ale/Stapler | 18 Nov 2025 +1.4 y | backfilled | 0 | Informational · list
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| akabul0us/apache_poc | 17 Oct 2026 +2.3 y | 14 Nov 2026 | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Sonicwall - Pre-Authentication Arbitrary File Read | 2 May 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposGET /{var}/{var}{var}
GET /../../index.html
GET /{var}/../../index.html
GET /{var}{var}/{var}/{var}{var}
- Seen in
- 1 repo: p0in7s/CVE-2024-38475
- Evidence
- p0in7s/CVE-2024-38475/CVE-2024-38475.py:31
POST /tmp/temp.db%3f.1.1.1.1a-1.css
- Body markers
tool=TRACEROUTE6_CMDtarget=;inapplication/x-www-form-urlencoded;charset=UTF-8- Seen in
- 1 repo: watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain
- Evidence
- watchtowrlabs/watchTowr-vs-SonicWall-PreAuth-RCE-Chain/watchTowr-vs-SonicWall-PreAuth-RCE-Chain.py:99
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*/[^/?#]*[^/?#]*(?:[?#].*)?$
(?i)^/\.\./\.\./index\.html(?:[?#].*)?$
(?i)^/[^/?#]*/\.\./\.\./index\.html(?:[?#].*)?$
(?i)^/[^/?#]*[^/?#]*/[^/?#]*/[^/?#]*[^/?#]*(?:[?#].*)?$
(?i)^/tmp/temp\.db%3f\.1\.1\.1\.1a-1\.css(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-38475 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; reference:url,poc.griffinguard.io/cve/CVE-2024-38475; classtype:web-application-attack; sid:9728707; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-38475 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/../../index.html"; reference:url,poc.griffinguard.io/cve/CVE-2024-38475; classtype:web-application-attack; sid:9324838; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-38475 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/../../index.html"; reference:url,poc.griffinguard.io/cve/CVE-2024-38475; classtype:web-application-attack; sid:9806996; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-38475 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; reference:url,poc.griffinguard.io/cve/CVE-2024-38475; classtype:web-application-attack; sid:9453626; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-38475 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/tmp/temp.db%3f.1.1.1.1a-1.css"; http.request_body; content:"tool=TRACEROUTE6_CMD"; http.request_body; content:"target=|3b|"; reference:url,poc.griffinguard.io/cve/CVE-2024-38475; classtype:web-application-attack; sid:9833517; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2024-38475)
id: gg-pocmon-cve-2024-38475-9728707
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-38475. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-38475
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.38475
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2024-38475)
id: gg-pocmon-cve-2024-38475-9324838
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-38475. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-38475
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/../../index.html'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.38475
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2024-38475)
id: gg-pocmon-cve-2024-38475-9806996
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-38475. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-38475
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/../../index.html'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.38475
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2024-38475)
id: gg-pocmon-cve-2024-38475-9453626
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-38475. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-38475
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.38475
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2024-38475)
id: gg-pocmon-cve-2024-38475-9833517
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-38475. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-38475
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/tmp/temp.db%3f.1.1.1.1a-1.css'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.38475