CRITICAL SEVERITY

CVE-2025-5120

Smolagents vulnerability

CVSS
10.0
EPSS
18.7%
EPSS pct
97th
Exploited
No known
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.
Affected vendor
Huggingface
Affected product
Smolagents
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness type (CWE)
Published
2025-07-27

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable over the network, low attack complexity, requiring no privileges, no user interaction. Successful exploitation leads to high impact to confidentiality, high impact to integrity, high impact to availability.

Its EPSS score of 18.7% reflects a moderate probability of exploitation activity in the wild over the next 30 days, placing it above 97% of all scored CVEs.

Check your external exposure to CVE-2025-5120

  • Confirm whether Huggingface Smolagents is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2025-5120.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2025-5120

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2025-5120 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2025-5120?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2025-5120.

Start free scan

No credit card. Agentless.