CVE-2024-38475 in apache http server
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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.
Affected software: apache http server, netapp ontap 9, sonicwall sma 200 firmware, sonicwall sma 210 firmware, sonicwall sma 400 firmware, sonicwall sma 410 firmware, sonicwall sma 500v firmware
Scores
- CVSS: 9.1 (critical)
- EPSS: 99.96% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2025-05-01
- Published: 2024-07-01
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): Yes, published
- Mitigation: Yes, see below
How to mitigate it
Upgrade Apache HTTP Server to 2.4.60 or later (CVE-2024-38475)
Patch or upgrade. mod_rewrite in Apache HTTP Server 2.4.59 and earlier escapes output badly, so crafted URLs reach files that should not be served, leading to code execution or source disclosure. Apache 2.4.60 fixes it; appliances that bundle httpd, such as SonicWall SMA100, need their vendor's update.
Applies to: Apache HTTP Server 2.4.59 and earlier with mod_rewrite, and appliances that bundle it
- Check the version: 'httpd -v' or 'apache2 -v'.
- Upgrade to 2.4.60 or later from your distribution or apache.org.
- Review RewriteRule lines whose substitution starts with a backreference or variable (such as $1); the UnsafePrefixStat flag is needed for those after the upgrade.
- For SonicWall SMA100 and other appliances, install the vendor firmware that includes the fix.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.