PoC Monitor
← All CVEs
CVE-2024-38475published 1 Jul 2024 18:15 UTCData: JSON · API

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.

First public PoC 48 daysafter publication · 18 Aug 2024
Public PoCs76 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.1critical · scored by CISA ADP · CWE-116
CISA KEV 1 May 2025304 days after publication

Timeline

Days relative to CVE publication
t=0+60+120+180+240+300CVE published1 Jul 2024 · t = 0First public PoC18 Aug 2024 · t+48dAdded to CISA KEV1 May 2025 · t+304d

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
Nyakki-Labs-0x420/Myesve 31 May 2026 +1.9 y 0 Pending · mkdir /quarantine/Nyakki-Labs-0x420__Myesve-331f62970e50: permission denied
Informational 3
RepositoryCreatedFound by usStarsAssessment
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
  • owner account created less than 30 days before the repo

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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Sonicwall - Pre-Authentication Arbitrary File Read2 May 202514 Nov 2026

PoC characteristics

What to hunt for in your logs · from 6 PoC repos

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_CMD target=; in application/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.

GET /{var}/{var}{var}
(?i)^/[^/?#]*/[^/?#]*[^/?#]*(?:[?#].*)?$
GET /../../index.html
(?i)^/\.\./\.\./index\.html(?:[?#].*)?$
GET /{var}/../../index.html
(?i)^/[^/?#]*/\.\./\.\./index\.html(?:[?#].*)?$
GET /{var}{var}/{var}/{var}{var}
(?i)^/[^/?#]*[^/?#]*/[^/?#]*/[^/?#]*[^/?#]*(?:[?#].*)?$
POST /tmp/temp.db%3f.1.1.1.1a-1.css
(?i)^/tmp/temp\.db%3f\.1\.1\.1\.1a-1\.css(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /{var}/{var}{var}
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;)
GET /../../index.html
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;)
GET /{var}/../../index.html
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;)
GET /{var}{var}/{var}/{var}{var}
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;)
POST /tmp/temp.db%3f.1.1.1.1a-1.css
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.

GET /{var}/{var}{var}
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
GET /../../index.html
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
GET /{var}/../../index.html
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
GET /{var}{var}/{var}/{var}{var}
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
POST /tmp/temp.db%3f.1.1.1.1a-1.css
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