| Advisory ID | pypa/smolagents/PYSEC-2026-542 |
| Aliases |
CVE-2025-5120
GHSA-6v92-r5mx-h5fx PYSEC-2026-542 |
| Summary | smolagents has Sandbox Escape Vulnerability in the local_python_executor.py Module 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. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 8.9 |
| Risk | 4.5 |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| There are no known CWE. |
| System | Score | Found at |
|---|---|---|
| cvssv3.1 | 9.9 | https://github.com/pypa/advisory-database/blob/main/vulns/smolagents/PYSEC-2026-542.yaml |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
Vector: SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-07-28T14:09:15Z/
Decision: Track
Source URL: https://github.com/cisagov/vulnrichment/blob/develop/2025/5xxx/CVE-2025-5120.json
Source Advisory: vulnrichment/CVE-2025-5120
[{'Exploitation': 'poc'},
{'Automatable': 'no'},
{'Technical Impact': 'partial'},
{'Mission Prevalence': 'minimal'},
{'Public Well-being Impact': 'material'},
{'Mission & Well-being': 'medium'}]