CVE-2025-15504 lief-project LIEF ELF Binary Parser.tcc parse_binary null pointer dereference

Medium 4.8 Published Updated

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.

Weakness: CWE-476, CWE-404

Which versions are affected by CVE-2025-15504?

5 open source packages ship an affected version, including lief. It affects 1 product.

PackageAffectedFixed in
lief PyPIAll versions0.17.2
lief PyPIAll versions0.17.2
lief PyPIAll versions0.17.2
lief crates.ioAll versions0.17.2
lief crates.ioAll versions0.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.

Sources

Also known as GHSA-mjjp-xjfg-97wg, PYSEC-2026-1538.

Is CVE-2025-15504 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free