CVE-2021-40438 — httpd
CRITICALCVE-2021-40438 is a critical-severity (CVSS 9) Server-Side Request Forgery (SSRF) vulnerability. It is in CISA's Known Exploited Vulnerabilities catalog (added 2021-12-01) and has been used in ransomware campaigns — treat it as actively exploited and patch now. No vendor fix is recorded yet; mitigation options are listed below.
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2021-12-01 — including use in ransomware campaigns. Federal agencies were required to remediate by 2021-12-15.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2021-40438.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-40438 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 383,485 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Description
A crafted request uri-path can cause mod_proxy to forward the request to an origin server choosen by the remote user. This issue affects Apache HTTP Server 2.4.48 and earlier.
Affected Products
http serverapachebrocade fabric operating system firmwarebroadcomdebian linuxdebianf5osf5fedorafedoraprojectcloud backupnetappResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
A crafted request uri-path can cause mod_proxy to forward the request to…
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
No fixed release is recorded for CVE-2021-40438 yet. Track the upstream advisory, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Restrict outbound requests from the affected component to an allowlist of hosts, block access to link-local and internal address ranges at the network layer, and require authentication on internal services so a forged request cannot reach them unauthenticated.
How to detect CVE-2021-40438
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-40438 -u https://target- Template
- Apache <= 2.4.48 Mod_Proxy - Server-Side Request Forgery
- Severity
- critical
- Impact
- Attackers can perform SSRF attacks via mod_proxy to access internal resources and forward requests to arbitrary origin servers, potentially exposing internal services and data.
- Remediation
- Upgrade to Apache version 2.4.49 or later.
Template by ProjectDiscovery nuclei-templates (pdteam), MIT licensed. View the full template. Scan only systems you are authorised to test.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Impact of the flaw set to Important because the actions an attacker can do varies a lot based on the kind of infrastructure in place, the kind of internal services and resources, and the available endpoints on those services. The attacker should also perform some kind of target-specific reconnaissance in order to find…
Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.Source: Red Hat security advisory for CVE-2021-40438 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| JBoss Core Services for RHEL 8 | jbcs-httpd24-httpd-0:2.4.37-76.el8jbcs | RHSA-2021:3746 |
| Red Hat Enterprise Linux 7 | httpd-0:2.4.6-97.el7_9.1 | RHSA-2021:3856 |
| Red Hat Enterprise Linux 8 | httpd:2.4-8040020211008164252.522a0ee4 | RHSA-2021:3816 |
| Red Hat Enterprise Linux 8.1 Extended Update Support | httpd:2.4-8010020211008125020.c27ad7f8 | RHSA-2021:3837 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | httpd:2.4-8020020211008164029.4cda2c84 | RHSA-2021:3836 |
| Red Hat JBoss Core Services | see advisory | RHSA-2021:3745 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | httpd24-httpd-0:2.4.34-22.el7.1 | RHSA-2021:3754 |
Frequently Asked Questions
Is CVE-2021-40438 in your dependencies?
Find it across , including transitive dependencies.