CVE-2025-15504: LIEF is vulnerable to segmentation fault
A security flaw has been discovered in lief-project LIEF up to 0.17.1. Affected by this issue is the function Parser::parsebinary of the file src/ELF/Parser.tcc of the component ELF Binary Parser. The manipulation results in null pointer dereference. The attack must be initiated from a local position. The exploit has been released to the public and may be used for attacks.
Published Jan 10, 2026 · Updated Feb 23, 2026
Affected packages
lief
- Ecosystem
- PyPI
- Affected
- < 0.17.2
- Fixed in
- 0.17.2
- Check
pip show lief
lief
- Ecosystem
- Rust (crates.io)
- Affected
- < 0.17.2
- Fixed in
- 0.17.2
- Check
cargo tree -i lief
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A security flaw has been discovered in lief-project LIEF up to 0.17.1. Affected by this issue is the function Parser::parse_binary of the file src/ELF/Parser.tcc of the component ELF Binary Parser. The manipulation results in null pointer dereference. The attack must be initiated from a local position. The exploit has been released to the public and may be used for attacks. Upgrading to version 0.17.2 can resolve this issue. The patch is identified as 81bd5d7ea0c390563f1c4c017c9019d154802978. It is recommended to upgrade the affected component.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-15504
- https://github.com/lief-project/LIEF/issues/1277
- https://github.com/lief-project/LIEF/issues/1277#issuecomment-3693859001
- https://github.com/lief-project/LIEF/commit/81bd5d7ea0c390563f1c4c017c9019d154802978
- https://github.com/lief-project/LIEF/releases/tag/0.17.2
- https://github.com/oneafter/1210/blob/main/segv1
- https://vuldb.com/?ctiid.340375
- https://vuldb.com/?id.340375
- https://vuldb.com/?submit.733329
- https://github.com/lief-project/LIEF
- https://github.com/advisories/GHSA-mjjp-xjfg-97wg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
