CVE-2024-40725: 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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/apache2to a version that resolves this vulnerability.Fixed in 2.4.62-r0 - Upgrade
Upgrade
debian/apache2to a version that resolves this vulnerability.Fixed in 2.4.62-1~deb12u1 - Upgrade
Upgrade
debian/apache2to a version that resolves this vulnerability.Fixed in 2.4.62-1 - Upgrade
Upgrade
debian/apache2to a version that resolves this vulnerability.Fixed in 2.4.68-1~deb12u1Fixed in 2.4.67-1~deb12u3Fixed in 2.4.68-1~deb13u1Fixed in 2.4.69-1~deb13u1Fixed in 2.4.69-1 - Upgrade
Upgrade
ubuntu/apache2to a version that resolves this vulnerability.Fixed in 2.4.41-4ubuntu3.21 - Upgrade
Upgrade
ubuntu/apache2to a version that resolves this vulnerability.Fixed in 2.4.52-1ubuntu4.12 - Upgrade
Upgrade
ubuntu/apache2to a version that resolves this vulnerability.Fixed in 2.4.58-1ubuntu8.4 - Upgrade
Upgrade
Apache HTTP Serverto a version that resolves this vulnerability.Fixed in 2.4.62
Event History
Frequently Asked Questions
What is the severity of CVE-2024-40725?
CVE-2024-40725 is considered a medium severity vulnerability affecting Apache HTTP Server.
How do I fix CVE-2024-40725?
To mitigate CVE-2024-40725, upgrade to Apache HTTP Server version 2.4.62 or later.
What are the vulnerable versions for CVE-2024-40725?
The vulnerable versions for CVE-2024-40725 include Apache HTTP Server 2.4.60 and 2.4.61.
What impact does CVE-2024-40725 have on my server?
CVE-2024-40725 may lead to source code disclosure under certain configuration circumstances.
Is CVE-2024-40725 a known issue with Apache HTTP Server?
Yes, CVE-2024-40725 is a recognized issue linked to a partial fix for an earlier vulnerability.