CVE-2026-53873 picklescan - Arbitrary Code Execution via profile.run() Blocklist Bypass

Critical 9.3 Published Updated

Attackers can execute arbitrary code by bypassing picklescan's blocklist using the profile.run() function in malicious pickle files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-53873?

CVE-2026-53873 is a critical code injection vulnerability in picklescan, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

picklescan before 1.0.4 contains an incomplete blocklist for the profile module that fails to block the module-level profile.run() function, allowing attackers to achieve arbitrary code execution via exec(). Attackers can craft malicious pickle files calling profile.run(statement) to execute arbitrary Python code while picklescan reports zero security issues.

Weakness: CWE-184

Which versions are affected by CVE-2026-53873?

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

PackageAffectedFixed in
picklescan PyPIAll versions1.0.4
picklescan PyPIAll versions1.0.4
picklescan PyPIAll versions1.0.4

How do I fix CVE-2026-53873?

Upgrade picklescan to 1.0.4 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-53873 being exploited?

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

Sources

Also known as GHSA-7wx9-6375-f5wh, PYSEC-2026-455.

Is CVE-2026-53873 in your software?

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

Check your SBOMs for free