CVE-2021-40438
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThis is a Server-Side Request Forgery (SSRF) vulnerability in Apache HTTP Server's mod_proxy module. Attackers can craft a malicious request URI-path to cause the proxy to forward requests to an origin server of their choosing, potentially allowing access to internal services or exfiltration of data.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 8.0= 8.1= 8.2= 8.4= 8.6= 8.8= 8.0= 8.6= 8.8= 7.0_s390x= 8.0= 8.1= 8.4= 8.8= 8.2= 7.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- 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
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify mod_proxy module is loadedRun 'httpd -M 2>/dev/null | grep proxy' or 'apachectl -M 2>/dev/null | grep proxy' to list loaded proxy modules. Look for mod_proxy, mod_proxy_http, mod_proxy_connect, or mod_proxy_balancer.Affected if mod_proxy or any proxy sub-module is loaded and active
-
Check Apache HTTP Server versionRun 'httpd -v' or 'apachectl -v' to obtain the server version number (e.g., 2.4.37).Affected if Version is 2.4.48 or earlier (vulnerable); versions 2.4.49 and later contain the fix
-
Identify active proxy configurationSearch configuration files (httpd.conf, included .conf files) for 'ProxyPass', 'ProxyPassMatch', or RewriteRule with the [P] flag (e.g., 'RewriteRule ^/(.*)$ http://backend/$1 [P]').Affected if Any ProxyPass, ProxyPassMatch, or [P] rewrite rule points to a backend server, making the server a potential SSRF target
-
Check for exposed proxy endpointsReview Listen directives and virtual host configurations to identify IP addresses and ports the Apache server accepts connections on.Affected if The proxy module is accessible over the network (not localhost-only) and has a writable proxy configuration
-
Verify version against affected Red Hat releasesRun 'cat /etc/redhat-release' to identify the RHEL version. Compare against the listed affected versions: 8.0, 8.1, 8.2, 8.4, 8.6, 8.8 for various architectures.Affected if Running RHEL 8.0, 8.1, 8.2, 8.4, 8.6, 8.8 or the specific architecture versions listed (7.0, 8.0 for s390x, 7.0 for Power BE)
You are affected if mod_proxy is enabled AND the Apache version is 2.4.48 or earlier (or an unpatched RHEL version from the affected list), AND a proxy configuration exists that could accept malicious URI-path requests.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade Apache HTTP Server to version 2.4.49 or later. If upgrade is not immediately possible, review and restrict mod_proxy configuration, or temporarily disable the module if not required.
Apache HTTP Server 2.4.49 or later (via RHEL httpd packages)
- 1. Identify all systems running Apache HTTP Server 2.4.48 or earlier on the affected RHEL versions
- 2. Run 'dnf check-update' or 'yum check-update' to check for available httpd updates
- 3. For RHEL 8.x systems: Execute 'dnf update httpd' or 'yum update httpd' to apply the security fix
- 4. For RHEL 7.x systems: Execute 'yum update httpd' to apply the security fix
- 5. After updating, restart the Apache HTTP Server service using 'systemctl restart httpd'
- 6. Verify the installed version is 2.4.49 or later using 'httpd -v' or 'apachectl -v'
- 7. Test that proxy functionality still works correctly for legitimate configurations
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-40438 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- www.oracle.com
- httpd.apache.org
- www.oracle.com
- www.oracle.com
- cert-portal.siemens.com
- lists.debian.org
- security.gentoo.org
- security.netapp.com
- tools.cisco.com
- www.debian.org
- www.tenable.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- www.cisa.gov
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-40438 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data