Exploit database

Vulnerability

CVE-2024-38475

Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

Vulnerability details

Score
9.1
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

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.

CVE Program

Exploit source choices

4 sources
mrmtwoj/apache-vulnerability-testing
GH-82776deb596829caefe65fc11d6863a6GitHubUnofficial GitHub sourcePreferred

Apache HTTP Server Vulnerability Testing Tool | PoC for CVE-2024-38472 , CVE-2024-39573 , CVE-2024-38477 , CVE-2024-38476 , CVE-2024-38475 , CVE-2024-38474 , CVE-2024-38473 , CVE-2023-38709

2024-10-052 files · 135 stars
p0in7s/cve-2024-38475
GH-cb592b37b8277a06c4f81f10609e1514GitHubUnofficial GitHub source

p0in7s/cve-2024-38475 source repository

2024-08-184 files · 17 stars
soltanali0/cve-2024-38475
GH-36b7bceee3fa3b533004b85661bf9f5bGitHubUnofficial GitHub source

exploit CVE-2024-38475(mod_rewrite weakness with filesystem path matching)

2024-12-122 files · 5 stars