Skip to content

CVE-2025-5120 Sandbox Escape Vulnerability in huggingface/smolagents

CriticalCVSS 10.0 EPSS 31.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
huggingface/smolagents < 1.17.0 1.17.0 Fixed
pypi smolagents(PyPI) < 1.17.0; = 0.1.0; = 0.1.2; = 0.1.3 +25 more 1.17.0 Fixed
huggingface smolagents = 1.14.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi smolagents(PyPI) < 1.17.0 1.17.0
pypi smolagents(PyPI) = 0.1.0 No fix listed
pypi smolagents(PyPI) = 0.1.2 No fix listed
pypi smolagents(PyPI) = 0.1.3 No fix listed
pypi smolagents(PyPI) = 1.0.0 No fix listed
pypi smolagents(PyPI) = 1.1.0 No fix listed
pypi smolagents(PyPI) = 1.10.0 No fix listed
pypi smolagents(PyPI) = 1.11.0 No fix listed
pypi smolagents(PyPI) = 1.12.0 No fix listed
pypi smolagents(PyPI) = 1.13.0 No fix listed
pypi smolagents(PyPI) = 1.14.0 No fix listed
pypi smolagents(PyPI) = 1.15.0 No fix listed
pypi smolagents(PyPI) = 1.16.0 No fix listed
pypi smolagents(PyPI) = 1.16.1 No fix listed
pypi smolagents(PyPI) = 1.2.0 No fix listed
pypi smolagents(PyPI) = 1.2.1 No fix listed
pypi smolagents(PyPI) = 1.2.2 No fix listed
pypi smolagents(PyPI) = 1.3.0 No fix listed
pypi smolagents(PyPI) = 1.4.0 No fix listed
pypi smolagents(PyPI) = 1.4.1 No fix listed
pypi smolagents(PyPI) = 1.5.0 No fix listed
pypi smolagents(PyPI) = 1.5.1 No fix listed
pypi smolagents(PyPI) = 1.6.0 No fix listed
pypi smolagents(PyPI) = 1.7.0 No fix listed
pypi smolagents(PyPI) = 1.8.0 No fix listed
Show 6 more
ProductAffected versionsFixed in
pypi smolagents(PyPI) = 1.8.1 No fix listed
pypi smolagents(PyPI) = 1.9.0 No fix listed
pypi smolagents(PyPI) = 1.9.1 No fix listed
pypi smolagents(PyPI) = 1.9.2 No fix listed
huggingface/smolagents < 1.17.0 1.17.0
huggingface smolagents = 1.14.0 No fix listed

References