CVE-2021-40438
Exploitation confirmed. First attested on 2021-12-01 by CISA-ADP, CISA KEV, GCVE · enisa-cnw-kev, GCVE · previdian, GCVE · shadowserver.
- Published2021-09-16
- WeaknessCWE-918
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTCVersions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.4 | ≤ 2.4.48 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.2 | = 7.2 | no fix published | NVD |
| 7.3 | = 7.3 | no fix published | NVD |
| 7.4 | = 7.4 | no fix published | NVD |
| 7.6 | = 7.6 | no fix published | NVD |
| 7.7 | = 7.7 | no fix published | NVD |
| 8.2 | = 8.2 | no fix published | NVD |
| 8.4 | = 8.4 | no fix published | NVD |
| 8.6 | = 8.6 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.6 | = 7.6 | no fix published | NVD |
| 7.7 | = 7.7 | no fix published | NVD |
| 8.1 | = 8.1 | no fix published | NVD |
| 8.2 | = 8.2 | no fix published | NVD |
| 8.4 | = 8.4 | no fix published | NVD |
| 8.6 | = 8.6 | no fix published | NVD |
| 8.8 | = 8.8 | no fix published | NVD |
37 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache HTTP ServerAffected
- ≥ Apache HTTP Server 2.4, ≤ 2.4.48no fix statedcustom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-08-14
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apacheMageia:8all versions · fixed in 2.4.49-1.mga8
- apache2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.4.18-2ubuntu3.17+esm3
- apache2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.4.18-2ubuntu3.17+esm2
- apache2Ubuntu:Pro:14.04:LTSall versions · fixed in 2.4.7-1ubuntu4.22+esm2
- apache2Ubuntu:20.04:LTSall versions · fixed in 2.4.41-4ubuntu3.6
- apache2Ubuntu:20.04:LTSall versions · fixed in 2.4.41-4ubuntu3.5
- apache2Ubuntu:18.04:LTSall versions · fixed in 2.4.29-1ubuntu4.18
- apache2Ubuntu:18.04:LTSall versions · fixed in 2.4.29-1ubuntu4.17
125 more package ranges on OSV.dev
Vendor advisories
httpd: mod_proxy: SSRF via a crafted request uri-path containing "unix:"
Siemens Apache HTTP Server
SINEC NMS · SINEMA Server V14
SSA-685781: Multiple Vulnerabilities in Apache HTTP Server Affecting Siemens Products
SINEC NMS · SINEMA Server V14
Red Hat Security Advisory: httpd security update
Red Hat Security Advisory: httpd:2.4 security update
Red Hat Security Advisory: httpd:2.4 security update
4 more advisories
Fix
- CISA’s required action: Apply updates per vendor instructions.due 2021-12-15
- Vendor fix Siemens ProductCERT SSA-685781 · 1 productUpdate to V1.0.3 or later version
- Vendor fix CISA ICSA-22-167-06 · 1 productUpdate to V1.0.3 or later version
- Vendor fix Red Hat Product Security RHSA-2021:3856 · 186 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing the updated packages, the httpd daemon will be restarted automatically.
- Vendor fix Red Hat Product Security RHSA-2021:3746 · 59 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2021:3745 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link for the update. You must be logged in to download the update.
- Workaround from the vendor Red Hat Product Security RHSA-2021:3856 · 186 productsRed 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.
Advisories and patches
- httpd.apache.orgRelease Notes · Vendor Advisory
- lists.fedoraproject.orgRelease Notes
- lists.fedoraproject.orgRelease Notes
- www.oracle.comPatch
- www.oracle.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- available ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub11 repositories, unverifiedknown since 2026-11-01xiaojiangxl/CVE-2021-40438sixpacksecurity/CVE-2021-40438BabyTeam1024/CVE-2021-40438ericmann/apache-cve-pocpisut4152/Sigma-Rule-for-CVE-2021-40438-exploitation-attempt
- Metasploit modules
- none listed Metasploit Framework
CISA Known Exploited Vulnerability
- Date added
- 2021-12-01
- Patch due date
- 2021-12-15
- Ransomware use
- Known
- Required action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2021-12-01
- ENISA EUVDexploitation2021-12-012021-12-01
- GCVEexploitation2021-12-01
- CISA-ADPSSVC decisionactive2026-08-05
- CISA-ADPCVSS 3.192025-02-06
- NVDCVSS 3.19read 2026-10-23
- NVDCVSS 2.06.8read 2026-10-23
- CNAweakness (CWE)CWE-918known since 2026-10-23
- NVDweakness (CWE)CWE-918read 2026-10-23
- FIRST EPSSEPSS score99.9 %read 2026-12-04
- PoC-in-GitHubproof of concept11known since 2026-11-01
- ProjectDiscoverydetectionread 2026-12-04
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-6487same flawAzure Linux · MIT
- BIT-apache-2021-40438same flawBitnami · Apache-2.0
- EUVD-2021-27615same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-rwxq-58vm-3v2jsame flawGitHub Advisory Database · CC-BY-4.0
- ALBA-2021:4604advisory covering several CVEsAlmaLinux · MIT
- ALSA-2021:3816advisory covering several CVEsAlmaLinux · MIT
- ALSA-2021:4537advisory covering several CVEsAlmaLinux · MIT
- DLA-2776-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-4982-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0439advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1369advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:1438-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:3522-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:14708-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:3746advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3754advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3816advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3836advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3837advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3856advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2021:3816advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:3299-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:3335-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:3522-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5090-1advisory covering several CVEsUbuntu
- USN-5090-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- Published
- 2021-09-16
- Last modified
- 2026-08-06
- NVD status
- Analyzed
- GitHub advisory
- GHSA-rwxq-58vm-3v2j
Frequently asked questions
What is CVE-2021-40438?
Is CVE-2021-40438 actively exploited?
What is the CVSS score for CVE-2021-40438?
Running Apache HTTP Server? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-rwxq-58vm-3v2j
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0