Vulnerabilities

Vulnerability · CVE-2025-5120

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 ex

Published Jul 27, 2025 · catalog updated Jul 28, 2025 · A sandbox escape vulnerability

Last checked Oct 28, 2026. A connected source was read within the last 7 days.

Check this week

CVE-2025-5120 is not in CISA KEV. FIRST estimates a 31.24% chance of exploitation in the next 30 days. Check whether you run A sandbox escape vulnerability.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (A sandbox escape vulnerability).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.

Same product and reporting

Severity
High7.6
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
31.24%
Remediation
Version ranges on file
Affected products
vendor huggingface huggingface/smolagents unspecified <1.17.0

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 executi

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor huggingface huggingface/smolagents unspecified <1.17.0unspecified <1.17.0

How to fix CVE-2025-5120

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

CVE-2025-5120 is not in CISA KEV. FIRST estimates a 31.24% chance of exploitation in the next 30 days. Check whether you run A sandbox escape vulnerability.

Which versions are affected?

Compare what you have installed with huggingface huggingface/smolagents unspecified <1.17.0 unspecified <1.17.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 31.24%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Jul 27, 2025 · EUVD

    Detected

    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 a

  2. Jul 28, 2025 · EUVD

    Updated

    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 a

Sources

  • CVE.orgVulnerability recordCVE-2025-5120

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2025-5120

    30-day exploitation probability 31.24%

    first.org
  • EUVDVulnerability recordEUVD-2025-22815

    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

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Oct 28, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • FIRST EPSSOct 28, 2026
  • CVE.orgOct 21, 2026
  • EUVDOct 21, 2026