CVE-2024-40725
Published: 18 July 2024
Summary
CVE-2024-40725 is a medium-severity Exposure of Resource to Wrong Sphere (CWE-668) vulnerability in Apache Http Server. Its CVSS base score is 5.3 (Medium).
Operationally, ranked in the top 3.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2024-40725 is an incomplete remediation of CVE-2024-39884 that affects the core request-handling logic in Apache HTTP Server 2.4.61. When legacy directives such as AddType are used to associate content types with handlers, certain indirect file requests can bypass the intended processing and cause the server to return the raw source of local files instead of executing or interpreting them.
An unauthenticated remote attacker can supply crafted requests that trigger this path, resulting in disclosure of application source code such as PHP scripts. The flaw requires no credentials or user interaction and is rated CVSS 5.3, reflecting limited impact confined to confidentiality.
Apache’s security advisory and the linked NetApp advisory both state that the issue is resolved by upgrading to version 2.4.62; no work-arounds are described. The associated EPSS score has remained essentially flat between its recorded peak of 0.2657 and current value of 0.2510, providing no indication of rising exploitation interest after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-38590
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Controls whether organization resources are exposed to external system spheres by permitting or prohibiting their use.
The control ensures information is not released into a security sphere where the recipient lacks matching access authorizations.
The control ensures information resources are not exposed to the incorrect (public) sphere through review and authorization.
Protects against data mining that would expose resources to unauthorized spheres by enforcing detection and controls.
Restricts information flows to ensure resources are not exposed to incorrect or unauthorized spheres.
Controlling internal connections prevents exposure of resources to unintended internal spheres.
Knowing exact processing and storage locations helps avoid exposure of resources to incorrect spheres.
The control prevents exposure of the media resource to the wrong security sphere.