CVE-2021-40438 in resf rocky linux
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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 software: resf rocky linux, redhat enterprise linux, redhat enterprise linux eus, redhat enterprise linux for arm 64, redhat enterprise linux for arm 64 eus, redhat enterprise linux for ibm z systems, redhat enterprise linux for ibm z systems eus, redhat enterprise linux for ibm z systems eus s390x, redhat enterprise linux for power big endian, redhat enterprise linux for power little endian
Scores
- CVSS: 9.0 (critical)
- EPSS: 100.00% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2021-12-01, used in ransomware
- Published: 2021-09-16
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): Yes, published
- Mitigation: Yes, see below
How to mitigate it
Upgrade Apache HTTP Server to 2.4.49 or later (mod_proxy SSRF, CVE-2021-40438)
Patch or upgrade. A crafted request path can make mod_proxy forward to a server the attacker chooses. Apache 2.4.49 fixes it; use the latest 2.4 release because 2.4.49 and 2.4.50 have their own flaws.
Applies to: Apache HTTP Server 2.4.48 and earlier with mod_proxy.
- List every server that runs Apache HTTP Server with mod_proxy loaded (httpd -M).
- Upgrade to the latest 2.4 release from your distribution or apache.org (2.4.51 or later).
- Restart Apache and check the reverse proxy routes.
- Run a vulnerability scan to confirm the CVE is no longer reported.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.