CVE-2025-9959 HIGH

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

Weakness CWE-94 · Code injection
Published September 3, 2025
Last update September 3, 2025

CVSS base score

7.6/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L

What the vulnerability does

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.

Key dates

Disclosure timeline

September 3, 2025 CVE published
September 3, 2025 Record updated