CVE-2025-15504lief-project LIEF ELF Binary Parser.tcc parse_binary null pointer dereference
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.
What to do
Fixed builds are available from PyPI, crates.io: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| crates.io library | lief | Fixed | 0.17.2 | GHSA-mjjp-xjfg-97wg |
| PyPI library | lief | Fixed | 0.17.2 | GHSA-mjjp-xjfg-97wg |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lief-project LIEF: affected: 0.17.0, 0.17.1, 0.17.2 not affected
Vendor advisories:
- https://github.com/lief-project/LIEF/commit/81bd5d7ea0c390563f1c4c017c9019d154802978 (patch)
- https://github.com/lief-project/LIEF/releases/tag/0.17.2 (patch)
References
- https://vuldb.com/?id.340375
- https://vuldb.com/?ctiid.340375
- https://vuldb.com/?submit.733329
- https://github.com/lief-project/LIEF/issues/1277
- https://github.com/lief-project/LIEF/issues/1277#issuecomment-3693859001
- https://github.com/oneafter/1210/blob/main/segv1
- https://github.com/lief-project/LIEF/commit/81bd5d7ea0c390563f1c4c017c9019d154802978
- https://github.com/lief-project/LIEF/releases/tag/0.17.2
- https://github.com/lief-project/LIEF/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.