Vulnerability · Published Jul 18, 2024 · Assigned by apache
CVE-2024-40725Apache HTTP Server: source code disclosure with handlers configured via AddType
Medium 5.3
In plain English
A medium-severity security flaw in Apache HTTP Server from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.4% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | apache2 | 2.4.62-r0 | ALPINE-CVE-2024-40725 |
| Alpine:v3.21 | apache2 | 2.4.62-r0 | ALPINE-CVE-2024-40725 |
| Alpine:v3.22 | apache2 | 2.4.62-r0 | ALPINE-CVE-2024-40725 |
| Alpine:v3.23 | apache2 | 2.4.62-r0 | ALPINE-CVE-2024-40725 |
| Alpine:v3.24 | apache2 | 2.4.62-r0 | ALPINE-CVE-2024-40725 |
| Debian:12 | apache2 | 2.4.62-1~deb12u1 | DEBIAN-CVE-2024-40725 |
| Debian:13 | apache2 | 2.4.62-1 | DEBIAN-CVE-2024-40725 |
| Debian:14 | apache2 | 2.4.62-1 | DEBIAN-CVE-2024-40725 |
| Ubuntu:22.04:LTS | apache2 | 2.4.52-1ubuntu4.12 | USN-6902-1 |
| Ubuntu:22.04:LTS | apache2 | 2.4.52-1ubuntu4.12 | UBUNTU-CVE-2024-40725 |
| Ubuntu:24.04:LTS | apache2 | 2.4.58-1ubuntu8.4 | UBUNTU-CVE-2024-40725 |
| Ubuntu:24.04:LTS | apache2 | 2.4.58-1ubuntu8.4 | USN-6902-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache HTTP Server | 2.4.60 – through 2.4.61 |
Weakness: CWE-668 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N