7.6high
picklescan - Undetected Remote Code Execution via numpy.f2py.crackfortran.param_eval
- Severity
- 7.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-cffc-mxrf-mhh4
Description
picklescan before 0.0.33 fails to detect malicious pickle files using numpy.f2py.crackfortran.param_eval function in reduce methods, allowing attackers to bypass security checks. Remote attackers can embed undetected code in pickle files that executes during deserialization, enabling arbitrary code execution in applications loading untrusted pickle data.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| picklescan picklescan | before 0.0.33 Not affected: 0.0.33 | CVE List |
| picklescan (PyPI) | before 0.0.33 | GitHub Advisory Database |
All scores
| VulnCheck | 7.6high CVSS:4.0 | 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 | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | medium rating |
Classification
What each source says
CVE List
picklescan before 0.0.33 fails to detect malicious pickle files using numpy.f2py.crackfortran.param_eval function in reduce methods, allowing attackers to bypass security checks. Remote attackers can embed undetected code in pickle files that executes during deserialization, enabling arbitrary code execution in applications loading untrusted pickle data.
GitHub Advisory Database
Summary
Picklescan uses numpy.f2py.crackfortran.param_eval, which is a function in numpy to execute remote pickle files.
Details
The attack payload executes in the following steps:
- First, the attacker crafts the payload by calling the numpy.f2py.crackfortran.param_eval function via reduce method.
- Then, when the victim checks whether the pickle file is safe by using the Picklescan library and this library doesn't detect any dangerous functions, they decide to use pickle.load() on this malicious pickle file, thus leading to remote code execution.
PoC
class RCE:
def __reduce__(self):
from numpy.f2py.crackfortran import param_eval
return (param_eval,("os.system('ls')",None,None,None))
Impact
Any organization or individual relying on picklescan to detect malicious pickle files inside PyTorch models. Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded. Attackers can distribute infected pickle files across ML models, APIs, or saved Python objects.
Report by
Pinji Chen (cpj24@mails.tsinghua.edu.cn) from the NISL lab (https://netsec.ccert.edu.cn/about) at Tsinghua University, Guanheng Liu (coolwind326@gmail.com).
NVD (es)
picklescan anterior a la versión 0.0.33 no logra detectar archivos pickle maliciosos utilizando la función numpy.f2py.crackfortran.param_eval en métodos reduce, permitiendo a los atacantes eludir las comprobaciones de seguridad. Los atacantes remotos pueden incrustar código no detectado en archivos pickle que se ejecuta durante la deserialización, lo que permite la ejecución de código arbitrario en aplicaciones que cargan datos pickle no confiables.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71347 changed 2026-07-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cffc-mxrf-mhh4 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2025-71347 changed 2026-10-12 | Public domain |