Skip to content
Fencer Vulns
high 7.6

CVE-2025-5120 in the critical feed json

Sandbox Escape Vulnerability in huggingface/smolagents

published 2025-07-27 15 mo ago modified 2026-07-01 4 mo ago also GHSA-6v92-r5mx-h5fx , PYSEC-2026-542 , EUVD-2025-22815

cvss
7.6
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
31.2%
EPSS 31.2% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi smolagents 1.17.0
  • huggingface huggingface/smolagents 1.17.0

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
15 mo ago

Exploit prediction

31.24% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • huntr.com https://huntr.com/bounties/63ab1cfe-b573-4cf5-a7d3-fb6c957e34b0 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 7.6 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
NVD 3.1 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub 3.1 9.9 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L
OSV 3.1 9.9 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L

Affected packages

ecosystem package affected fixed in
pypi smolagents
<1.17.0
1.17.0

Affected products

  • huggingface huggingface/smolagents

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.