Skip to content
CVE PROGRAM SOURCE RECORD7.6 High

CVE-2025-9959

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

smolagents

  • 0 to < 1.21.0affected

References