CVEfocus › CVE database › CVE-2021-40438

CVE-2021-40438mod_proxy SSRF

Known exploited (CISA KEV) · ransomwareCVSS 9.0 CriticalEPSS 99.9% (in the top 1% of all CVEs)Published 2021-09-16Updated 2026-08-06Assigner: apache

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.

CWE-918

What to do

This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2021-12-01). If you run an affected version, patch or mitigate now.

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

52Fixed
1Fix pending
16Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04apache2Fixed2.4.41-4ubuntu3.6UBUNTU-CVE-2021-40438
Ubuntu 18.04apache2Fixed2.4.29-1ubuntu4.18UBUNTU-CVE-2021-40438
Ubuntu 16.04apache2Fix pending2.4.18-2ubuntu3.17+esm3 (Ubuntu Pro)UBUNTU-CVE-2021-40438
Debian 14apache2Fixed2.4.49-1DEBIAN-CVE-2021-40438
Debian 13apache2Fixed2.4.49-1DEBIAN-CVE-2021-40438
Debian 12apache2Fixed2.4.49-1DEBIAN-CVE-2021-40438
Red Hat Enterprise Linux 9httpdNot affected
Red Hat Enterprise Linux 9httpd-coreNot affected
Red Hat Enterprise Linux 9httpd-develNot affected
Red Hat Enterprise Linux 9httpd-filesystemNot affected
Red Hat Enterprise Linux 9httpd-manualNot affected
Red Hat Enterprise Linux 9httpd-toolsNot affected
Red Hat Enterprise Linux 9mod_ldapNot affected
Red Hat Enterprise Linux 9mod_luaNot affected
Red Hat Enterprise Linux 9mod_proxy_htmlNot affected
Red Hat Enterprise Linux 9mod_sessionNot affected
Red Hat Enterprise Linux 9mod_sslNot affected
Red Hat Enterprise Linux 8httpdFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8httpd-develFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8httpd-filesystemFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8httpd-manualFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8httpd-toolsFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8mod_http2Fixed0:1.15.7-3.module+el8.4.0+8625+d397f3daRHSA-2021:3816
Red Hat Enterprise Linux 8mod_ldapFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8mod_mdFixed1:2.0.8-8.module+el8.3.0+6814+67d1e611RHSA-2021:3816
Red Hat Enterprise Linux 8mod_proxy_htmlFixed1:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8mod_sessionFixed0:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 8mod_sslFixed1:2.4.37-39.module+el8.4.0+12865+a7065a39.1RHSA-2021:3816
Red Hat Enterprise Linux 7httpdFixed0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7httpd-develFixed0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7httpd-manualFixed0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7httpd-toolsFixed0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7mod_ldapFixed0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7mod_proxy_htmlFixed1:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7mod_sessionFixed0:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 7mod_sslFixed1:2.4.6-97.el7_9.1RHSA-2021:3856
Red Hat Enterprise Linux 6httpdNot affected
Red Hat Enterprise Linux 6httpd-develNot affected
Red Hat Enterprise Linux 6httpd-manualNot affected
Red Hat Enterprise Linux 6httpd-toolsNot affected
Red Hat Enterprise Linux 6mod_sslNot affected
AlmaLinux 8httpdFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8httpd-develFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8httpd-filesystemFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8httpd-manualFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8httpd-toolsFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8mod_http2Fixed1.15.7-3.module_el8.5.0+2609+b30d9eecALBA-2021:4604
AlmaLinux 8mod_ldapFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8mod_mdFixed1:2.0.8-8.module_el8.5.0+2609+b30d9eecALBA-2021:4604
AlmaLinux 8mod_proxy_htmlFixed1:2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8mod_sessionFixed2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux 8mod_sslFixed1:2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
Rocky Linux 8httpdFixed0:2.4.37-39.module+el8.4.0+571+fd70afb1RLSA-2021:3816
Rocky Linux 8mod_http2Fixed0:1.15.7-3.module+el8.5.0+695+1fa8055eRLSA-2021:3816
Rocky Linux 8mod_mdFixed1:2.0.8-8.module+el8.5.0+695+1fa8055eRLSA-2021:3816
Alpine Linux 3.24apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.23apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.22apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.21apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.20apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.19apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.18apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.17apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.16apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.15apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.14apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.13apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.12apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438
Alpine Linux 3.11apache2Fixed2.4.49-r0ALPINE-CVE-2021-40438

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.