CVE-2025-9959
published high CVSS 3.1 · 7.6Sandbox escape in smolagents Local Python execution environment via dunder attributes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | smolagents0 to < 1.21.0 | Affected | Not stated | JFROG |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- JFROG · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| smolagents | 0 to < 1.21.0 (affected · python) | JFROG · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
2JFROG · cna
Sandbox escape in smolagents Local Python execution environment via dunder attributes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9e1288069347cd8acce478ac6053665403a57a7bd82ce69e6a544c1a607aeeb3
- Ingested
- 23 Sep 2026, 08:59:43 UTC
- Source record
- Official CVE record