Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. picklescan
  4. ›
  5. CVE-2025-10157

CVE-2025-10157: Picklescan is Vulnerable to Unsafe Globals Check Bypass through Subclass Imports

September 10, 2025 (updated September 18, 2025)

The vulnerability allows malicious actors to bypass PickleScan’s unsafe globals check, leading to potential arbitrary code execution. The issue stems from PickleScan’s strict check for full module names against its list of unsafe globals. By using subclasses of dangerous imports instead of the exact module names, attackers can circumvent the check and inject malicious payloads.

References

  • github.com/advisories/GHSA-f7qq-56ww-84cr
  • github.com/mmaitre314/picklescan
  • github.com/mmaitre314/picklescan/blob/2a8383cfeb4158567f9770d86597300c9e508d0f/src/picklescan/scanner.py
  • github.com/mmaitre314/picklescan/commit/28a7b4ef753466572bda3313737116eeb9b4e5c5
  • github.com/mmaitre314/picklescan/pull/50
  • github.com/mmaitre314/picklescan/security/advisories/GHSA-f7qq-56ww-84cr
  • huggingface.co/iluem/linux_pkl/resolve/main/asyncio_asyncio_unix_events___UnixSubprocessTransport__start.pkl
  • nvd.nist.gov/vuln/detail/CVE-2025-10157

Code Behaviors & Features

Detect and mitigate CVE-2025-10157 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.31

Fixed versions

  • 0.0.31

Solution

Upgrade to version 0.0.31 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-693: Protection Mechanism Failure

Source file

pypi/picklescan/CVE-2025-10157.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Oct 2025 12:20:43 +0000.