{"cve":"CVE-2025-5120","nvd":{"published":"2025-07-27T08:15:25.403","modified":"2026-06-17T09:47:14.030","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10.0},"cwes":["CWE-94"],"references":["https://github.com/huggingface/smolagents/commit/33a942e62b6fbf6a35d41f1c735bda2d64c163d0","https://huntr.com/bounties/63ab1cfe-b573-4cf5-a7d3-fb6c957e34b0"],"products":["huggingface:smolagents"],"source":"nvd","synced_at":"2026-10-19T22:05:46.678065081+00:00"},"epss":{"cve":"CVE-2025-5120","score":0.31237,"percentile":0.98273,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-6v92-r5mx-h5fx","url":"https://osv.dev/vulnerability/GHSA-6v92-r5mx-h5fx","summary":"smolagents has Sandbox Escape Vulnerability in the local_python_executor.py Module","modified":"2026-06-29T12:26:32.423727892Z","packages":[{"ecosystem":"PyPI","name":"smolagents","purl":"pkg:pypi/smolagents","ranges":["<1.17.0"],"fixed":["1.17.0"]}]},{"id":"PYSEC-2026-542","url":"https://osv.dev/vulnerability/PYSEC-2026-542","summary":"smolagents has Sandbox Escape Vulnerability in the local_python_executor.py Module","modified":"2026-07-01T20:23:05.176528Z","packages":[{"ecosystem":"PyPI","name":"smolagents","purl":"pkg:pypi/smolagents","ranges":["<1.17.0"],"fixed":["1.17.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}