Wavense
VulnerabilitiesVendorsMy Stack
Wavense© 2026 Wavense. All rights reserved.Privacy PolicyTerms & Conditions
Vulnerabilities/CVE-2024-38475
Vulnerability dossier

CVE-2024-38475

Apache HTTP Server mod_rewrite Improper Escaping Vulnerability

VendorsonicwallPublishedJul 1, 2024SourceNVDWeaknessCWE-116
Act now

Actively exploited in the wild. Patch or mitigate immediately — don't wait for a maintenance window.

Severity
Critical · 9.1
CVSS base score
Exploitation
In the wild
CISA KEV
Predicted risk
100% model
EPSS forecast — overtaken by confirmed exploitation
Exposure
Internet-facing
Exploitable remotely, no login, no user action
01

What's the risk?

An unauthenticated attacker, remotely over the network, with no user interaction, can steal data and tamper with data.

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.

How it's exploitedMITRE ATT&CK · inferred from weakness & vector
Initial Access
T1190Exploit Public-Facing Application

Inferred from the weakness type (CWE) and how the flaw is reached — the techniques an attacker would chain to exploit this. Real-world corroboration appears here as threat intel is folded in.

02

Who's exploiting it?

Corroborated threat activity referencing this CVE — with source and confidence, not inference.

Confirmed exploited in the wild. CISA KEV · catalogued May 1, 2025

Named threat actors and observed ATT&CK techniques appear here as intel feeds are folded in — the ATT&CK chain above stays inferred until then.

03

Are we affected?

7
  • Affectedapache · http_serverall versions
  • Affected
netapp · ontap_9
all versions
  • Affectedsonicwall · sma_200_firmwareall versions
  • Affectedsonicwall · sma_210_firmwareall versions
  • Affectedsonicwall · sma_400_firmwareall versions
  • Affectedsonicwall · sma_410_firmwareall versions
  • Affectedsonicwall · sma_500v_firmwareall versions
  • 04

    What to do

    Generated by Wavense from the CVE record — an immediate mitigation and the permanent fix.

    1. !

      Mitigate now

      Review all mod_rewrite rules, especially those in the server context using backreferences or variables as the first segment of a substitution, to identify and disable potentially unsafe configurations. Implement strict network segmentation and Web Application Firewall (WAF) rules to filter malicious requests targeting Apache. Monitor Apache access logs for anomalous URL patterns or error messages indicating attempted exploitation.

    2. ✓

      Permanent fix

      Upgrade Apache HTTP Server to version 2.4.60 or a later patched release immediately. After upgrading, carefully review and test any existing mod_rewrite rules, as some unsafe rules may break due to the fix. If absolutely necessary, the 'UnsafePrefixStat' rewrite flag can be used to re-enable certain behaviors, but only after ensuring the substitution is rigorously constrained and secure.

    Technical details— weakness, CVSS vector & calculator, related CVEs

    Business impact

    An attacker can exploit improper output escaping in mod_rewrite to map URLs to unintended filesystem locations. This critical flaw allows for remote code execution or the disclosure of sensitive source code. Successful exploitation could lead to full system compromise, data breaches, and severe reputational damage.

    Weakness

    1
    CWE-116Common Weakness Enumeration · MITRE definition

    CVSS 3.1 details

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    0.0
    / 10.0 base
    Critical severity
    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    Exploitability metrics
    Attack VectorAV
    Remotely exploitable across a network
    Attack ComplexityAC
    No special conditions required
    Privileges RequiredPR
    No authorization needed
    User InteractionUI
    No user participation needed
    Impact metrics
    ScopeS
    Impact confined to the vulnerable component
    ConfidentialityC
    Total loss of confidentiality
    IntegrityI
    Total loss of integrity
    AvailabilityA
    No impact to availability

    Related vulnerabilities

    Other CVEs affecting http server

    NVD
    10.0Critical
    CVE-2026-21962KEVExploit likely

    Vulnerability in the Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in product of Oracle Fusion Middleware (component: Weblogic Server Proxy Plug-in for Apache HTTP Server, Weblogic Server Proxy Plug-in for IIS). Supported versions that are affected are 12.2.1.4.0, 14.1.1.0.0 and 14.1.2.0.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via HTTP to compromise Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in. While the vulnerability is in Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in, attacks may significantly impact additional products (scope change). Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in accessible data as well as unauthorized access to critical data or complete access to all Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in accessible data. Note: Affected version for Weblogic Server Proxy Plug-in for IIS is 12.2.1.4.0 only. CVSS 3.1 Base Score 10.0 (Confidentiality and Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N).

    oracleCWE-284Improper Access ControlNetworkLow effortNo authNo interactionCIA
    2026-01-20
    NVD
    9.8Critical
    CVE-2021-20038KEV⚙ WeaponizedExploit likely

    A Stack-based buffer overflow vulnerability in SMA100 Apache httpd server's mod_cgi module environment variables allows a remote unauthenticated attacker to potentially execute code as a 'nobody' user in the appliance. This vulnerability affected SMA 200, 210, 400, 410 and 500v appliances firmware 10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv and earlier versions.

    sonicwallCWE-121Stack-based Buffer OverflowNetworkLow effortNo authNo interactionCIA
    2021-12-07
    NVD
    9.8Critical
    CVE-2021-42013KEV⚙ WeaponizedExploit likely

    It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.

    oracleCWE-22Path TraversalNetworkLow effortNo authNo interactionCIA
    2021-10-07
    NVD
    9.8Critical
    CVE-2021-41773KEV⚙ WeaponizedExploit likely

    A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.

    oracleCWE-22Path TraversalNetworkLow effortNo authNo interactionCIA
    2021-10-04
    NVD
    9.8Critical
    CVE-2021-20028KEV

    Improper neutralization of a SQL Command leading to SQL Injection vulnerability impacting end-of-life Secure Remote Access (SRA) products, specifically the SRA appliances running all 8.x firmware and 9.0.0.9-26sv or earlier

    sonicwallCWE-89SQL InjectionNetworkLow effortNo authNo interactionCIA
    2021-08-04
    NVD
    9.8Critical
    CVE-2021-20016KEV

    A SQL-Injection vulnerability in the SonicWall SSLVPN SMA100 product allows a remote unauthenticated attacker to perform SQL query to access username password and other session related information. This vulnerability impacts SMA100 build version 10.x.

    sonicwallCWE-89SQL InjectionNetworkLow effortNo authNo interactionCIA
    2021-02-04
    NVD
    7.8High
    CVE-2021-4034KEV⚙ WeaponizedExploit likely

    A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.

    redhatCWE-787Out-of-bounds WriteLocalLow effortLow privNo interactionCIA
    2022-01-28
    NVD
    7.8High
    CVE-2019-0211KEVPoCExploit likely

    In Apache HTTP Server 2.4 releases 2.4.17 to 2.4.38, with MPM event, worker or prefork, code executing in less-privileged child processes or threads (including scripts executed by an in-process scripting interpreter) could execute arbitrary code with the privileges of the parent process (usually root) by manipulating the scoreboard. Non-Unix systems are not affected.

    redhatCWE-416Use After FreeLocalLow effortLow privNo interactionCIA
    2019-04-08
    0.0
    / 10.0 base
    Critical severity
    Key facts
    CVE ID
    CVE-2024-38475
    Published
    Jul 1, 2024
    Last modified
    Nov 17, 2025
    CVSS
    9.1 (v3.1)
    EPSS
    99.96%
    In CISA KEV
    Yes
    Confidence
    100/100
    Weakness
    CWE-116
    Timeline
    1. Jul 1, 2024Published to NVDNVD
    2. Nov 17, 2025Record last modifiedNVD
    3. Oct 4, 2026AI analysis generatedWavense
    View on NVD