# CVE-2025-9959: Sandbox escape in smolagents Local Python execution environment via dunder attributes

- Severity: High 7.6 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-02)
- Published: 2025-09-03T16:53:46.304Z
- Modified: 2026-09-26T00:10:00.127Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: JFROG

## 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.

(As written by CVE List.)

## Affected

- smolagents: before 1.21.0

## References

- <https://research.jfrog.com/vulnerabilities/smolagents-local-python-sandbox-escape-jfsa-2025-001434277/> (third-party-advisory)
- <https://github.com/huggingface/smolagents/pull/1551> (patch)

## Sources

- CVE List: [CVE-2025-9959](https://www.cve.org/CVERecord?id=CVE-2025-9959), CVE Terms of Use, modified 2025-09-03
- NVD: [CVE-2025-9959](https://nvd.nist.gov/vuln/detail/CVE-2025-9959), Public domain, modified 2026-09-26

---

Page: https://cve.day/CVE-2025-9959 · Whole record: https://cve.day/CVE-2025-9959.json · Rebuilt by cve.day 2026-11-25T22:59:04.078Z
