CVE-2025-9959

HIGH

smolagents - Local Python Sandbox Escape via Dunder Attribute Validation Bypass

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.6
EPSS 0.0029
EPSS Percentile 20.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-94
Status published
Published Sep 03, 2025
Tracked Since Feb 18, 2026