{"id":"CVE-2025-9959","published":"2025-09-03T16:53:46Z","modified":"2025-09-03T18:48:11Z","title":"Sandbox escape in smolagents Local Python execution environment via dunder attributes","vendor":null,"product":null,"tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00312,"percentile":0.24668,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escape-jfsa-2025-001434277/","tags":["third-party-advisory"]},{"url":"https://github.com/huggingface/smolagents/pull/1551","tags":["patch"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":4.93},{"name":"CVSS severity","points":5.32}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 1.21.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-03T18:48:07.608510Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-26607","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-huggingface-smolagents-cve-2025-9959","children":[{"from":"CVE-2025-9959","to":"CVE-2026-4963","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This affects the function evaluate_augassign/evaluate_call/evaluate_with of the file src/smolagents/local_python_executor.py of the component Incomplete Fix CVE-2025-9959.","from":"CVE.org","in":"CVE-2026-4963"}]}]}}