CVE-2021-40438
httpd: mod_proxy: SSRF via a crafted request uri-path containing "unix:"
Overview
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.
Source: OX vulnerability database
Severity
9 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness: CWE-918
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | apache | <2.4.49 | 2.4.49 |
Open a package to see all its vulnerabilities.
Operating systems · 73 fixes
Oracle Linux 2 releases · 4 packages
fixed 6
mod-proxy-html
httpd
mod-http2
mod-md
| Release | Package | Fixed in |
|---|---|---|
| 7 | mod-proxy-html +1 | 1:2.4.6-97.0.1.el7_9.1 |
| 7 | httpd +5 | 2.4.6-97.0.1.el7_9.1 |
| 8 | mod-http2 | 1.15.7-3.module+el8.4.0+20024+b87b2deb |
| 8 | mod-md | 1:2.0.8-8.module+el8.3.0+7816+49791cfd |
| 8 | mod-proxy-html +1 | 1:2.4.37-39.0.1.module+el8.4.0+20372+b87b2deb.1 |
| 8 | httpd +6 | 2.4.37-39.0.1.module+el8.4.0+20372+b87b2deb.1 |
Red Hat 3 releases · 13 packages
fixed 39
jbcs-httpd24-mod-http2
jbcs-httpd24-mod-jk-ap24
jbcs-httpd24-mod-cluster-native
httpd24-httpd
jbcs-httpd24-httpd
httpd
+7
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | jbcs-httpd24-mod-http2 | 0:1.15.7-19.jbcs.el7 | RHSA-2021:3746 |
| 7 | jbcs-httpd24-mod-jk-ap24 +1 | 0:1.2.48-18.redhat_1.jbcs.el7 | RHSA-2021:3746 |
| 7 | jbcs-httpd24-mod-cluster-native | 0:1.3.16-7.Final_redhat_2.jbcs.el7 | RHSA-2021:3746 |
| 7 | httpd24-httpd +5 | 0:2.4.34-22.el7.1 | RHSA-2021:3754 |
| 7 | jbcs-httpd24-httpd +6 | 0:2.4.37-76.jbcs.el7 | RHSA-2021:3746 |
| 7 | httpd +5 | 0:2.4.6-40.el7_2.7 | RHSA-2021:3856 |
33 more rows
SUSE Linux Enterprise 1 release · 1 package
fixed 1
apache2
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | apache2 +6 | 2.4.23-29.80.1 | SUSE-SU-2021:3299-1 |
alma 1 release · 2 packages
fixed 2
mod-http2
mod-md
| Release | Package | Fixed in |
|---|---|---|
| 8 (httpd:2.4) | mod-http2 | 1.15.7-3.module_el8.5.0+2609+b30d9eec |
| 8 (httpd:2.4) | mod-md | 1:2.0.8-8.module_el8.5.0+2609+b30d9eec |
alpine 4 releases · 1 package
fixed 4
apache2
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | apache2 | 2.4.49-r0 |
| 3.23 | apache2 | 2.4.49-r0 |
| 3.24 | apache2 | 2.4.49-r0 |
| edge | apache2 | 2.4.49-r0 |
debian 6 releases · 1 package
fixed 6
apache2
| Release | Package | Fixed in |
|---|---|---|
| 10 | apache2 | 2.4.38-3+deb10u6 |
| 11 | apache2 | 2.4.51-1~deb11u1 |
| 12 | apache2 | 2.4.49-1 |
| 13 | apache2 | 2.4.49-1 |
| 14 | apache2 | 2.4.49-1 |
| 9 | apache2 | 2.4.25-3+deb9u11 |
echo 1 release · 1 package
fixed 1
apache2
| Release | Package | Fixed in |
|---|---|---|
| apache2 | 2.4.49-1 |
openSUSE 1 release · 1 package
fixed 1
owasp-modsecurity-crs
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | owasp-modsecurity-crs +1 | 4.9.0-1.1 | openSUSE-SU-2025:14708-1 |
rocky 1 release · 4 packages
fixed 6
mod-http2
mod-md
mod-proxy-html
httpd
| Release | Package | Fixed in |
|---|---|---|
| 8 (httpd:2.4) | mod-http2 | 1.15.7-3.module+el8.4.0+553+7a69454b |
| 8 (httpd:2.4) | mod-http2 | 1.15.7-3.module+el8.5.0+695+1fa8055e |
| 8 (httpd:2.4) | mod-md | 1:2.0.8-8.module+el8.4.0+553+7a69454b |
| 8 (httpd:2.4) | mod-md | 1:2.0.8-8.module+el8.5.0+695+1fa8055e |
| 8 (httpd:2.4) | mod-proxy-html +1 | 1:2.4.37-39.module+el8.4.0+571+fd70afb1 |
| 8 (httpd:2.4) | httpd +6 | 2.4.37-39.module+el8.4.0+571+fd70afb1 |
root.io debian 2 releases · 1 package
fixed 2
rootio-apache2
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-apache2 | 2.4.49-1 |
| 13 | rootio-apache2 | 2.4.49-1 |
ubuntu 5 releases · 1 package
fixed 5
apache2
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | apache2 | 2.4.29-1ubuntu4.18 |
| 18.04-ESM | apache2 | 2.4.29-1ubuntu4.18 |
| 20.04 | apache2 | 2.4.41-4ubuntu3.6 |
| 20.04-ESM | apache2 | 2.4.41-4ubuntu3.6 |
| 22.04 | apache2 | 2.4.48-3.1ubuntu2 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-40438
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1966732
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2005117
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-685781.pdf
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-26691
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40438
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2021-3816.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:3816
- httpd.apache.org https://httpd.apache.org/security/vulnerabilities_24.html
- httpd.apache.org https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2021-40438
Show all 37 references
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-40438.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3856.html
- lists.apache.org https://lists.apache.org/thread.html/r210807d0bb55f4aa6fbe1512be6bcc4dacd64e84940429fba329967a%40%3Cusers.httpd.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r2eb200ac1340f69aa22af61ab34780c531d110437910cb9c0ece3b37%40%3Cbugs.httpd.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r3925e167d5eb1c75def3750c155d753064e1d34a143028bb32910432%40%3Cusers.httpd.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r61fdbfc26ab170f4e6492ef3bd5197c20b862ce156e9d5a54d4b899c%40%3Cusers.httpd.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r82838efc5fa6fc4c73986399c9b71573589f78b31846aff5bd9b1697%40%3Cusers.httpd.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/r82c077663f9759c7df5a6656f925b3ee4f55fcd33c889ba7cd687029%40%3Cusers.httpd.apache.org%3E
- lists.apache.org https://lists.apache.org/thread.html/rf6954e60b1c8e480678ce3d02f61b8a788997785652e9557a3265c00%40%3Cusers.httpd.apache.org%3E
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/10/msg00001.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SPBR6WUYBJNACHKE65SPL7TJOHX7RHWD/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNCYSR3BXT36FFF4XTCPL3HDQK4VP45R/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-40438
- security.gentoo.org https://security.gentoo.org/glsa/202208-20
- security.netapp.com https://security.netapp.com/advisory/ntap-20211008-0004/
- tools.cisco.com https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-2.4.49-VWL69sWQ
- ubuntu.com https://ubuntu.com/security/notices/USN-5090-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5090-2
- ubuntu.com https://ubuntu.com/security/notices/USN-5090-2 (regression update esm)
- ubuntu.com https://ubuntu.com/security/notices/USN-5090-3 (regression update)
- www.cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- www.cisa.gov https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-40438
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-40438
- www.debian.org https://www.debian.org/security/2021/dsa-4982
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
- www.tenable.com https://www.tenable.com/security/tns-2021-17
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.