{"id":"CVE-2025-9959","aliases":["CVE-2025-9959"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox escape in smolagents Local Python execution environment via dunder attributes","summary":"Incomplete validation of dunder attributes allows an attacker to escape from the Local Python execution environment sandbox, enforced by smolagents. The attack requires a Prompt Injection in order to trick the agent to create malicious code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Incomplete validation of dunder attributes allows an attacker to escape from the Local Python execution environment sandbox, enforced by smolagents. The attack requires a Prompt Injection in order to trick the agent to create malicious code.","source":"cvelist"},{"lang":"es","text":"La validación incompleta de atributos dunder permite a un atacante escapar de la sandbox del entorno de ejecución de Python local, impuesta por smolagents. El ataque requiere una inyección de prompt para engañar al agente y que cree código malicioso.","source":"nvd"}],"published":"2025-09-03T16:53:46.304Z","modified":"2026-09-26T00:10:00.127Z","severity":{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","score":7.6,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"1.21.0","status":"affected"}],"package":"smolagents","source":"cvelist"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escape-jfsa-2025-001434277/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/huggingface/smolagents/pull/1551","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"JFROG","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-03T18:48:07.608Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-9959","url":"https://www.cve.org/CVERecord?id=CVE-2025-9959","licence":"CVE Terms of Use","modified":"2025-09-03T18:48:11.974Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-9959","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9959","licence":"Public domain","modified":"2026-09-26T00:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:04.078Z","epss":{"score":0.00336,"percentile":0.28911,"date":"2026-12-02T12:00:21.000Z"}}