CVE-2024-40725
Apache HTTP Server: source code disclosure with handlers configured via AddType
Severity: High CVSS 5.3. Status in our packages: Fixed.
About CVE-2024-40725
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.
Description quoted from the CVE record at cve.org.
| Published | 2024-07-18 |
|---|---|
| Weakness | CWE-668 Exposure of Resource to Wrong Sphere |
| CVSS | Medium 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (scored by CISA-ADP) |
| Affected upstream | Apache HTTP Server 2.4.60 through 2.4.61 |
Our advisory GPSA-2026-0026
GPSA-2026-0026: httpd: 72 security fixes for CentOS 7, including CVE-2024-38475 (opens in a new tab) (Important, issued 2026-12-06).
Status in GetPageSpeed packages
| Product | Status | Fixed in | Details |
|---|---|---|---|
| httpd | Fixed | 2.4.6-107.el7.everpatch1 | GPSA-2026-0026 (opens in a new tab) |
| Apache httpd 2.4.6 (CentOS 7) | Fixed | 2.4.6-106.el7.gps1 Affected upstream: 2.4.60 through 2.4.61 | Everpatch httpd |
Check a server for CVE-2024-40725
Everpatch httpd 2.4.6-106.el7.gps1 or later carries the fix. The package changelog names every CVE a build fixes.
rpm -q httpd
rpm -q --changelog httpd | grep -F CVE-2024-40725The httpd package restarts the server on update.
Fixed in the same build
- CVE-2024-47252: Apache HTTP Server: mod_ssl error log variable escaping
- CVE-2024-43204: Apache HTTP Server: SSRF with mod_headers setting Content-Type header
- CVE-2024-42516: Apache HTTP Server: HTTP response splitting
- CVE-2024-39884: Apache HTTP Server: source code disclosure with handlers configured via AddType
- CVE-2024-39573: Apache HTTP Server: mod_rewrite proxy handler substitution
- CVE-2024-38477: Apache HTTP Server: Crash resulting in Denial of Service in mod_proxy via a malicious request
Scanner feeds (OVAL, CSAF, OpenVEX), fix-time targets and answers to common questions: the CVE tracker.