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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)4.4%top 8.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20apache22.4.62-r0ALPINE-CVE-2024-40725
Alpine:v3.21apache22.4.62-r0ALPINE-CVE-2024-40725
Alpine:v3.22apache22.4.62-r0ALPINE-CVE-2024-40725
Alpine:v3.23apache22.4.62-r0ALPINE-CVE-2024-40725
Alpine:v3.24apache22.4.62-r0ALPINE-CVE-2024-40725
Debian:12apache22.4.62-1~deb12u1DEBIAN-CVE-2024-40725
Debian:13apache22.4.62-1DEBIAN-CVE-2024-40725
Debian:14apache22.4.62-1DEBIAN-CVE-2024-40725
Ubuntu:22.04:LTSapache22.4.52-1ubuntu4.12USN-6902-1
Ubuntu:22.04:LTSapache22.4.52-1ubuntu4.12UBUNTU-CVE-2024-40725
Ubuntu:24.04:LTSapache22.4.58-1ubuntu8.4UBUNTU-CVE-2024-40725
Ubuntu:24.04:LTSapache22.4.58-1ubuntu8.4USN-6902-1

Affected products (as reported)

VendorProductVersions
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

References