CVE-2025-71351 picklescan - Remote Code Execution via timeit.timeit() Detection Bypass

High 7.6 Published Updated

Attackers can bypass picklescan detection using timeit.timeit() in pickle files to achieve remote code execution when the library processes malicious data.

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-71351?

CVE-2025-71351 is a high-severity unsafe deserialization vulnerability in picklescan, published on 21 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.25 fails to detect malicious pickle files that use timeit.timeit() in the __reduce__ method, allowing remote code execution. Attackers can craft pickle files that import dangerous libraries like os and execute arbitrary system commands, which evade picklescan detection and execute when pickle.load() is called.

Weakness: CWE-184

Which versions are affected by CVE-2025-71351?

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

PackageAffectedFixed in
picklescan PyPIAll versions0.0.25
picklescan PyPIAll versions0.0.25
picklescan PyPIAll versions0.0.25

How do I fix CVE-2025-71351?

Upgrade picklescan to 0.0.25 or later.

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

Is CVE-2025-71351 being exploited?

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

Sources

Also known as GHSA-v7x6-rv5q-mhwc, PYSEC-2026-4135.

Is CVE-2025-71351 in your software?

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

Check your SBOMs for free