CVE-2025-71344 picklescan - Arbitrary Code Execution via Undetected ensurepip._run_pip Function

High 7.6 Published Updated

Attackers can execute arbitrary code by bypassing picklescan detection using ensurepip._run_pip in malicious pickle files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-71344?

CVE-2025-71344 is a high-severity unsafe deserialization vulnerability in picklescan, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

picklescan before 0.0.30 (affected versions 0.0.26 and earlier) fails to detect the ensurepip._run_pip built-in function when scanning pickle files, allowing attackers to execute arbitrary code. Malicious pickle files embedding ensurepip._run_pip calls in __reduce__ methods bypass picklescan detection and achieve remote code execution upon pickle.load() invocation.

Weakness: CWE-502

Which versions are affected by CVE-2025-71344?

3 open source packages ship an affected version, including picklescan.

PackageAffectedFixed in
picklescan PyPIAll versions0.0.30
picklescan PyPIAll versions0.0.30
picklescan PyPIAll versions0.0.30

How do I fix CVE-2025-71344?

Upgrade picklescan to 0.0.30 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2025-71344 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-71344 exists.

Sources

Also known as GHSA-xp4f-hrf8-rxw7, PYSEC-2026-1792.

Is CVE-2025-71344 in your software?

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

Check your SBOMs for free