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

Medium 6.2 Published Updated

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.

PackageAffectedFixed in
apache BitnamiFrom 2.4.602.4.61
Linux distribution packages (6)
apache2 SUSE:Linux Enterprise Server 12 SP5All versions2.4.51-35.60.1
apache2-tls13 SUSE:Linux Enterprise Server 12 SP5All versions2.4.51-35.60.1
apache2 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions2.4.51-35.60.1
apache2-tls13 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions2.4.51-35.60.1
apache2 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.4.51-35.60.1
apache2-tls13 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions2.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.

All Apache Http Server vulnerabilities

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.

Is CVE-2024-39884 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free