# CVE-2025-10157: PickleScan Bypasses Unsafe Globals Check Using Submodule Imports

- Severity: Critical 9.3 (CVSS:4.0, scored by JFROG) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-09-10T17:15:33.000Z
- Modified: 2026-09-26T00:10:00.127Z
- Also known as: GHSA-f7qq-56ww-84cr, PYSEC-2025-153
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: JFROG

## Description

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.

(As written by CVE List.)

## Affected

- mmaitre314 picklescan: up to 0.0.30; before 0.0.31
- picklescan (PyPI): before 0.0.31

## Every score

- JFROG: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:3.1 8.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f7qq-56ww-84cr> (exploit, evidence, vendor-advisory, web)
- <https://huggingface.co/iluem/linux_pkl/resolve/main/asyncio_asyncio_unix_events___UnixSubprocessTransport__start.pkl> (exploit, broken-link, web)
- <https://github.com/mmaitre314/picklescan/blob/2a8383cfeb4158567f9770d86597300c9e508d0f/src/picklescan/scanner.py#L309> (product, 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)

## Sources

- CVE List: [CVE-2025-10157](https://www.cve.org/CVERecord?id=CVE-2025-10157), CVE Terms of Use, modified 2025-09-17
- GitHub Advisory Database: [GHSA-f7qq-56ww-84cr](https://github.com/advisories/GHSA-f7qq-56ww-84cr), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2025-10157](https://nvd.nist.gov/vuln/detail/CVE-2025-10157), Public domain, modified 2026-09-26
- PyPA Advisory Database: [PYSEC-2025-153](https://osv.dev/vulnerability/PYSEC-2025-153), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2025-10157 · Whole record: https://cve.day/CVE-2025-10157.json · Rebuilt by cve.day 2026-11-25T22:59:04.778Z
