Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-38475: Unintended filesystem mapping in Apache HTTP Server mod_rewrite

Published Jul 1, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.1Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded May 1, 2025
In the wildActivePer CISA KEV
Vendors
Apache Software FoundationNetAppSonicwall
IdentifiersCVE-2024-38475CWE-116 · Improper Encoding or Escaping of…

CVE-2024-38475 is an improper output-escaping vulnerability in Apache HTTP Server mod_rewrite affecting version 2.4.59 and earlier. Server-context RewriteRule substitutions beginning with a backreference or variable can map attacker-controlled URLs to filesystem locations that Apache permits serving but that are not intentionally exposed through a URL. Depending on rewrite rules, directory permissions, and handler configuration, exploitation can disclose source code or enable code execution. Apache HTTP Server 2.4.60 introduced protective behavior and the UnsafePrefixStat compatibility flag.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Exploitation can expose source code and sensitive files outside the intended URL-accessible namespace, including files outside the document root when Apache directory permissions allow access. Code execution is possible under suitable application and handler configurations; it is not an unconditional outcome for every affected installation. In affected SonicWall SMA 100 deployments, the embedded Apache flaw permits unauthenticated access to sensitive data and has been used in exploitation chains.

Mitigation

If you can’t patch tonight, do this now.

Disable or constrain unsafe server-context RewriteRules so user-controlled substitution prefixes cannot resolve to unintended filesystem locations. Restrict Apache directory access to locations intentionally served, and review symbolic-link access that could extend those permissions. Keep UnsafePrefixStat disabled unless the rewrite target has been verified as safe. For affected SonicWall SMA appliances awaiting updates, restrict external exposure, segment appliances from internal networks, enforce least privilege, and enable available exploit protection.

Remediation

Patch, then assume compromise.

Upgrade Apache HTTP Server to version 2.4.60 or later, or install the applicable vendor-backported security update. Review server- and virtual-host-scoped RewriteRules that begin their substitutions with variables or backreferences, because the fix can break unsafe rules. Do not enable UnsafePrefixStat unless the resulting substitution is appropriately constrained against attacker-controlled filesystem mapping. For affected SonicWall SMA 200, 210, 400, 410, and 500v appliances, apply the fixes associated with SNWLID-2024-0018 by upgrading to firmware 10.2.1.14-75sv or later.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit.

View more in app →
MyesveThis repository is a standalone Python exploitation tool named myesve for CVE-2024-38475 in Apache HTTP Server. It is not a Metasploit/Nuclei-style framework module, but a self-contained CLI package with scanning, exploitation, stealth, logging, output formatting, optional recon helpers, and Mullvad VPN integration. Repository structure: the main entry point is Myesve/myesve/cli.py, which exposes subcommands scan, exploit, vpn, and full. scanner.py performs multithreaded discovery of directories returning HTTP 403 by requesting <base_url>/<directory>/. exploiter.py performs the actual exploit by iterating over discovered/provided directories, a file wordlist, and two hardcoded payload suffixes (%3F and %3Fooooo.php), constructing crafted paths intended to trigger Apache source disclosure. stealth.py adds adaptive rate limiting, jitter, and User-Agent rotation. vpn.py wraps the Mullvad CLI for relay rotation and status. utils.py provides IP geolocation via api.ipify.org and ip-api.com, traceroute execution, and proxy parsing. recon.py contains optional Shodan/Censys search helpers but is not central to exploitation. output.py supports JSON/CSV output, and logger.py handles file/console logging. Main exploit capability: after identifying 403 directories, the tool builds URLs in the form <base_url>/<directory><webroot>/<directory>/<filename><payload> and treats HTTP 200 responses as successful disclosure. If enabled, it downloads the returned content into a local loot directory. This makes it more than a detector: it actively attempts file disclosure and retrieval. Operational characteristics: the exploit is moderately operational rather than just a PoC because it supports automation, threading, rate control, jitter, proxying, UA rotation, logging, and optional VPN rotation. However, payloads are hardcoded and not highly customizable, so OPERATIONAL is the best fit rather than WEAPONIZED. Notable caveats: the provided content indicates the CLI file is truncated in the middle of cmd_full, so the full workflow implementation cannot be completely verified from the supplied snapshot. Also, the package references bundled wordlists under myesve/wordlists, but those files are not included in the provided file listing despite being declared in pyproject.toml and documentation. Nonetheless, scanner.py and exploiter.py clearly implement real scanning and exploitation logic.Nyakki-Labs-0x420 · Disclosed May 31, 2026 · python · toml · web · networkOperationalCVE-2024-38475This repository contains a Python proof-of-concept exploit for CVE-2024-38475, a vulnerability in Apache HTTP Server 2.4.59 and earlier related to improper escaping in mod_rewrite. The exploit script, 'CVE-2024-38475.py', automates the process of discovering directories that return HTTP 403 responses and then attempts to access files within those directories using crafted URL-encoded payloads. The goal is to exploit unsafe RewriteRules to disclose source code or other sensitive files that should not be directly accessible. The script requires two wordlists ('raft-medium-directories.txt' and 'raft-medium-files.txt') for directory and file enumeration. The README provides background on the vulnerability and usage notes. The attack vector is network-based, targeting web servers with vulnerable mod_rewrite configurations. The main entry point is the Python script, which is a standalone POC and not part of a larger framework.p0in7s · Disclosed Aug 18, 2024 · python · networkPoCCVE-2024-38475This repository contains a Python script (script.py) designed to test for CVE-2024-38475, a vulnerability in Apache's mod_rewrite module related to filesystem path matching. The script automates the process of enumerating directories (looking for HTTP 403 responses) and probing for source code disclosure by appending specific payloads (such as '%3F' and '%3Faaaaaaaaaaaaaaaaaaaaaa.php') to file paths. The user supplies lists of webroots, directories, and files, as well as the target server's URL or IP and the desired schema (http/https). The script reports directories that are forbidden and files that return HTTP 200, which may indicate a successful bypass and potential information leakage. The repository is structured simply, with a README.md providing usage instructions and context, and script.py containing all exploit logic. No hardcoded endpoints are present; all targets are user-supplied at runtime. The exploit is a proof-of-concept and does not include weaponized or post-exploitation payloads.soltanali0 · Disclosed Dec 12, 2024 · python · networkPoCCVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoCThis repository provides a proof-of-concept (PoC) exploit for CVE-2024-38475, a directory traversal vulnerability affecting Apache HTTP Server (referred to as 'SonicBoom'). The main exploit script is 'poc.py', which automates the process of negotiating the highest supported TLS/SSL protocol with the target, verifying generic and per-directory traversal, scanning for 403-protected directories, and fuzzing file paths with custom payloads to detect unauthorized file access. The script requires the user to supply directory and file wordlists and outputs results to a specified file. The auxiliary script 'autoCurl.py' checks which HTTP methods are allowed on a set of IP:port pairs, which can help in pre-assessment but is not directly part of the exploit chain. The exploit is a network-based PoC, does not provide a weaponized payload, and is intended for security researchers to validate the presence of the vulnerability. No hardcoded IPs or domains are present; all endpoints are user-supplied at runtime. The repository is well-structured, with clear separation between the main exploit logic and auxiliary tooling.abrewer251 · Disclosed May 7, 2025 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationApache HTTP Serverapplication
NetAppOntap 9application
SonicwallSma 200 Firmwareoperating_system
SonicwallSma 210 Firmwareoperating_system
SonicwallSma 400 Firmwareoperating_system
SonicwallSma 410 Firmwareoperating_system
SonicwallSma 500v Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2024-38475 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 1, 2025.
Is there a public exploit for CVE-2024-38475?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2024-38475, the earliest disclosed Aug 18, 2024.
Is there a patch for CVE-2024-38475?
Upgrade Apache HTTP Server to version 2.4.60 or later, or install the applicable vendor-backported security update. Review server- and virtual-host-scoped RewriteRules that begin their substitutions with variables or backreferences, because the fix can break unsafe rules.
What products are affected by CVE-2024-38475?
Apache Software Foundation Apache HTTP Server, NetApp Ontap 9, Sonicwall Sma 200 Firmware, Sonicwall Sma 210 Firmware, Sonicwall Sma 400 Firmware, and 2 more.
How severe is CVE-2024-38475?
CVE-2024-38475 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 100.0% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

67 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+18 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence3Every report linking this CVE to a named adversary.
Associated malware4Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity38Community discussion across Reddit, Mastodon, and other social sources.