{"id":"CVE-2025-9959","aliases":["EUVD-2025-26607","GHSA-p8v6-48p4-f4r4"],"status":"published","title":"Sandbox escape in smolagents Local Python execution environment via dunder attributes","description":"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.","severity":{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00312,"percentile":0.24373,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2025-09-03T16:53:46.304Z","modified":"2026-10-28T02:30:25Z","references":[{"url":"https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escape-jfsa-2025-001434277/","tags":["third-party-advisory","advisory"]},{"url":"https://github.com/huggingface/smolagents/pull/1551","tags":["patch","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9959","tags":["advisory"]},{"url":"https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escape-jfsa-2025-001434277"},{"url":"https://github.com/advisories/GHSA-p8v6-48p4-f4r4"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9959.json","tags":["advisory"]},{"url":"https://pypi.org/project/pip","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-9959","title":"Sandbox escape in smolagents Local Python execution environment via dunder attributes","description":"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.","status":"published","published":"2025-09-03T16:53:46.304Z","modified":"2025-09-03T18:48:11.974Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:32:33.410838Z"}],"euvd":[{"id":"EUVD-2025-26607","description":"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.","status":"published","published":"2026-09-26T00:31:23Z","modified":"2026-09-26T00:31:23Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","level":"high"}],"updated_at":"2026-11-02T17:27:54.622662Z"}],"ghsa":[{"id":"GHSA-p8v6-48p4-f4r4","title":"Incomplete validation of dunder attributes allows an attacker to escape from the Local Python...","description":"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.","status":"published","published":"2026-09-26T00:31:23Z","modified":"2026-09-26T00:31:32Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:12:27.845198Z"}],"nvd":[{"id":"CVE-2025-9959","description":"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.","status":"published","published":"2025-09-03T17:15:35.737Z","modified":"2026-09-26T00:10:00.127Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","level":"high","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:11:27.145738Z"}],"osv":[{"id":"CVE-2025-9959","title":"Sandbox escape in smolagents Local Python execution environment via dunder attributes","description":"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.","status":"published","published":"2025-09-03T16:53:46.304Z","modified":"2026-10-28T02:30:25.668357979Z","cvss":[{"version":"3.1","score":7.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:53.490346Z"}]}}
