7.6high
Picklescan - Arbitrary Code Execution via numpy.f2py.crackfortran.getlincoef Gadget
- Severity
- 7.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-rrxm-2pvv-m66x
Description
Picklescan before 0.0.33 fails to detect the numpy.f2py.crackfortran.getlincoef gadget in pickle __reduce__ methods, allowing arbitrary code execution. Attackers can craft malicious pickle files that execute arbitrary Python code when loaded, bypassing Picklescan's safety checks and enabling supply-chain poisoning of shared model files.
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 | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P |
Classification
What each source says
CVE List
Picklescan before 0.0.33 fails to detect the numpy.f2py.crackfortran.getlincoef gadget in pickle __reduce__ methods, allowing arbitrary code execution. Attackers can craft malicious pickle files that execute arbitrary Python code when loaded, bypassing Picklescan's safety checks and enabling supply-chain poisoning of shared model files.
GitHub Advisory Database
Summary
Picklescan uses the numpy.f2py.crackfortran.getlincoef function (a NumPy F2PY helper) to execute arbitrary Python code during unpickling.
Details
Picklescan fails to detect a malicious pickle that uses the gadget numpy.f2py.crackfortran.getlincoef in __reduce__, allowing arbitrary command execution when the pickle is loaded. A crafted object returns this function plus attacker‑controlled arguments; the scan reports the file as safe, but pickle.load() triggers execution.
PoC
class PoC:
def __reduce__(self):
from numpy.f2py.crackfortran import getlincoef
return getlincoef, ("__import__('os').system('whoami')", None)
Impact
- Arbitrary code execution on the victim machine once they load the “scanned as safe” pickle / model file.
- Affects any workflow relying on Picklescan to vet untrusted pickle / PyTorch artifacts.
- Enables supply‑chain poisoning of shared model files.
Credits
NVD (es)
Picklescan anterior a la versión 0.0.33 no detecta el gadget numpy.f2py.crackfortran.getlincoef en los métodos __reduce__ de pickle, permitiendo la ejecución de código arbitrario. Los atacantes pueden crear archivos pickle maliciosos que ejecutan código Python arbitrario al cargarse, eludiendo las comprobaciones de seguridad de Picklescan y permitiendo el envenenamiento de la cadena de suministro de archivos de modelos compartidos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-71372 changed 2026-07-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rrxm-2pvv-m66x changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2025-71372 changed 2026-10-12 | Public domain |