CVE-2021-40438: Server-Side Request Forgery in Apache HTTP Server mod_proxy
- Vendors
- Apache Software FoundationVMwareNetAppDebian ProjectRed HatOracle CorporationF5Fedora Project
CVE-2021-40438 is a server-side request forgery vulnerability in the mod_proxy module of Apache HTTP Server 2.4.48 and earlier. A remote, unauthenticated attacker can submit a crafted request URI path containing the "unix:" marker to cause the server to forward the request to an attacker-selected origin server rather than the intended destination. This can expose services reachable from the HTTP server but inaccessible directly to the attacker.
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.
Successful exploitation can bypass network access boundaries and allow unauthorized interaction with internal or otherwise restricted services. Depending on the services reachable from the affected server and their access controls, attackers may access, modify, or delete resources, compromising confidentiality, integrity, and availability. Further compromise depends on the capabilities or vulnerabilities of those downstream services; this flaw does not inherently provide arbitrary code execution. The vulnerability is known to be exploited in the wild, including in ransomware campaigns.
Mitigation
If you can’t patch tonight, do this now.
Until updates can be deployed, use virtual patching or intrusion prevention controls capable of detecting and blocking exploitation of CVE-2021-40438. Restrict access to affected HTTP services to trusted clients where operationally possible. For affected Siemens deployments, restrict access, particularly TCP port 443, to trusted IP addresses and apply the vendor's recommended network protections.
Remediation
Patch, then assume compromise.
Apply vendor updates addressing CVE-2021-40438 to Apache HTTP Server and affected products that bundle it. Use a supported, patched release or a distribution package containing the vendor's backported fix rather than relying solely on the upstream version number. For affected Rocky Linux 8 packages, follow CIQ advisory CRLSA-2021:3816. For affected Siemens SINEC NMS installations, upgrade to V1.0.3 or later.
Exploits
7 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
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.
References
Frequently asked questions
- Is CVE-2021-40438 exploited in the wild?
- Yes. As of Nov 23, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Dec 1, 2021.
- Is there a public exploit for CVE-2021-40438?
- Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2021-40438, the earliest disclosed Oct 18, 2021.
- Is there a patch for CVE-2021-40438?
- Apply vendor updates addressing CVE-2021-40438 to Apache HTTP Server and affected products that bundle it. Use a supported, patched release or a distribution package containing the vendor's backported fix rather than relying solely on the upstream version number.
- What products are affected by CVE-2021-40438?
- Apache Software Foundation Apache HTTP Server, Oracle Corporation Http Server, VMware Brocade Fabric Operating System Firmware, NetApp Cloud Backup, NetApp Clustered Data Ontap, and at least 34 more.
- How severe is CVE-2021-40438?
- CVE-2021-40438 has a CVSS v3.1 score of 9.0 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 23, 2026.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.