GHSA-6v92-r5mx-h5fx

Suggest an improvement
Source
https://github.com/advisories/GHSA-6v92-r5mx-h5fx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-6v92-r5mx-h5fx/GHSA-6v92-r5mx-h5fx.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-6v92-r5mx-h5fx
Aliases
Published
2025-07-27T09:30:26Z
Modified
2025-07-28T15:27:15.552765Z
Severity
  • 7.6 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/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.

Database specific
{
    "github_reviewed": true,
    "severity": "HIGH",
    "github_reviewed_at": "2025-07-28T14:54:22Z",
    "cwe_ids": [
        "CWE-94"
    ],
    "nvd_published_at": "2025-07-27T08:15:25Z"
}
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