CVE-2025-9959Published Sep 3, 2025 · Sep 3Updated Oct 28
Sandbox escape in smolagents Local Python execution environment via dunder attributes
smolagents
High7.6Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| smolagents |
| No fix yet |
Original 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.
From the CVE record · JFROG