CVE-2025-5120
published high CVSS 3.0 · 7.6Sandbox Escape Vulnerability in huggingface/smolagents
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| huggingface | — | huggingface/smolagentsunspecified to < 1.17.0 | Affected | Not stated | @huntr_ai |
Description
A sandbox escape vulnerability was identified in huggingface/smolagents version 1.14.0, allowing attackers to bypass the restricted execution environment and achieve remote code execution (RCE). The vulnerability stems from the local_python_executor.py module, which inadequately restricts Python code execution despite employing static and dynamic checks. Attackers can exploit whitelisted modules and functions to execute arbitrary code, compromising the host system. This flaw undermines the core security boundary intended to isolate untrusted code, posing risks such as unauthorized code execution, data leakage, and potential integration-level compromise. The issue is resolved in version 1.17.0.
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.0
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| huggingface | huggingface/smolagents | unspecified to < 1.17.0 (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code
References
2Provider assertions
2@huntr_ai · cna
Sandbox Escape Vulnerability in huggingface/smolagents
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8ef0e9549b34d8da7068b488caf4ec786a9fffa781a791e833015975bcc10638
- Ingested
- 23 Sep 2026, 08:54:33 UTC
- Source record
- Official CVE record