Source code disclosure via ignored AddType handlers
Published Jul 18, 2024 · Updated Mar 14, 2025
Information disclosure in Apache HTTP Server 2.4.60 through 2.4.61 allows remote attackers to read local source code via indirect requests. The core ignores some legacy content-type-based handler mappings set by AddType and similar directives when an indirect request resolves a file, so script content is served instead of interpreted. Exposure requires such legacy handler configuration and an indirectly requested local file, and the disclosed content can include application source such as PHP scripts.
Summary
What happened
Information disclosure in Apache HTTP Server 2.4.60 through 2.4.61 allows remote attackers to read local source code via indirect requests. The core ignores some legacy content-type-based handler mappings set by AddType and similar directives when an indirect request resolves a file, so script content is served instead of interpreted. Exposure requires such legacy handler configuration and an indirectly requested local file, and the disclosed content can include application source such as PHP scripts.
The record
- CVE
- CVE-2024-40725
- Published
- Jul 18, 2024
- Updated
- Mar 14, 2025
- Vendor
- The Apache Software Foundation
- Product
- Apache HTTP Server
- Classifications
- CWE-668, T1005
- Attack vector
- network
- Privileges
- Unavailable
Timeline
How it unfolded
- Jul 18, 2024CVE publishedPublication date reported by the CVE source.
- Mar 14, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2.4.60 <=2.4.61
What conditions does exploitation require?
What is affected?
Published CVSS scores
No CVSS assessment is available in this record.
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo