CVE-2025-9959

published 3 Sep 2025 · updated 3 Sep 2025

Sandbox escape in smolagents Local Python execution environment via dunder attributes

7.6HighCVSS 7.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.21.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<1.21.01.21.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-9959 severity on Zeptric[![CVE-2025-9959](https://zeptric.io/badge/cve/CVE-2025-9959.svg)](https://zeptric.io/cve/CVE-2025-9959)