CVE-2024-39884 Apache HTTP Server: source code disclosure with handlers configured via AddType
Attackers can view source code of scripts like PHP due to a regression in handler configuration, affecting Apache HTTP Server users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-39884?
CVE-2024-39884 is a medium-severity vulnerability in Apache Http Server, published on 4 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A regression in the core of Apache HTTP Server 2.4.60 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.61, which fixes this issue.
Which versions are affected by CVE-2024-39884?
1 open source package ship an affected version, including apache. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
apache Bitnami | From 2.4.60 | 2.4.61 |
Linux distribution packages (6)
apache2 SUSE:Linux Enterprise Server 12 SP5 | All versions | 2.4.51-35.60.1 |
apache2-tls13 SUSE:Linux Enterprise Server 12 SP5 | All versions | 2.4.51-35.60.1 |
apache2 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 2.4.51-35.60.1 |
apache2-tls13 SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 2.4.51-35.60.1 |
apache2 SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 2.4.51-35.60.1 |
apache2-tls13 SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 2.4.51-35.60.1 |
Products include Apache Http Server, Netapp Ontap Tools.
How do I fix CVE-2024-39884?
Upgrade apache to 2.4.61 or later.
Is CVE-2024-39884 being exploited?
There is no known exploitation of CVE-2024-39884 in the wild and no public exploit code.
Other vulnerabilities in Apache Http Server
Sources
Also known as ALPINE-CVE-2024-39884, AZL-43170, AZL-43174, BIT-apache-2024-39884, CLEANSTART-2026-CF08389, DEBIAN-CVE-2024-39884 and 3 more.