CVE
CVE-2024-38475
Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
Severity
Critical
Base CVSS
9.1
Fixed in
9a6157d1e2f7ab15963020381054b48782bc18cf,2.4.60,1:2.4.37-65.module+el8.10.0+22069+b47f5c72.1,0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1,0:1.15.7-10.module+el8.10.0+21653+eaff63f0,1:2.0.8-8.module+el8.9.0+19080+567b90f8,1:2.4.57-11.el9_4,0:2.4.57-11.el9_4,2.4.61-1~deb11u1,2.4.60-1,2.4.61-1~deb12u1,0:2.4.62-1ubuntu1,2.4.29-1ubuntu4.27+esm3,2.4.41-4ubuntu3.19,2.4.58-1ubuntu8.2,2.4.52-1ubuntu4.10,2.4.60-r0,0:2.4.57-11.0.1.el9_4,1:2.4.57-11.0.1.el9_4,0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1,0:1.15.7-10.module+el8.10.0+90327+96b8ea28,1:2.0.8-8.module+el8.9.0+90011+2f9c6a23,1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1,0:2.4.6-99.0.3.el7_9.1,1:2.4.6-99.0.3.el7_9.1,0:2.4.61-1.103.amzn1,1:2.4.61-1.103.amzn1,0:2.4.61-1.amzn2.0.1,1:2.4.61-1.amzn2.0.1,0:2.4.61-1.amzn2023,1:2.4.61-1.amzn2023
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.
Severity scores
Source
Severity
Base score
CVSS version
Score vector
NVD
Critical
9.1
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV
0
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Endor Labs
9.1
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign use
Unknown
References
http://www.openwall.com/lists/oss-security/2024/07/01/8, https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018, https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?fieldcve=CVE-2024-38475, https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38475.json, https://httpd.apache.org/security/vulnerabilities24.html, https://nvd.nist.gov/vuln/detail/CVE-2024-38475, https://security.netapp.com/advisory/ntap-20240712-0001/, https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf
Basic information
Base CVSS
9.1
EPSS probability
1.0
EPSS percentile
0.99974
Introduced version
da5873e80d6eee7a0838793bf68f1d0254745fbb,2.4.1,0
Fix available
9a6157d1e2f7ab15963020381054b48782bc18cf,2.4.60,1:2.4.37-65.module+el8.10.0+22069+b47f5c72.1,0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1,0:1.15.7-10.module+el8.10.0+21653+eaff63f0,1:2.0.8-8.module+el8.9.0+19080+567b90f8,1:2.4.57-11.el9_4,0:2.4.57-11.el9_4,2.4.61-1~deb11u1,2.4.60-1,2.4.61-1~deb12u1,0:2.4.62-1ubuntu1,2.4.29-1ubuntu4.27+esm3,2.4.41-4ubuntu3.19,2.4.58-1ubuntu8.2,2.4.52-1ubuntu4.10,2.4.60-r0,0:2.4.57-11.0.1.el9_4,1:2.4.57-11.0.1.el9_4,0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1,0:1.15.7-10.module+el8.10.0+90327+96b8ea28,1:2.0.8-8.module+el8.9.0+90011+2f9c6a23,1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1,0:2.4.6-99.0.3.el7_9.1,1:2.4.6-99.0.3.el7_9.1,0:2.4.61-1.103.amzn1,1:2.4.61-1.103.amzn1,0:2.4.61-1.amzn2.0.1,1:2.4.61-1.amzn2.0.1,0:2.4.61-1.amzn2023,1:2.4.61-1.amzn2023
Endor Patches
Fix critical vulnerabilities instantly
Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.
Fix without upgradingGet a demo of Endor Labs today.