{"id":"CVE-2025-9959","summary":"Sandbox escape in smolagents Local Python execution environment via dunder attributes","details":"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.","modified":"2026-07-15T01:49:09.344518650Z","published":"2025-09-03T16:53:46.304Z","database_specific":{"cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9959.json","cna_assigner":"JFROG"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9959.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9959"},{"type":"ADVISORY","url":"https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escape-jfsa-2025-001434277/"},{"type":"FIX","url":"https://github.com/huggingface/smolagents/pull/1551"},{"type":"PACKAGE","url":"https://pypi.org/project/pip"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/huggingface/smolagents","events":[{"introduced":"0"},{"fixed":"420eaebf2b7ebc1461b5b669f8af1bef1b9bd00e"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.21.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v1.0.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9959.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L"}]}