Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-40438: Server-Side Request Forgery in Apache HTTP Server mod_proxy

Published Sep 16, 2021 · Updated 5 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.0Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Dec 1, 2021
In the wildActivePer CISA KEV
Vendors
Apache Software FoundationVMwareNetAppDebian ProjectRed HatOracle CorporationF5Fedora Project
IdentifiersCVE-2021-40438CWE-918 · Server-Side Request Forgery (SSRF)

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.

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.

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.

Public exploits

Exploits

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

View more in app →
check-point-gateways-rceThis repository contains a Python exploit targeting Check Point Security Gateways, specifically versions R81.10 T335 and R80.40 T294, exploiting CVE-2021-40438. The main script, 'check_point_gateways_rce.py', provides three modes: 'dump' (extracts sensitive configuration data), 'reset' (resets the admin password), and 'exec' (resets the password and executes arbitrary commands via the Gaia API). The exploit works by abusing a mod_proxy path traversal vulnerability, allowing the attacker to interact with internal UNIX sockets through crafted HTTP(S) requests. The codebase is organized with utility modules for password hashing and monkey-patching HTTP libraries to allow special characters in URLs. The exploit is operational and provides real impact, including full administrative access and remote command execution on vulnerable gateways. The endpoints '/gaia_docs?unix:/tmp/xdumps|http://.' and '/gaia_docs?unix:/tmp/xsets|http://.' are used for the main exploit actions, while '/gaia_api/login' and '/gaia_api/run-script' are used for post-exploitation via the Gaia API.yakir2b · Disclosed Jan 22, 2025 · python · networkOperationalCVE-2021-40438This repository contains two Python proof-of-concept (POC) scripts and a README for exploiting CVE-2021-40438, an SSRF vulnerability in Apache HTTP Server's mod_proxy (versions 2.4.48 and earlier). The vulnerability allows an attacker to craft a special URI path that causes the server to make requests to arbitrary attacker-controlled endpoints. - The main scripts are 'poc.py' (single target) and 'POC批量.py' (batch mode). Both construct a long URI with a payload that abuses the SSRF flaw, appending a pipe ('|') and a remote URL (e.g., http://www.baidu.com/ or http://{{DNS.ceye.io}}/) to the request. - 'POC批量.py' reads a list of hosts from 'host.txt', sends the exploit request to each, and logs successful SSRF attempts to 'success.txt'. It uses the presence of the string '百度' in the response to confirm success. - 'poc.py' is a minimal version for a single host, checking for a 200 OK response. - The README provides background on the vulnerability and remediation steps. The exploit demonstrates the ability to trigger SSRF and can be used for both direct and out-of-band detection (using DNS logging services like ceye.io). No weaponized or post-exploitation payloads are included; the scripts are POCs for vulnerability verification.xiaojiangxl · Disclosed Oct 18, 2021 · python · networkPoCCVE-2021-40438This repository provides a proof-of-concept (PoC) exploit for CVE-2021-40438, a server-side request forgery (SSRF) vulnerability in Apache HTTP Server 2.4.48. The repository contains three files: a Dockerfile to build a vulnerable Apache server, an Apache configuration file (exploit.conf.txt), and a README.md with detailed instructions. The exploit works by sending a specially crafted HTTP request to the running Apache server (via Docker), which causes the server to make a request to an attacker-specified URL. The README demonstrates how to build and run the Docker container and how to craft the exploit request using curl. The main purpose of the repository is to provide a safe, reproducible environment for testing and demonstrating the SSRF vulnerability in Apache HTTP Server.sixpacksecurity · Disclosed Oct 24, 2021 · dockerfile · apache config · networkPoCCVE-2021-40438This repository provides a proof-of-concept (POC) exploit for CVE-2021-40438, a vulnerability in Apache HTTP Server 2.4.48 and earlier that allows a remote attacker to force the server to forward requests to an arbitrary origin server (SSRF via mod_proxy). The repository contains a simple Go HTTP server (src/main.go) to receive and log incoming requests, and a test script (test/main.go) that reads a list of target servers from a JSON file and sends specially crafted HTTP requests to them. The exploit demonstrates the vulnerability by causing the target Apache server to forward requests to an attacker-controlled server, which can be used to verify the vulnerability and potentially spoof source IPs in DoS attacks. The code is written in Go and is structured for easy testing against multiple targets. No detection-only scripts or fake code are present; the repository is a functional POC exploit.Kashkovsky · Disclosed Apr 3, 2022 · go · networkPoCCVE-2021-40438-Apache-2.4.48-SSRF-exploitThis repository contains a Python proof-of-concept exploit for CVE-2021-40438, a critical SSRF vulnerability in Apache HTTP Server 2.4.48 and earlier. The main file, CVE-2021-40438.py, allows an attacker to send a specially crafted HTTP GET request to a vulnerable Apache server, causing it to make a server-side request to an arbitrary URL controlled by the attacker. The exploit takes two command-line arguments: the target server URL and the webhook (attacker's endpoint) URL. The README provides usage instructions, example commands, and context about the vulnerability. The exploit is straightforward, does not include a post-exploitation payload, and is intended for demonstration and testing purposes. No hardcoded endpoints are present in the code, but example endpoints are provided in the documentation.sergiovks · Disclosed Dec 12, 2023 · python · networkPoCCVE-2021-40438This repository is a Python-based scanner for CVE-2021-40438, a Server-Side Request Forgery (SSRF) vulnerability in Apache HTTP Server's mod_proxy module (versions <=2.4.48). The tool is structured as a command-line utility with a main entry point in 'cve202140438/main.py'. It allows users to scan single URLs or lists of URLs for the vulnerability. The scanner works by fetching a list of SSRF payload endpoints from a remote GitHub resource and appending them to the target URL, then checking for specific response signatures that indicate vulnerability. If a vulnerable endpoint is found, it outputs the PoC URL and can optionally send a notification via Telegram (if configured). The tool also provides options to save results to a file and to read more about the vulnerability via a blog link. The codebase is modular, with separate files for scanning logic, file reading, Telegram notification, configuration management, and utility functions. No exploit payload is delivered beyond the SSRF scan itself, making this a proof-of-concept scanner rather than a weaponized exploit.Cappricio-Securities · Disclosed May 19, 2024 · python · networkPoCCVE-2021-40438-POCThis repository contains a proof-of-concept exploit for CVE-2021-40438, a server-side request forgery (SSRF) vulnerability in Apache HTTP Server 2.4.48 and earlier. The repository consists of two files: a README.md with usage instructions and a Python script (exploit.py) that performs the exploit. The script takes a target URL (the vulnerable Apache server), an SSRF target URL (the internal or external resource to be fetched by the server), and an optional HTTP proxy. It crafts a GET request to the vulnerable server with a specially constructed path that triggers the SSRF via mod_proxy. The exploit is straightforward, does not include a customizable payload beyond the SSRF target, and is intended for educational and testing purposes only. No hardcoded endpoints are present; all targets are supplied by the user at runtime.n0m-d · Disclosed Nov 9, 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
Debian ProjectDebian Linuxoperating_system
F5F5osoperating_system
Fedora ProjectFedoraoperating_system
NetAppCloud Backupapplication
NetAppClustered Data Ontapapplication
NetAppStoragegridapplication
Oracle CorporationEnterprise Manager Ops Centerapplication
Oracle CorporationHttp Serverapplication
Oracle CorporationInstantis Enterprisetrackapplication
Oracle CorporationSecure Global Desktopapplication
Oracle CorporationZfs Storage Appliance Kitapplication
Red HatEnterprise Linux Eusoperating_system
Red HatEnterprise Linux For Arm 64operating_system
Red HatEnterprise Linux For Arm 64 Eusoperating_system
Red HatEnterprise Linux For Ibm Z Systemsoperating_system
Red HatEnterprise Linux For Ibm Z Systems Eusoperating_system
Red HatEnterprise Linux For Ibm Z Systems Eus S390xoperating_system
Red HatEnterprise Linux For Power Big Endianoperating_system
Red HatEnterprise Linux For Power Little Endianoperating_system
Red HatEnterprise Linux For Power Little Endian Eusoperating_system
Red HatEnterprise Linux For Scientific Computingoperating_system
Red HatEnterprise Linux Serveroperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatEnterprise Linux Server For Power Little Endian Update Services For Sap Solutionsoperating_system
Red HatEnterprise Linux Server Tusoperating_system
Red HatEnterprise Linux Server Update Services For Sap Solutionsoperating_system
Red HatEnterprise Linux Update Services For Sap Solutionsapplication
Red HatEnterprise Linux Workstationoperating_system
Red HatJboss Core Servicesapplication
Red HatRed Hat Enterprise Linuxoperating_system
Red HatSoftware Collectionsapplication
ResfRocky Linuxoperating_system
SiemensRuggedcom Nmsapplication
SiemensSinec Nmsapplication
SiemensSinema Remote Connect Serverapplication
SiemensSinema Serverapplication
TenableTenable.Scapplication
VMwareBrocade Fabric Operating System Firmwareoperating_system
FAQ

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.
Activity feed

Recent activity

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

View more in app →
+8 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 evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.