CVE-2025-5120
CVE-2025-5120 · Sandbox Escape Vulnerability in huggingface/smolagents
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.6 · High · EPSS 31.2% · Fix available
- Published
- Updated
Stack: python
Affected products and versions
huggingface/smolagents
- Versions
- ≥ unspecified, < 1.17.0: Affected (custom)
Update to 1.17.0
smolagents PyPI
- Versions
- 0.1.0
- 0.1.2
- 0.1.3
- 1.0.0
- 1.1.0
- 1.10.0
- 1.11.0
- 1.12.0
- 1.13.0
- 1.14.0
- 1.15.0
- 1.16.0
- 1.16.1
- 1.2.0
- 1.2.1
- 1.2.2
- 1.3.0
- 1.4.0
- 1.4.1
- 1.5.0
- 1.5.1
- 1.6.0
- 1.7.0
- 1.8.0
- 1.8.1
- 1.9.0
- 1.9.1
- 1.9.2
- Affected ranges
- ECOSYSTEM: < 1.17.0
Update to 1.17.0