{"id":"CVE-2025-71339","aliases":["CVE-2025-71339","GHSA-6556-fwc2-fg2p","PYSEC-2026-1783"],"related":[],"kind":"vulnerability","state":"published","title":"Picklescan - Arbitrary Code Execution via numpy.f2py.crackfortran._eval_length Gadget","summary":"Picklescan before 0.0.33 fails to detect the numpy.f2py.crackfortran._eval_length gadget in pickle __reduce__ methods, allowing arbitrary code execution. Attackers can craft malicious pickle files that execute arbitrary Python code when loaded by victims who trust Picklescan's safety validation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Picklescan before 0.0.33 fails to detect the numpy.f2py.crackfortran._eval_length gadget in pickle __reduce__ methods, allowing arbitrary code execution. Attackers can craft malicious pickle files that execute arbitrary Python code when loaded by victims who trust Picklescan's safety validation.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nPicklescan uses the `numpy.f2py.crackfortran._eval_length` 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._eval_length` 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 _eval_length\n        return _eval_length, (\"__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._eval_length 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 cuando son cargados por víctimas que confían en la validación de seguridad de Picklescan.","source":"nvd"}],"published":"2025-12-30T15:20:14.000Z","modified":"2026-10-12T22:10:00.247Z","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: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":"MEDIUM"},{"scorer":"GitHub","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/E:P","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","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/E:P"}],"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"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.33"}],"ecosystem":"PyPI","package":"picklescan","purl":"pkg:pypi/picklescan","source":"pysec"}],"references":[{"url":"https://github.com/mmaitre314/picklescan/security/advisories/GHSA-6556-fwc2-fg2p","tags":["exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-numpy-f2py-crackfortran-eval-length-gadget","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71339","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mmaitre314/picklescan/pull/53","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mmaitre314/picklescan/commit/70c1c6c31beb6baaf52c8db1b6c3c0e84a6f9dab","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-6556-fwc2-fg2p","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mmaitre314/picklescan","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/mmaitre314/picklescan/releases/tag/v0.0.33","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/picklescan/PYSEC-2026-1783.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/picklescan","tags":["package","web"],"sources":["ghsa","pysec"]}],"credits":["ac0d3r","Lyutoon"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-06-23T14:54:23.953Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71339","url":"https://www.cve.org/CVERecord?id=CVE-2025-71339","licence":"CVE Terms of Use","modified":"2026-06-23T15:06:10.622Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6556-fwc2-fg2p","url":"https://github.com/advisories/GHSA-6556-fwc2-fg2p","licence":"CC-BY-4.0","modified":"2026-07-18T17:30:30.595Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71339","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71339","licence":"Public domain","modified":"2026-10-12T22:10:00.247Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1783","url":"https://osv.dev/vulnerability/PYSEC-2026-1783","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:02.171Z"}],"updatedAt":"2026-11-25T22:59:12.339Z","epss":{"score":0.00381,"percentile":0.34271,"date":"2026-12-01T12:00:22.000Z"}}