Server-Side Request Forgery in Apache HTTP Server mod_proxy
CVE-2021-40438 is a server-side request forgery vulnerability in Apache HTTP Server 2.4.48 and earlier. A crafted request URI path containing the string "unix:" can cause mod_proxy to forward the request to an attacker-chosen origin server rather than the intended backend. A remote, unauthenticated attacker can thereby induce server-originated requests to arbitrary destinations reachable by the affected server, potentially accessing services unavailable directly to the attacker.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can bypass network reachability boundaries by directing requests through the affected HTTP server to internal or otherwise restricted services. Depending on those services' authentication, authorization, and exposed functionality, attackers may access sensitive information or modify or delete resources. Confidentiality, integrity, and availability impacts depend on the reachable services; this vulnerability alone does not establish arbitrary code execution. Exploitation in the wild and use in ransomware campaigns are known.
If you can’t patch tonight, do this now.
Use intrusion prevention or virtual-patching rules targeting CVE-2021-40438 while preparing permanent updates. Restrict inbound access to affected services to trusted clients and limit the HTTP server's outbound access to required backend destinations to reduce SSRF reach and impact. Disable unnecessary proxy functionality where operationally feasible. For affected Siemens systems, restrict access, particularly TCP port 443, to trusted IP addresses and apply the vendor's industrial network protection guidance. These controls do not replace patching.
Patch, then assume compromise.
Apply vendor-provided updates addressing CVE-2021-40438 and move Apache HTTP Server to a currently supported, patched release. For distribution packages or products embedding Apache, use the relevant vendor security update rather than relying solely on the upstream version string, because fixes may be backported. Update affected Rocky Linux 8 packages according to CIQ advisory CRLSA-2021:3816. For affected Siemens deployments, upgrade SINEC NMS to V1.0.3 or later; no fix was planned for the affected SINEMA Server V14 configurations in the cited advisory revision.
7 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.