CVE-2025-9959CWE-94code-injection

CVE-2025-9959

High · published September 3, 2025

CVSS v3.1
7.6
EPSS
0%
Percentile
22.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.6 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00312 · 22.8th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-09-03T21:15Z
References (2)
EPSS history
Timeline
  • 03 SEP 16:53Z
    Sandbox escape in smolagents Local Python execution environment via dunder attributes
    cvelistv5