Actively exploited · Published Sep 16, 2021 · Assigned by apache

CVE-2021-40438mod_proxy SSRF

Critical 9.0 Exploited Ransomware

In plain English

A critical-severity server-side request forgery in Apache HTTP Server from Apache Software Foundation. Attackers are actively exploiting it in the wild (listed by CISA on December 1, 2021). It has been used in ransomware campaigns. The chance it is exploited in the next 30 days is estimated at 100.0% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.0Critical
Exploit odds (30 days)100.0%top 0.0% of all CVEs
Exploited in the wildYesCISA KEV since Dec 1, 2021
Attack tooling2Nuclei, Public PoC

CISA guidance

Apply updates per vendor instructions.

Federal agencies must remediate by Dec 15, 2021.

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8httpd2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8httpd-devel2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8httpd-filesystem2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8httpd-manual2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8httpd-tools2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8mod_http21.15.7-3.module_el8.5.0+2609+b30d9eecALBA-2021:4604
AlmaLinux:8mod_http21.15.7-3.module_el8.5.0+2609+b30d9eecALSA-2021:3816
AlmaLinux:8mod_http21.15.7-3.module_el8.5.0+2609+b30d9eecALSA-2021:4537
AlmaLinux:8mod_ldap2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aaALBA-2021:4604
AlmaLinux:8mod_md1:2.0.8-8.module_el8.5.0+2609+b30d9eecALBA-2021:4604
AlmaLinux:8mod_md1:2.0.8-8.module_el8.5.0+2609+b30d9eecALSA-2021:3816
AlmaLinux:8mod_md1:2.0.8-8.module_el8.5.0+2609+b30d9eecALSA-2021:4537
AlmaLinux:8mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aaALSA-2021:3816
AlmaLinux:8mod_md1:2.0.8-8.module_el8.6.0+2872+fe0ff7aaALSA-2021:4537
AlmaLinux:8mod_proxy_html1:2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8mod_session2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
AlmaLinux:8mod_ssl1:2.4.37-43.module_el8.5.0+2597+c4b14997.almaALSA-2021:4537
Alpine:v3.20apache22.4.49-r0ALPINE-CVE-2021-40438
Alpine:v3.21apache22.4.49-r0ALPINE-CVE-2021-40438
Alpine:v3.22apache22.4.49-r0ALPINE-CVE-2021-40438
Alpine:v3.23apache22.4.49-r0ALPINE-CVE-2021-40438
Alpine:v3.24apache22.4.49-r0ALPINE-CVE-2021-40438
Debian:12apache22.4.49-1DEBIAN-CVE-2021-40438
Debian:13apache22.4.49-1DEBIAN-CVE-2021-40438
Debian:14apache22.4.49-1DEBIAN-CVE-2021-40438
Rocky Linux:8httpd0:2.4.37-39.module+el8.4.0+571+fd70afb1RLSA-2021:3816
Rocky Linux:8mod_http20:1.15.7-3.module+el8.5.0+695+1fa8055eRLSA-2021:3816
Rocky Linux:8mod_http20:1.15.7-3.module+el8.4.0+553+7a69454bRLSA-2021:3816
Rocky Linux:8mod_md1:2.0.8-8.module+el8.4.0+553+7a69454bRLSA-2021:3816
Rocky Linux:8mod_md1:2.0.8-8.module+el8.5.0+695+1fa8055eRLSA-2021:3816

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache HTTP Server Apache HTTP Server 2.4 – through 2.4.48

Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References