Skip to main content
CRITICAL

CVE-2025-5120

CVSS v3

10

CRITICAL

EPSS Score

22.8 %

exploit probability, as of 2026-09-25

CISA KEV

No

known exploited

Exploitation

—

SSVC status

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

Technical details

Published
2025-07-27
Last Modified
2025-08-07

Frequently asked questions

What is 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 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

Is CVE-2025-5120 actively exploited?

Active exploitation of CVE-2025-5120 has not been confirmed. Its EPSS score was 22.8% on 2026-09-25, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-5120?

CVE-2025-5120 has a CVSS v3 base score of 10 (CRITICAL severity).

Is CVE-2025-5120 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.

No credit card required · 500 free checks/month · Free API key