{"id":"CVE-2025-71372","aliases":["CVE-2025-71372","GHSA-rrxm-2pvv-m66x"],"related":[],"kind":"vulnerability","state":"published","title":"Picklescan - Arbitrary Code Execution via numpy.f2py.crackfortran.getlincoef Gadget","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nPicklescan uses the `numpy.f2py.crackfortran.getlincoef` function (a NumPy F2PY helper) to execute arbitrary Python code during unpickling.\n\n### Details\n\nPicklescan 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.\n\n### PoC\n```python\nclass PoC:\n    def __reduce__(self):\n        from numpy.f2py.crackfortran import getlincoef\n        return getlincoef, (\"__import__('os').system('whoami')\", None)\n```\n\n### Impact\n\n- Arbitrary code execution on the victim machine once they load the “scanned as safe” pickle / model file.\n- Affects any workflow relying on Picklescan to vet untrusted pickle / PyTorch artifacts.\n- Enables supply‑chain poisoning of shared model files.\n\n### Credits\n- [ac0d3r](https://github.com/ac0d3r)\n- [Tong Liu](https://lyutoon.github.io), Institute of information engineering, CAS","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-30T15:18:16.000Z","modified":"2026-10-12T19:10:00.217Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-94","CWE-502"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.0.33","status":"affected"},{"type":"semver","version":"0.0.33","status":"unaffected"}],"vendor":"Picklescan","product":"Picklescan","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.33"}],"ecosystem":"PyPI","package":"picklescan","purl":"pkg:pypi/picklescan","source":"ghsa"}],"references":[{"url":"https://github.com/mmaitre314/picklescan/security/advisories/GHSA-rrxm-2pvv-m66x","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-numpy-f2py-crackfortran-getlincoef-gadget","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mmaitre314/picklescan/pull/53","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mmaitre314/picklescan/commit/70c1c6c31beb6baaf52c8db1b6c3c0e84a6f9dab","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mmaitre314/picklescan","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/mmaitre314/picklescan/releases/tag/v0.0.33","tags":["web"],"sources":["ghsa"]}],"credits":["ac0d3r","Lyutoon"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-07T02:26:47.761Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71372","url":"https://www.cve.org/CVERecord?id=CVE-2025-71372","licence":"CVE Terms of Use","modified":"2026-07-07T02:27:13.076Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rrxm-2pvv-m66x","url":"https://github.com/advisories/GHSA-rrxm-2pvv-m66x","licence":"CC-BY-4.0","modified":"2026-07-08T07:35:40.873Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71372","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71372","licence":"Public domain","modified":"2026-10-12T19:10:00.217Z"}],"updatedAt":"2026-11-25T22:59:12.379Z","epss":{"score":0.0048,"percentile":0.43018,"date":"2026-12-01T12:00:22.000Z"}}