CVE-2025-1716 picklescan - Security scanning bypass via 'pip main'

Medium 5.3 Published Updated

Attackers can bypass picklescan security checks by using pip.main() in malicious models, leading to arbitrary code execution.

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

CVE-2025-1716 is a medium-severity vulnerability in mmaitre314 picklescan, published on 26 Feb 2025. 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.21 does not treat 'pip' as an unsafe global. An attacker could craft a malicious model that uses Pickle to pull in a malicious PyPI package (hosted, for example, on pypi.org or GitHub) via `pip.main()`. Because pip is not a restricted global, the model, when scanned with picklescan, would pass security checks and appear to be safe, when it could instead prove to be problematic.

Weakness: CWE-184

Which versions are affected by CVE-2025-1716?

It affects 1 product.

Products include Mmaitre314 Picklescan.

How do I fix CVE-2025-1716?

Upgrade to a fixed version.

Is CVE-2025-1716 being exploited?

There is no known exploitation of CVE-2025-1716 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Is CVE-2025-1716 in your software?

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

Check your SBOMs for free