CVE-2026-53874: picklescan missing detection by simple obfuscation of a `builtins.eval` call
Summary An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the host loading a pickle payload from an untrusted source. Details It's possible to hide the eval call nested under another callable via getattr. PoC Impact Who is impacted? Any organization or individual relying on picklescan to detect malicious pickle files from untrusted sources.
Published Feb 2, 2026 · Updated Jun 18, 2026
Affected packages
picklescan
- Ecosystem
- PyPI
- Affected
- < 1.0.1
- Fixed in
- 1.0.1
- Check
pip show picklescan
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
An unsafe deserialization vulnerability allows any unauthenticated user to execute arbitrary code on the host loading a pickle payload from an untrusted source.
Details
It's possible to hide the eval call nested under another callable via getattr.
PoC
import builtins
class EvilClass:
@staticmethod
def _obfuscated_eval(payload):
getattr(builtins, "eval")(payload)
def __reduce__(self):
payload = "__import__('os').system('echo \"successful attack\"')"
return self._obfuscated_eval, (payload,)Impact
Who is impacted? Any organization or individual relying on picklescan to detect malicious pickle files from untrusted sources.
What is the impact? Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded.
Supply Chain Attack: Attackers can distribute infected pickle files to system that load serialized ML models, APIs, or saved Python objects from untrusted sources.
Credited to ogrisel.
References
- https://github.com/mmaitre314/picklescan/security/advisories/GHSA-9m3x-qqw2-h32h
- https://github.com/mmaitre314/picklescan/pull/59
- https://github.com/mmaitre314/picklescan/commit/173c8f2a869ea9b69b543477525ec70611c3c6f4
- https://github.com/mmaitre314/picklescan/releases/tag/v1.0.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-53874
- https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-obfuscated-eval-call
- https://github.com/advisories/GHSA-9m3x-qqw2-h32h
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-3490
PickleScan's pkgutil.resolve_name has a universal blocklist bypass
critical10.0Mar 3, 2026CVE-2026-53873
PickleScan's profile.run blocklist mismatch allows exec() bypass
critical9.8Mar 3, 2026CVE-2026-56315
PickleScan has multiple stdlib modules with direct RCE not in blocklist
critical9.8Mar 3, 2026CVE-2026-53875
Picklescan (scan_pytorch) Bypass via dynamic eval MAGIC_NUMBER
high7.1Feb 18, 2026GHSA-m7j5-r2p5-c39r
picklescan vulnerable to arbitrary file create using logging.FileHandler
medium5.5Feb 2, 2026CVE-2026-53872
picklescan has Arbitrary file read using `io.FileIO`
high7.5Jan 8, 2026
