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

What LogPulse has for it

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.

  1. List every server that runs Apache HTTP Server with mod_proxy loaded (httpd -M).
  2. Upgrade to the latest 2.4 release from your distribution or apache.org (2.4.51 or later).
  3. Restart Apache and check the reverse proxy routes.
  4. 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.

Start free with LogPulse