CVE & CISA-KEV Catalog

CVE-2024-38474

CRITICALEPSS 84th pctl
9.8
CVSS v3
NVD

Description

Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant to only to be executed as CGI. Users are recommended to upgrade to version 2.4.60, which fixes this issue. Some RewriteRules that capture and substitute unsafely will now fail unless rewrite flag "UnsafeAllow3F" is specified.

How to fix

Remediation Available
httpdAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-coreAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-core-debuginfoAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-debuginfoAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-debugsourceAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-develAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-filesystemAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
httpd-manualAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
httpd-toolsAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
httpd-tools-debuginfoAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_ldapAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_ldap-debuginfoAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_luaAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_lua-debuginfoAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_mdAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
mod_proxy_htmlAmazon
Fixed in:1:2.4.61-1.amzn2.0.1
Fixed in:1:2.4.61-1.amzn2.0.1
Fixed in:1:2.4.61-1.amzn2.0.1
Fixed in:1:2.4.61-1.amzn2023
Fixed in:1:2.4.61-1.amzn2023
mod_proxy_html-debuginfoAmazon
Fixed in:1:2.4.61-1.amzn2023
Fixed in:1:2.4.61-1.amzn2023
mod_sessionAmazon
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2.0.1
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_session-debuginfoAmazon
Fixed in:0:2.4.61-1.amzn2023
Fixed in:0:2.4.61-1.amzn2023
mod_sslAmazon
Fixed in:1:2.4.61-1.amzn2.0.1
Fixed in:1:2.4.61-1.amzn2.0.1
Fixed in:1:2.4.61-1.amzn2.0.1
Fixed in:1:2.4.61-1.amzn2023
Fixed in:1:2.4.61-1.amzn2023
mod_ssl-debuginfoAmazon
Fixed in:1:2.4.61-1.amzn2023
Fixed in:1:2.4.61-1.amzn2023
apache2Debian
Fixed in:2.4.61-1~deb12u1CVE-2024-38474
Fixed in:2.4.60-1CVE-2024-38474
Fixed in:2.4.60-1CVE-2024-38474
httpdRocky
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.6-99.el7_9.2.ppc64RHSA-2024:4943
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.6-90.el7_7.4RHSA-2024:4938
Fixed in:0:2.4.6-90.el7_7.4RHSA-2024:4938
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.37-39.module+el8.4.0+22127+467cc488.8.ppc64le::httpd:2.4RHSA-2024:4830
httpdRed Hat / RHEL
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2.ppc64RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-90.el7_7.4RHSA-2024:4938

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-90.el7_7.4RHSA-2024:4938

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1.ppc64le::httpd:2.4RHSA-2024:4720
httpd-coreRocky
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
httpd-coreRed Hat / RHEL
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
httpd-core-debuginfoRocky
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
httpd-core-debuginfoRed Hat / RHEL
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.57-11.el9_4RHSA-2024:4726
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
Fixed in:0:2.4.53-11.el9_2.8RHSA-2024:4862
httpd-debuginfoRed Hat / RHEL
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2.ppc64RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-90.el7_7.4RHSA-2024:4938

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943

This Red Hat / RHEL release reached end-of-life on 2024-06-30. Extended security maintenance is available until 2029-05-31.

Fixed in:0:2.4.37-47.module+el8.6.0+22124+21ed7001.9.s390x::httpd:2.4RHSA-2024:4827
Fixed in:0:2.4.37-56.module+el8.8.0+22079+e03f6970.8.aarch64::httpd:2.4RHSA-2024:4719
Fixed in:0:2.4.37-56.module+el8.8.0+22079+e03f6970.8.ppc64le::httpd:2.4RHSA-2024:4719
httpd-debuginfoRocky
Fixed in:0:2.4.6-99.el7_9.2.ppc64RHSA-2024:4943
Fixed in:0:2.4.6-90.el7_7.4RHSA-2024:4938
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.6-99.el7_9.2RHSA-2024:4943
Fixed in:0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1.x86_64::httpd:2.4RHSA-2024:4720
Fixed in:0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1.s390x::httpd:2.4RHSA-2024:4720
Fixed in:0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1.ppc64le::httpd:2.4RHSA-2024:4720

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

2.46%probability of exploitation in 30 days
84thpercentile

Elevated risk: more likely to be exploited than 84% of all known CVEs.

References

Vendor Advisory1
Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-116 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-38475Critical9.1100%KEVFix
CVE-2022-36446Critical9.896%-Fix
CVE-2021-31806Medium6.596%-Fix
CVE-2022-30781High7.589%-Fix
CVE-2022-36099Critical9.976%-Fix
CVE-2022-36100Critical9.974%-Fix

Common questions

How do I fix CVE-2024-38474?

Published advisories record a fix for 130 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2024-38474 being actively exploited?

Not that we know of. CVE-2024-38474 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.5% is the estimated probability that it will be exploited in the next 30 days. That is higher than 84% of all scored CVEs.

How severe is CVE-2024-38474?

CVE-2024-38474 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-38474 affect?

Published advisories record a fix for httpd (Amazon), httpd-core (Amazon), httpd-core-debuginfo (Amazon), httpd-debuginfo (Amazon), and 126 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2024-38474
CVE-2024-38474 severity badge

Markdown

[![CVE-2024-38474](https://tridentstack.com/cve/badge/CVE-2024-38474.svg)](https://tridentstack.com/cve/CVE-2024-38474)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-38474"><img src="https://tridentstack.com/cve/badge/CVE-2024-38474.svg" alt="CVE-2024-38474"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.