UBUNTU-CVE-2024-38474 (CVE-2024-38474)
Vulnerability from osv_ubuntu – Published: 2024-07-01 19:15 – Updated: 2026-04-22 07:49 – Source websiteSubstitution 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.
{
"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"
}
]
},
"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+esm14"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.18-2ubuntu3.17+esm14"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.18-2ubuntu3.17+esm14"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.18-2ubuntu3.17+esm14"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.18-2ubuntu3.17+esm14"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.18-2ubuntu3.17+esm14"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.18-2ubuntu3.17+esm14?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.18-2ubuntu3.17+esm14"
}
],
"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",
"2.4.18-2ubuntu3.17+esm13"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.29-1ubuntu4.27+esm4"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.29-1ubuntu4.27+esm4"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.29-1ubuntu4.27+esm4"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.29-1ubuntu4.27+esm4"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.29-1ubuntu4.27+esm4"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.29-1ubuntu4.27+esm4"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.29-1ubuntu4.27+esm4?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.29-1ubuntu4.27+esm4"
}
],
"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",
"2.4.29-1ubuntu4.27+esm3"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "libapache2-mod-md",
"binary_version": "2.4.41-4ubuntu3.23"
},
{
"binary_name": "libapache2-mod-proxy-uwsgi",
"binary_version": "2.4.41-4ubuntu3.23"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.41-4ubuntu3.23?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.41-4ubuntu3.23"
}
],
"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",
"2.4.41-4ubuntu3.19",
"2.4.41-4ubuntu3.20",
"2.4.41-4ubuntu3.21"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "libapache2-mod-md",
"binary_version": "2.4.52-1ubuntu4.16"
},
{
"binary_name": "libapache2-mod-proxy-uwsgi",
"binary_version": "2.4.52-1ubuntu4.16"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.52-1ubuntu4.16?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.52-1ubuntu4.16"
}
],
"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",
"2.4.52-1ubuntu4.10",
"2.4.52-1ubuntu4.11",
"2.4.52-1ubuntu4.12",
"2.4.52-1ubuntu4.13",
"2.4.52-1ubuntu4.14",
"2.4.52-1ubuntu4.15"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "apache2",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "apache2-bin",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "apache2-data",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "apache2-suexec-custom",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "apache2-suexec-pristine",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "apache2-utils",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "libapache2-mod-md",
"binary_version": "2.4.58-1ubuntu8.8"
},
{
"binary_name": "libapache2-mod-proxy-uwsgi",
"binary_version": "2.4.58-1ubuntu8.8"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "apache2",
"purl": "pkg:deb/ubuntu/apache2@2.4.58-1ubuntu8.8?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.58-1ubuntu8.8"
}
],
"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",
"2.4.58-1ubuntu8.2",
"2.4.58-1ubuntu8.3",
"2.4.58-1ubuntu8.4",
"2.4.58-1ubuntu8.5",
"2.4.58-1ubuntu8.6",
"2.4.58-1ubuntu8.7"
]
}
],
"aliases": [],
"details": "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\u00a0URL 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.",
"id": "UBUNTU-CVE-2024-38474",
"modified": "2026-04-22T07:49:22Z",
"published": "2024-07-01T19:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-38474"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-38474"
},
{
"type": "REPORT",
"url": "https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2024-38474"
},
{
"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": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6885-4"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6885-5"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6885-6"
}
],
"related": [
"USN-6885-1",
"USN-6885-3",
"USN-6885-4",
"USN-6885-5",
"USN-6885-6"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-38474"
]
}
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.