cve.bz

CVE-2021-40438 Apache HTTP Server-Side Request Forgery (SSRF)

9.0 criticalKEVEPSS >99.9%Fix available

Critical (9.0) in Apache Apache. In CISA KEV since 2021-12-01, with known ransomware use. EPSS >99.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.0 critical
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
>99.9% (unchanged from >99.9% a week ago; >99.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-12-01, due 2021-12-15, known ransomware use
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2021-10-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-40438 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-40438?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-40438?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-40438 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache HTTP Serverfrom Apache HTTP Server 2.4 through 2.4.48

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9apache22.4.25-3+deb9u11DLA-2776-1
Debian10apache22.4.38-3+deb10u6DSA-4982-1
Debian11apache22.4.51-1~deb11u1DSA-4982-1
Debian12, 13, 14apache22.4.49-1DEBIAN-CVE-2021-40438
Ubuntu18.04:LTSapache22.4.29-1ubuntu4.18UBUNTU-CVE-2021-40438 USN-5090-1
Ubuntu20.04:LTSapache22.4.41-4ubuntu3.6UBUNTU-CVE-2021-40438 USN-5090-1
UbuntuPro:14.04:LTSapache22.4.7-1ubuntu4.22+esm2USN-5090-2
UbuntuPro:16.04:LTSapache22.4.18-2ubuntu3.17+esm3UBUNTU-CVE-2021-40438 USN-5090-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morehttpd, mod_ldap, httpd-devel and 4 more0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moremod_ssl, mod_proxy_html1:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hatenterprise_linux:8::appstreamhttpd, mod_ldap, httpd-devel and 9 more0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hatenterprise_linux:8::appstreammod_http2, mod_http2-debuginfo, mod_http2-debugsource0:1.15.7-3.module+el8.4.0+8625+d397f3daRHSA-2021:3816
Red Hatenterprise_linux:8::appstreammod_md, mod_md-debuginfo, mod_md-debugsource1:2.0.8-8.module+el8.3.0+6814+67d1e611RHSA-2021:3816
Red Hatenterprise_linux:8::appstreammod_ssl, mod_proxy_html, mod_ssl-debuginfo and 1 more1:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hatjboss_core_services:1::el7jbcs-httpd24-httpd, jbcs-httpd24-mod_ldap, jbcs-httpd24-httpd-devel and 5 more0:2.4.37-76.jbcs.el7RHSA-2021:3746
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_cluster-native, jbcs-httpd24-mod_cluster-native-debuginfo0:1.3.16-7.Final_redhat_2.jbcs.el7RHSA-2021:3746
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_http2, jbcs-httpd24-mod_http2-debuginfo0:1.15.7-19.jbcs.el7RHSA-2021:3746
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_jk, jbcs-httpd24-mod_jk-ap24, jbcs-httpd24-mod_jk-manual and 1 more0:1.2.48-18.redhat_1.jbcs.el7RHSA-2021:3746
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_md, jbcs-httpd24-mod_md-debuginfo1:2.0.8-38.jbcs.el7RHSA-2021:3746
Red Hatjboss_core_services:1::el7jbcs-httpd24-mod_security, jbcs-httpd24-mod_security-debuginfo0:2.9.2-65.GA.jbcs.el7RHSA-2021:3746
27 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moreapache22.4.33-3.55.1SUSE-SU-2021:3335-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 11 moreapache22.4.23-29.80.1SUSE-SU-2021:3299-1
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Package Hub 15 SP3 and 2 moreapache22.4.43-3.32.1SUSE-SU-2021:3522-1
openSUSELeap 15.2apache22.4.43-lp152.2.21.1openSUSE-SU-2021:1438-1
openSUSELeap 15.3apache22.4.43-3.32.1openSUSE-SU-2021:3522-1
openSUSETumbleweedowasp-modsecurity-crs4.9.0-1.1openSUSE-SU-2025:14708-1
AlmaLinux8httpd, mod_ldap, httpd-devel and 4 more2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux8mod_http21.15.7-3.module_el8.5.0+2609+b30d9eecALBA-2021:4604 ALSA-2021:3816 ALSA-2021:4537
AlmaLinux8mod_md1:2.0.8-8.module_el8.5.0+2609+b30d9eecALBA-2021:4604 ALSA-2021:3816 ALSA-2021:4537
AlmaLinux8mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aaALBA-2021:4604 ALSA-2021:3816 ALSA-2021:4537
AlmaLinux8mod_ssl, mod_proxy_html1:2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
Rocky Linux8httpd0:2.4.37-39.module+el8.4.0+571+fd70afb1RLSA-2021:3816
Rocky Linux8mod_http20:1.15.7-3.module+el8.4.0+553+7a69454bRLSA-2021:3816
Rocky Linux8mod_http20:1.15.7-3.module+el8.5.0+695+1fa8055eRLSA-2021:3816
Rocky Linux8mod_md1:2.0.8-8.module+el8.4.0+553+7a69454bRLSA-2021:3816
Rocky Linux8mod_md1:2.0.8-8.module+el8.5.0+695+1fa8055eRLSA-2021:3816
Alpinev3.11, v3.12, v3.13 and 11 moreapache22.4.49-r0ALPINE-CVE-2021-40438
Azure Linux2httpd2.4.52-1AZL-6487

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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 out all the above information.

The version of httpd as shipped in Red Hat Enterprise Linux 7 is affected by this flaw even if the upstream code was not, because the Unix Domain Socket support required to trigger the flaw was backported.

The version of httpd as shipped in Red hat Enterprise Linux 6 is not affected by this flaw because there is no support for Unix Domain Socket.

The flaw can be triggered only if mod_proxy is in use (e.g. ProxyPass, ReverseProxy is used in the httpd configuration files).

Red Hat's mitigation

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.

ProductPackageStateAdvisory
JBoss Core Services for RHEL 8jbcs-httpd24-httpd-0:2.4.37-76.el8jbcsFixed 2021-10-07RHSA-2021:3746
JBoss Core Services for RHEL 8jbcs-httpd24-mod_cluster-native-0:1.3.16-7.Final_redhat_2.el8jbcsFixed 2021-10-07RHSA-2021:3746
JBoss Core Services for RHEL 8jbcs-httpd24-mod_http2-0:1.15.7-19.el8jbcsFixed 2021-10-07RHSA-2021:3746
JBoss Core Services for RHEL 8jbcs-httpd24-mod_jk-0:1.2.48-18.redhat_1.el8jbcsFixed 2021-10-07RHSA-2021:3746
JBoss Core Services for RHEL 8jbcs-httpd24-mod_md-1:2.0.8-38.el8jbcsFixed 2021-10-07RHSA-2021:3746
JBoss Core Services for RHEL 8jbcs-httpd24-mod_security-0:2.9.2-65.GA.el8jbcsFixed 2021-10-07RHSA-2021:3746
JBoss Core Services on RHEL 7jbcs-httpd24-httpd-0:2.4.37-76.jbcs.el7Fixed 2021-10-07RHSA-2021:3746
JBoss Core Services on RHEL 7jbcs-httpd24-mod_cluster-native-0:1.3.16-7.Final_redhat_2.jbcs.el7Fixed 2021-10-07RHSA-2021:3746
JBoss Core Services on RHEL 7jbcs-httpd24-mod_http2-0:1.15.7-19.jbcs.el7Fixed 2021-10-07RHSA-2021:3746
JBoss Core Services on RHEL 7jbcs-httpd24-mod_jk-0:1.2.48-18.redhat_1.jbcs.el7Fixed 2021-10-07RHSA-2021:3746
JBoss Core Services on RHEL 7jbcs-httpd24-mod_md-1:2.0.8-38.jbcs.el7Fixed 2021-10-07RHSA-2021:3746
JBoss Core Services on RHEL 7jbcs-httpd24-mod_security-0:2.9.2-65.GA.jbcs.el7Fixed 2021-10-07RHSA-2021:3746
Red Hat Enterprise Linux 7httpd-0:2.4.6-97.el7_9.1Fixed 2021-10-14RHSA-2021:3856
Red Hat Enterprise Linux 7.2 Advanced Update Supporthttpd-0:2.4.6-40.el7_2.7Fixed 2021-10-14RHSA-2021:3856
Red Hat Enterprise Linux 7.3 Advanced Update Supporthttpd-0:2.4.6-45.el7_3.6Fixed 2021-10-14RHSA-2021:3856
Red Hat Enterprise Linux 7.4 Advanced Update Supporthttpd-0:2.4.6-67.el7_4.7Fixed 2021-10-14RHSA-2021:3856
Red Hat Enterprise Linux 7.6 Advanced Update Supporthttpd-0:2.4.6-89.el7_6.2Fixed 2021-10-14RHSA-2021:3856
Red Hat Enterprise Linux 6httpdNot affected
Red Hat Enterprise Linux 9httpdNot affected
Red Hat JBoss Enterprise Application Platform 6httpdNot affected
10 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-40438.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-167-06Siemens Apache HTTP Server2022-06-14MultipleSINEC NMS, SINEMA Server V14none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON