CVE-2025-5120CRITICAL 10.0EPSS p96.8%

CVE-2025-5120CVE-2025-5120

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.

Scoring

CVSS 3.110.0 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS17.65% probability of exploitation · percentile 96.8% · 2026-06-18T12:00:27Z
Published2025-07-27
Last modified2025-08-07

Underlying weaknesses· 1

CWE-94

References

  1. https://github.com/huggingface/smolagents/commit/33a942e62b6fbf6a35d41f1c735bda2d64c163d0
  2. https://huntr.com/bounties/63ab1cfe-b573-4cf5-a7d3-fb6c957e34b0

1

TypeTargetConfidenceTier
WeaknessImproper Control of Generation of Code ('Code Injection')cwe-940%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2025-14931
CVE
CVE-2026-2654
CVE
CVE-2026-4963
CVE
CVE-2025-49131
CVE
CVE-2026-2275
CVE
CVE-2026-27952
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.