Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Apache HTTP Server mod_rewrite improper escaping leading to unintended file mapping

IdentifiersCVE-2024-38475CWE-116· Improper Encoding or Escaping of…

CVE-2024-38475 affects Apache HTTP Server 2.4.59 and earlier. The vulnerability is caused by improper escaping of output in mod_rewrite. According to the provided content, affected cases are rewrite substitutions in server context where the first path segment of the substitution begins with a backreference or variable. Under those conditions, an attacker can cause URL rewriting to map requests to filesystem locations that the server is permitted to serve, but that are not intentionally or directly reachable through any normal URL path. This can expose internal files or, in some configurations, lead to code execution. The issue is specifically tied to unsafe RewriteRule constructions in mod_rewrite rather than a generic path traversal across all Apache deployments.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation can allow an attacker to reach unintended filesystem-backed resources through crafted URLs. The documented impacts are source code disclosure and, in some configurations, code execution. Where sensitive application files become web-accessible, attackers may obtain source, configuration data, secrets, or other internal content. If the exposed or reachable target results in execution of server-side code or access to executable content in a dangerous way, the attacker may achieve remote code execution in the context of the Apache worker process.

Mitigation

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

Until patching and rule review are complete, disable or refactor unsafe mod_rewrite rules in server context that begin substitutions with backreferences or variables. Constrain rewrite targets to fixed, known-safe prefixes and avoid attacker-controlled leading path components. Reduce exposure of sensitive files through strict filesystem permissions and conservative Alias/Directory configuration so that even unintended mappings cannot reach high-value content. Monitor for anomalous requests targeting rewritten paths and for unexpected access to source or application files.

Remediation

Patch, then assume compromise.

Upgrade Apache HTTP Server to a fixed release newer than 2.4.59. The content indicates that Apache changed mod_rewrite behavior to block unsafe substitutions in affected RewriteRule patterns. Review all RewriteRule directives in server context, especially any rule whose substitution starts with a backreference or variable, and rewrite them so the target path is explicitly constrained and does not permit attacker-controlled prefix resolution into unintended filesystem locations. Only if a rule has been fully reviewed and confirmed safe should the rewrite flag "UnsafePrefixStat" be used to restore legacy behavior for compatibility.
PUBLIC EXPLOITS

Exploits

4 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (2 hidden).

VALID 4 / 6 TOTALView more in app
MyesveMaturityPoCVerified exploit

This 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-0x420Disclosed May 31, 2026pythontomlwebnetwork
CVE-2024-38475_SonicBoom_Apache_URL_Traversal_PoCMaturityPoCVerified exploit

This 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.

abrewer251Disclosed May 7, 2025pythonnetwork
CVE-2024-38475MaturityPoCVerified exploit

This 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.

soltanali0Disclosed Dec 12, 2024pythonnetwork
CVE-2024-38475MaturityPoCVerified exploit

This 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.

p0in7sDisclosed Aug 18, 2024pythonnetwork
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 FoundationHttp Serverapplication
NetAppOntap 9application
SonicwallSma 200 Firmwareoperating_system
SonicwallSma 210 Firmwareoperating_system
SonicwallSma 400 Firmwareoperating_system
SonicwallSma 410 Firmwareoperating_system
SonicwallSma 500v Firmwareoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

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

What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence2

Every observed campaign linking this CVE to a named adversary.

Associated malware3

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity38

Community discussion across Reddit, Mastodon, and other social sources.