PYSEC-2026-542

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/smolagents/PYSEC-2026-542.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-542
Aliases
Published
2026-06-29T11:50:37.329072Z
Modified
2026-07-01T20:23:05.176528Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L CVSS Calculator
Summary
smolagents has Sandbox Escape Vulnerability in the local_python_executor.py Module
Details

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 localpythonexecutor.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.

References

Affected packages

PyPI / smolagents

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.0

Affected versions

0.*
0.1.0
0.1.2
0.1.3
1.*
1.0.0
1.1.0
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
1.10.0
1.11.0
1.12.0
1.13.0
1.14.0
1.15.0
1.16.0
1.16.1

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/smolagents/PYSEC-2026-542.yaml"