# CVE-2025-71340: picklescan - Remote Code Execution via idlelib.pyshell.ModifiedInterpreter.runcode

- Severity: High 7.6 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/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.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-26T21:37:48.000Z
- Modified: 2026-11-03T17:45:08.892Z
- Also known as: GHSA-3gf5-cxq9-w223
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

picklescan through 0.0.26 fails to detect malicious pickle files that invoke idlelib.pyshell.ModifiedInterpreter.runcode in __reduce__ methods. Attackers can embed undetected code in pickle files that executes arbitrary commands when the file is loaded via pickle.load(), enabling supply chain attacks on PyTorch models and saved Python objects. This is fixed in version 0.0.30.

(As written by CVE List.)

## Affected

- picklescan picklescan: up to 0.0.26 (not affected: 0.0.30)
- picklescan (PyPI): before 0.0.30

## Every score

- VulnCheck: CVSS:4.0 7.6 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/mmaitre314/picklescan/security/advisories/GHSA-3gf5-cxq9-w223> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-idlelib-pyshell-modifiedinterpreter-runcode> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-71340> (advisory)
- <https://github.com/mmaitre314/picklescan/commit/1931c2d04eaca8d20597705ff39cab78ba364e4b> (web)
- <https://github.com/mmaitre314/picklescan> (package)

## Sources

- CVE List: [CVE-2025-71340](https://www.cve.org/CVERecord?id=CVE-2025-71340), CVE Terms of Use, modified 2026-06-26
- GitHub Advisory Database: [GHSA-3gf5-cxq9-w223](https://github.com/advisories/GHSA-3gf5-cxq9-w223), CC-BY-4.0, modified 2026-11-03
- NVD: [CVE-2025-71340](https://nvd.nist.gov/vuln/detail/CVE-2025-71340), Public domain, modified 2026-10-12

---

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