Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-5120— Sandbox Escape Vulnerability in huggingface/smolagents

Quick assessment

Affected
huggingface huggingface/smolagents
Exploitation
High exploitation probability; assess promptly
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

smolagents是Hugging Face开源的一个代理的基本库。 smolagents 1.14.0版本存在代码注入漏洞,该漏洞源于local_python_executor.py模块限制不足,可能导致远程代码执行。

AI Predicted 8.8 Difficulty: Easy EPSS 24.57% · P98
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-5120

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Sandbox Escape Vulnerability in huggingface/smolagents
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
smolagents 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
smolagents是Hugging Face开源的一个代理的基本库。 smolagents 1.14.0版本存在代码注入漏洞,该漏洞源于local_python_executor.py模块限制不足,可能导致远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
huggingface huggingface/smolagents unspecified ~ 1.17.0 -

II. Public POCs for CVE-2025-5120

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-5120

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-5120 (1)

Vendor Advisories for CVE-2025-5120 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2025-5120

No comments yet


Leave a comment