Skip to content

CVE-2024-40725 Apache HTTP Server: source code disclosure with handlers configured via AddType

MediumCVSS 5.3 EPSS 4.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
PHPApache HTTP ServerUbuntuDebian

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.

Upgrade path

14 packages: 14 fixed.

PackageAffectedFixed inStatus
alpine/apache2(Alpine v3.17) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.18) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.19) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.20) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.21) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.22) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.23) < 2.4.62-r0 2.4.62-r0 Fixed
alpine/apache2(Alpine v3.24) < 2.4.62-r0 2.4.62-r0 Fixed
Apache HTTP Server = 2.4.60; = 2.4.61; >= 2.4.60, <= 2.4.61 after 2.4.61 Fixed
debian/apache2(Debian 12) < 2.4.62-1~deb12u1; = 2.4.57-2; = 2.4.57-3; = 2.4.58-1 +11 more 2.4.62-1~deb12u1 Fixed
debian/apache2(Debian 13) < 2.4.62-1 2.4.62-1 Fixed
debian/apache2(Debian 14) < 2.4.62-1 2.4.62-1 Fixed
ubuntu/apache2(Ubuntu 22.04) < 2.4.52-1ubuntu4.12 2.4.52-1ubuntu4.12 Fixed
ubuntu/apache2(Ubuntu 24.04) < 2.4.58-1ubuntu8.4 2.4.58-1ubuntu8.4 Fixed

Affected products

ProductAffected versionsFixed in
debian/apache2(Debian:12) < 2.4.62-1~deb12u1 2.4.62-1~deb12u1
debian/apache2(Debian:12) = 2.4.57-2 No fix listed
debian/apache2(Debian:12) = 2.4.57-3 No fix listed
debian/apache2(Debian:12) = 2.4.58-1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1~deb10u1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1~deb11u1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1~deb12u1 No fix listed
debian/apache2(Debian:12) = 2.4.59-2 No fix listed
debian/apache2(Debian:12) = 2.4.60-1 No fix listed
debian/apache2(Debian:12) = 2.4.61-1 No fix listed
debian/apache2(Debian:12) = 2.4.61-1~deb11u1 No fix listed
debian/apache2(Debian:12) = 2.4.61-1~deb12u1 No fix listed
debian/apache2(Debian:12) = 2.4.62-1~deb11u1 No fix listed
debian/apache2(Debian:12) = 2.4.62-1~deb11u2 No fix listed
debian/apache2(Debian:13) < 2.4.62-1 2.4.62-1
debian/apache2(Debian:14) < 2.4.62-1 2.4.62-1
ubuntu/apache2(Ubuntu:22.04) < 2.4.52-1ubuntu4.12 2.4.52-1ubuntu4.12
Apache HTTP Server >= 2.4.60, <= 2.4.61 No fix listed
alpine/apache2(Alpine:v3.17) < 2.4.62-r0 2.4.62-r0
alpine/apache2(Alpine:v3.18) < 2.4.62-r0 2.4.62-r0
alpine/apache2(Alpine:v3.19) < 2.4.62-r0 2.4.62-r0
alpine/apache2(Alpine:v3.20) < 2.4.62-r0 2.4.62-r0
alpine/apache2(Alpine:v3.21) < 2.4.62-r0 2.4.62-r0
alpine/apache2(Alpine:v3.22) < 2.4.62-r0 2.4.62-r0
Show 5 more
ProductAffected versionsFixed in
alpine/apache2(Alpine:v3.23) < 2.4.62-r0 2.4.62-r0
alpine/apache2(Alpine:v3.24) < 2.4.62-r0 2.4.62-r0
ubuntu/apache2(Ubuntu:24.04) < 2.4.58-1ubuntu8.4 2.4.58-1ubuntu8.4
Apache HTTP Server = 2.4.60 No fix listed
Apache HTTP Server = 2.4.61 No fix listed

References