Apache HTTP Server: source code disclosure with handlers configured via AddType
A partial fix for CVE-2024-39884 in the core of Apache HTTP Server 2.4.61 ignores some use of the legacy content-type based configuration of handlers. "AddType" and similar configuration, under some circumstances where files are requested indirectly, result in source code disclosure of local content. For example, PHP scripts may be served instead of interpreted. Users are recommended to upgrade to version 2.4.62, which fixes this issue.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-40725
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 11:22 UTC · Revision 1
Source evidence
Apache HTTP Server: source code disclosure with handlers configured via AddType
core-osv · Original sourcePublished 18 Jul 2024, 09:32 UTC
A partial fix for CVE-2024-39884 in the core of Apache HTTP Server 2.4.61 ignores some use of the legacy content-type based configuration of handlers. "AddType" and similar configuration, under some circumstances where files are requested indirectly, result in source code disclosure of local content. For example, PHP scripts may be served instead of interpreted. Users are recommended to upgrade to version 2.4.62, which fixes this issue.
osv:CVE-2024-40725
Complete source record
{
"id": "8f77362985f6c50b5d973136b3cef2b19d81f3ab5b53320b54f67cbf3c8f923e",
"url": "https://osv.dev/vulnerability/CVE-2024-40725",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Apache HTTP Server: source code disclosure with handlers configured via AddType",
"summary": "A partial fix for CVE-2024-39884 in the core of Apache HTTP Server 2.4.61 ignores some use of the legacy content-type based configuration of handlers. \"AddType\" and similar configuration, under some circumstances where files are requested indirectly, result in source code disclosure of local content. For example, PHP scripts may be served instead of interpreted. Users are recommended to upgrade to version 2.4.62, which fixes this issue.",
"evidence": "osv:CVE-2024-40725",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-40725",
"aliases": [
"BIT-apache-2024-40725",
"CVE-2024-40725"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/httpd",
"type": "GIT",
"events": [
{
"introduced": "15e7241fa52e86096ee061e1b7fca0cd8d6f53ee"
},
{
"last_affected": "9ecba8771d372254ea1c74130b0037f52112a7e1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:http_server:2.4.60:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.4.60"
},
{
"last_affected": "2.4.60"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:apache:http_server:2.4.61:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.4.61"
},
{
"last_affected": "2.4.61"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"2.4.60",
"2.4.61"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40725.json"
}
}
],
"modified": "2026-10-28T02:30:28.135223510Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40725.json",
"https://httpd.apache.org/security/vulnerabilities_24.html",
"https://nvd.nist.gov/vuln/detail/CVE-2024-40725",
"https://security.netapp.com/advisory/ntap-20240808-0007/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-668"
],
"cna_assigner": "apache",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "2.4.60"
},
{
"last_affected": "2.4.61"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40725.json"
}
},
"related_cves": [
{
"value": "CVE-2024-40725",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494915,
"published_at": "2024-07-18T09:32:43.929+00:00"
}