UBUNTU-CVE-2024-38475 (CVE-2024-38475)
Vulnerability from osv_ubuntu – Published: 2024-07-01 19:15 – Updated: 2026-04-22 07:49 – Source websiteImproper 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.
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-mpm-event",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-mpm-itk",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-mpm-prefork",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-mpm-worker",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-suexec",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "apache2.2-bin",
"binary_version": "2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "libapache2-mod-macro",
"binary_version": "1:2.4.7-1ubuntu4.22+esm10"
},
{
"binary_name": "libapache2-mod-proxy-html",
"binary_version": "1:2.4.7-1ubuntu4.22+esm10"
}
],
"priority_reason": "This CVE is in the CISA KEV"
},
"package": {
"ecosystem": "Ubuntu:Pro:14.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.7-1ubuntu4.22+esm10?arch=source\u0026distro=esm-infra-legacy/trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.7-1ubuntu4.22+esm10"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.6-2ubuntu2",
"2.4.6-2ubuntu3",
"2.4.6-2ubuntu4",
"2.4.7-1ubuntu1",
"2.4.7-1ubuntu2",
"2.4.7-1ubuntu3",
"2.4.7-1ubuntu4",
"2.4.7-1ubuntu4.1",
"2.4.7-1ubuntu4.4",
"2.4.7-1ubuntu4.5",
"2.4.7-1ubuntu4.6",
"2.4.7-1ubuntu4.7",
"2.4.7-1ubuntu4.8",
"2.4.7-1ubuntu4.9",
"2.4.7-1ubuntu4.10",
"2.4.7-1ubuntu4.11",
"2.4.7-1ubuntu4.13",
"2.4.7-1ubuntu4.15",
"2.4.7-1ubuntu4.16",
"2.4.7-1ubuntu4.17",
"2.4.7-1ubuntu4.18",
"2.4.7-1ubuntu4.19",
"2.4.7-1ubuntu4.20",
"2.4.7-1ubuntu4.21",
"2.4.7-1ubuntu4.22",
"2.4.7-1ubuntu4.22+esm1",
"2.4.7-1ubuntu4.22+esm2",
"2.4.7-1ubuntu4.22+esm3",
"2.4.7-1ubuntu4.22+esm4",
"2.4.7-1ubuntu4.22+esm5",
"2.4.7-1ubuntu4.22+esm6",
"2.4.7-1ubuntu4.22+esm8",
"2.4.7-1ubuntu4.22+esm9"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.18-2ubuntu3.17+esm13"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.18-2ubuntu3.17+esm13"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.18-2ubuntu3.17+esm13"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.18-2ubuntu3.17+esm13"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.18-2ubuntu3.17+esm13"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.18-2ubuntu3.17+esm13"
}
],
"priority_reason": "This CVE is in the CISA KEV"
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.18-2ubuntu3.17+esm13?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.18-2ubuntu3.17+esm13"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.12-2ubuntu2",
"2.4.17-1ubuntu1",
"2.4.17-2ubuntu1",
"2.4.17-3ubuntu1",
"2.4.18-1ubuntu1",
"2.4.18-2ubuntu1",
"2.4.18-2ubuntu2",
"2.4.18-2ubuntu3",
"2.4.18-2ubuntu3.1",
"2.4.18-2ubuntu3.2",
"2.4.18-2ubuntu3.3",
"2.4.18-2ubuntu3.4",
"2.4.18-2ubuntu3.5",
"2.4.18-2ubuntu3.7",
"2.4.18-2ubuntu3.8",
"2.4.18-2ubuntu3.9",
"2.4.18-2ubuntu3.10",
"2.4.18-2ubuntu3.12",
"2.4.18-2ubuntu3.13",
"2.4.18-2ubuntu3.14",
"2.4.18-2ubuntu3.15",
"2.4.18-2ubuntu3.17",
"2.4.18-2ubuntu3.17+esm1",
"2.4.18-2ubuntu3.17+esm2",
"2.4.18-2ubuntu3.17+esm3",
"2.4.18-2ubuntu3.17+esm4",
"2.4.18-2ubuntu3.17+esm5",
"2.4.18-2ubuntu3.17+esm6",
"2.4.18-2ubuntu3.17+esm7",
"2.4.18-2ubuntu3.17+esm8",
"2.4.18-2ubuntu3.17+esm9",
"2.4.18-2ubuntu3.17+esm10",
"2.4.18-2ubuntu3.17+esm11",
"2.4.18-2ubuntu3.17+esm12"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.29-1ubuntu4.27+esm3"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.29-1ubuntu4.27+esm3"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.29-1ubuntu4.27+esm3"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.29-1ubuntu4.27+esm3"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.29-1ubuntu4.27+esm3"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.29-1ubuntu4.27+esm3"
}
],
"priority_reason": "This CVE is in the CISA KEV"
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.29-1ubuntu4.27+esm3?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.29-1ubuntu4.27+esm3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.27-2ubuntu3",
"2.4.29-1ubuntu1",
"2.4.29-1ubuntu2",
"2.4.29-1ubuntu3",
"2.4.29-1ubuntu4",
"2.4.29-1ubuntu4.1",
"2.4.29-1ubuntu4.2",
"2.4.29-1ubuntu4.3",
"2.4.29-1ubuntu4.4",
"2.4.29-1ubuntu4.5",
"2.4.29-1ubuntu4.6",
"2.4.29-1ubuntu4.7",
"2.4.29-1ubuntu4.8",
"2.4.29-1ubuntu4.10",
"2.4.29-1ubuntu4.11",
"2.4.29-1ubuntu4.12",
"2.4.29-1ubuntu4.13",
"2.4.29-1ubuntu4.14",
"2.4.29-1ubuntu4.16",
"2.4.29-1ubuntu4.17",
"2.4.29-1ubuntu4.18",
"2.4.29-1ubuntu4.19",
"2.4.29-1ubuntu4.20",
"2.4.29-1ubuntu4.21",
"2.4.29-1ubuntu4.22",
"2.4.29-1ubuntu4.23",
"2.4.29-1ubuntu4.24",
"2.4.29-1ubuntu4.25",
"2.4.29-1ubuntu4.26",
"2.4.29-1ubuntu4.27",
"2.4.29-1ubuntu4.27+esm1",
"2.4.29-1ubuntu4.27+esm2"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "libapache2-mod-md",
"binary_version": "2.4.41-4ubuntu3.19"
},
{
"binary_name": "libapache2-mod-proxy-uwsgi",
"binary_version": "2.4.41-4ubuntu3.19"
}
],
"priority_reason": "This CVE is in the CISA KEV"
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.41-4ubuntu3.19?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.41-4ubuntu3.19"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.41-1ubuntu1",
"2.4.41-4ubuntu1",
"2.4.41-4ubuntu2",
"2.4.41-4ubuntu3",
"2.4.41-4ubuntu3.1",
"2.4.41-4ubuntu3.3",
"2.4.41-4ubuntu3.4",
"2.4.41-4ubuntu3.5",
"2.4.41-4ubuntu3.6",
"2.4.41-4ubuntu3.7",
"2.4.41-4ubuntu3.8",
"2.4.41-4ubuntu3.9",
"2.4.41-4ubuntu3.10",
"2.4.41-4ubuntu3.11",
"2.4.41-4ubuntu3.12",
"2.4.41-4ubuntu3.13",
"2.4.41-4ubuntu3.14",
"2.4.41-4ubuntu3.15",
"2.4.41-4ubuntu3.16",
"2.4.41-4ubuntu3.17"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "libapache2-mod-md",
"binary_version": "2.4.52-1ubuntu4.10"
},
{
"binary_name": "libapache2-mod-proxy-uwsgi",
"binary_version": "2.4.52-1ubuntu4.10"
}
],
"priority_reason": "This CVE is in the CISA KEV"
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.52-1ubuntu4.10?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.52-1ubuntu4.10"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.48-3.1ubuntu3",
"2.4.48-3.1ubuntu4",
"2.4.51-2ubuntu1",
"2.4.52-1ubuntu1",
"2.4.52-1ubuntu2",
"2.4.52-1ubuntu4",
"2.4.52-1ubuntu4.1",
"2.4.52-1ubuntu4.2",
"2.4.52-1ubuntu4.3",
"2.4.52-1ubuntu4.4",
"2.4.52-1ubuntu4.5",
"2.4.52-1ubuntu4.6",
"2.4.52-1ubuntu4.7",
"2.4.52-1ubuntu4.8",
"2.4.52-1ubuntu4.9"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "libapache2-mod-md",
"binary_version": "2.4.58-1ubuntu8.2"
},
{
"binary_name": "libapache2-mod-proxy-uwsgi",
"binary_version": "2.4.58-1ubuntu8.2"
}
],
"priority_reason": "This CVE is in the CISA KEV"
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.58-1ubuntu8.2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.58-1ubuntu8.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.4.57-2ubuntu2",
"2.4.57-2ubuntu3",
"2.4.58-1ubuntu1",
"2.4.58-1ubuntu2",
"2.4.58-1ubuntu6",
"2.4.58-1ubuntu7",
"2.4.58-1ubuntu8",
"2.4.58-1ubuntu8.1"
]
}
],
"aliases": [],
"details": "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\u00a0permitted 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\u00a0server context that use a backreferences or variables as the first segment of the substitution are affected.\u00a0 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.",
"id": "UBUNTU-CVE-2024-38475",
"modified": "2026-04-22T07:49:22Z",
"published": "2024-07-01T19:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-38475"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-38475"
},
{
"type": "REPORT",
"url": "https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2024-38475"
},
{
"type": "REPORT",
"url": "https://httpd.apache.org/security/vulnerabilities_24.html"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6885-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6885-3"
},
{
"type": "REPORT",
"url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6885-5"
}
],
"related": [
"USN-6885-1",
"USN-6885-3",
"USN-6885-5"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
"type": "CVSS_V3"
},
{
"score": "high",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-38475"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.