Picklescan remote code execution via unblocked ctypes module

Severity: critical · CVSS 9.8 · Published 2026-06-17

Picklescan is a security tool used to scan Python pickle files for malicious code. A vulnerability was found where the tool fails to block the 'ctypes' module, which can be used to bypass security checks. An attacker could use this to execute unauthorized commands on a system, potentially leading to a full system takeover or data theft.

Technologies: picklescan (PyPI). Vendors: PyPI.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Critical severity, with a CVSS score of 9.8, published 17 June 2026.
Which products and versions are affected?
picklescan (PyPI) < 0.0.33.
Is there a fix for This vulnerability?
A patch was published on 2026-06-18: Version 0.0.33 released to address the issue Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run picklescan (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

Picklescan before version 0.0.33 contains an incomplete list of disallowed inputs (CWE-184) because it fails to block the 'ctypes' module. This module provides a foreign function interface (FFI) that allows loading dynamic libraries and calling C functions directly. An attacker can craft a malicious pickle file that uses 'ctypes.WinDLL' to load system libraries like 'kernel32.dll' and execute arbitrary system commands. This bypasses Picklescan's intended security model by avoiding common gadget chains and accessing raw memory directly. The vulnerability is exploitable remotely if the tool is used to scan untrusted files provided over a network.

Affected products

  • mmaitre314 picklescan < 0.0.33

Timeline

  • 2025-12-26: advisory: Original GHSA-4675-36f9-wf6r published
  • 2026-06-17: disclosed: CVE-2025-71323 published
  • 2026-06-18: patched: Version 0.0.33 released to address the issue

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.