VDB

CVE-2024-38475

CVE-2024-38475 PUBLISHED CVSS 9.1 CRITICAL

Reported by apache · Published July 1, 2024

Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected. Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
mod_luaAmazon Linux2.4.61-1.amzn2023
mod_mdAmazon Linux2.4.61-1.amzn2.0.1
mod_ldapAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1
apache2Alpine2.4.60-r0
httpd-develAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1
httpd-manualAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1
apacheBitnami2.4.60
mod_sslAmazon Linux1:2.4.61-1.amzn2023, 1:2.4.61-1.amzn2.0.1
httpd-toolsAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1
mod_sessionAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1
httpd-filesystemAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1
httpdAmazon Linux2.4.61-1.amzn2023, 2.4.61-1.amzn2.0.1

10 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
Apache Software FoundationApache HTTP Server2.4.0
amazon:2023mod_lua0
amazon:2mod_md0
amazon:2mod_ldap0
alpineapache20
amazon:2023httpd-devel0
amazon:2httpd-manual0
apachehttp_server2.4.0
netappontap_90
amazon:2mod_ssl0
amazon:2httpd-devel0
Apache Software FoundationApache HTTP Server2.4.0
amazon:2023httpd-tools0
amazon:2mod_session0
amazon:2httpd-filesystem0
amazon:2023httpd-manual0
amazon:2023httpd-filesystem0
amazon:2httpd0
amazon:2023httpd-core0
amazon:2httpd-tools0

…and 6 more

Timeline

  • Jul 1, 2024 CVE Published
  • Jul 2, 2024 EPSS Score (30 in total, the first dated here)
  • Jul 13, 2024 PoC Published (3 in total, the first dated here)
  • Aug 18, 2024 VulnCheck XDB Entry (5 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (30 in total, the first dated here)
  • Apr 29, 2025 VulnCheck KEV Exploitation (275 in total, the first dated here)
  • May 1, 2025 CISA KEV Added
  • Oct 12, 2025 CrowdSec Sighting (92 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (50 in total, the first dated here)
  • Nov 15, 2026 Distribution Patch (48 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-38475
vulnetix vdb fixes CVE-2024-38475

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38475/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›