CVE-2025-10157
CRITICAL 9.3CVSS 4.0Picklescan is Vulnerable to Unsafe Globals Check Bypass through Subclass Imports
A Protection Mechanism Failure vulnerability in mmaitre314 picklescan versions up to and including 0.0.30 allows a remote attacker to bypass the unsafe globals check. This is possible because the scanner performs an exact match for module names, allowing malicious payloads to be loaded via submodules of dangerous packages (e.g., 'asyncio.unix_events' instead of 'asyncio').
When the incorrectly considered safe file is loaded after scan, it can lead to the execution of malicious code.
- Published
- 17 Sep 2025
- Last modified
- 26 Sep 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Analyzed
- Weakness
- CWE-693
- Also known as
- GHSA-f7qq-56ww-84crPYSEC-2025-153
- Sources
- NVDJSONOSV GHSA-f7qq-56ww-84crJSONOSV PYSEC-2025-153JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | reefs@jfrog.com (Secondary) | CVSS 4.0 | CRITICAL 9.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mmaitre314 | picklescancpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:* |
< 0.0.31 | 0.0.31 |
| OSV | PyPI | picklescan | < 0.0.31 | 0.0.31 |
References
- https://github.com/mmaitre314/picklescan/blob/2a8383cfeb4158567f9770d86597300c9e508d0f/src/picklescan/scanner.py#L309 · Product, WEB
- https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f7qq-56ww-84cr · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://huggingface.co/iluem/linux_pkl/resolve/main/asyncio_asyncio_unix_events___UnixSubprocessTransport__start.pkl · Broken Link, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-10157 · ADVISORY
- https://github.com/mmaitre314/picklescan/pull/50 · WEB
- https://github.com/mmaitre314/picklescan/commit/28a7b4ef753466572bda3313737116eeb9b4e5c5 · WEB
- https://github.com/mmaitre314/picklescan · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/picklescan/PYSEC-2025-153.yaml · WEB
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Sep 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Sep 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Sep 2025)