Vulnerability · Published Sep 3, 2025 · Assigned by JFROG
CVE-2025-9959Sandbox escape in smolagents Local Python execution environment via dunder attributes
High 7.6
In plain English
A high-severity code injection in smolagents. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities).
Severity (CVSS 3.1)7.6High
Exploit odds (30 days)0.3%top 75.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| smolagents | 0 – before 1.21.0 |
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L