Skip to content
Fencer Vulns
medium 5.3

CVE-2024-40725 json

Apache HTTP Server: source code disclosure with handlers configured via AddType

published 2024-07-18 2 y ago modified 2026-09-08 2 mo ago also BIT-apache-2024-40725 , EUVD-2024-38590

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
4.4%
EPSS 4.4% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami apache 2.4.62
  • apache http_server 2.4.62
  • apache2 Debian 12 2.4.62-1~deb12u1
  • apache2 Debian 14, Debian 13 2.4.62-1

debian advisories DEBIAN-CVE-2024-40725

  • apache2 Ubuntu 20.04 LTS 2.4.41-4ubuntu3.21
  • apache2 Ubuntu 22.04 LTS 2.4.52-1ubuntu4.12
  • apache2 Ubuntu 24.04 LTS 2.4.58-1ubuntu8.4

ubuntu advisories UBUNTU-CVE-2024-40725

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • apache2 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 2.4.66-150400.6.57.1
  • apache2 SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 2.4.51-150200.3.79.1
  • apache2 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Server Applications 15 SP6 +8 more 2.4.51-150400.6.37.1
  • apache2 SLE Module for Package Hub 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.26.1
  • apache2-event SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.26.1
  • apache2-utils SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.26.1
  • apache2-manual openSUSE Leap 15.6 2.4.58-150600.5.26.1
  • apache2-worker SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.26.1

suse advisories SUSE-SU-2026:2686-1SUSE-SU-2025:02241-1SUSE-SU-2024:3864-1SUSE-SU-2024:3750-1SUSE-SU-2024:3742-1

  • apache2 openSUSE Tumbleweed 2.4.62-1.1

opensuse advisories openSUSE-SU-2024:14245-1

  • apache2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 2.4.62-r0

alpine advisories ALPINE-CVE-2024-40725

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • httpd CBL-Mariner 2.0, Azure Linux 3.0 2.4.62-1

azure linux advisories AZL-43414AZL-43427

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-40725 updated cvss 7.5

httpd: source code disclosure with handlers configured via AddType

  • Red Hat Enterprise Linux 6 httpd, mod_ssl, httpd-tools, httpd-manual Red Hat Enterprise Linux 7 httpd, mod_ssl, mod_ldap, httpd-tools, mod_session, httpd-manual, +1 more Red Hat Enterprise Linux 8 httpd, mod_md, mod_ssl, mod_ldap, mod_http2, httpd-tools, +4 more Red Hat Enterprise Linux 9 httpd, mod_lua, mod_ssl, mod_ldap, httpd-core, httpd-tools, +4 more Red Hat Enterprise Linux 10 httpd Red Hat JBoss Core Services jbcs-httpd24-httpd jbcs-httpd24-httpd
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
19 mo ago

Exploit prediction

4.42% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami apache
>=2.4.60, <2.4.62
2.4.62

Affected products

  • Apache Software Foundation Apache HTTP Server

Classification

Weakness
  • CWE-668 Exposure of Resource to Wrong Sphere
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.