CVE-2025-15504 lief-project LIEF ELF Binary Parser.tcc parse_binary null pointer dereference
A local attacker can cause a denial of service in the LIEF library via a null pointer dereference in the ELF parser.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-15504?
CVE-2025-15504 is a medium-severity vulnerability in lief-project LIEF, published on 10 Jan 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2025-15504?
5 open source packages ship an affected version, including lief. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
lief PyPI | All versions | 0.17.2 |
lief PyPI | All versions | 0.17.2 |
lief PyPI | All versions | 0.17.2 |
lief crates.io | All versions | 0.17.2 |
lief crates.io | All versions | 0.17.2 |
Products include Lief-Project Lief.
How do I fix CVE-2025-15504?
Upgrade lief to 0.17.2 or later.
Is CVE-2025-15504 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-15504 exists.
Other vulnerabilities in lief-project LIEF
- CVE-2021-32297 LIEF heap-buffer-overflow
- CVE-2022-38306 LIEF vulnerable to heap based buffer overflow
- CVE-2022-38495 LIEF vulnerable to heap based buffer overflow via print_binary function
- CVE-2022-43171 LIEF heap buffer overflow in the LIEF::MachO::BinaryParser::parse_dyldinfo_generic_bind
- CVE-2022-40922 LIEF vulnerable to denial of service through segmentation fault
Sources
Also known as GHSA-mjjp-xjfg-97wg, PYSEC-2026-1538.