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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-9959— Sandbox escape in smolagents Local Python execution environment via dunder attributes

Quick assessment

Affected
CVE-2025-9959
Exploitation
Public or AI PoC available; prioritize validation
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存在代码注入漏洞,该漏洞源于对dunder属性验证不完整,可能导致从Local Python执行环境沙箱逃逸。

CVSS 7.6 · High EPSS 0.31% · P23

I. Basic Information for CVE-2025-9959

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 in smolagents Local Python execution environment via dunder attributes
Source: CVE Program / CVE List V5
Vulnerability Description
Incomplete validation of dunder attributes allows an attacker to escape from the Local Python execution environment sandbox, enforced by smolagents. The attack requires a Prompt Injection in order to trick the agent to create malicious code.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:L
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存在代码注入漏洞,该漏洞源于对dunder属性验证不完整,可能导致从Local Python执行环境沙箱逃逸。
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)

II. Public POCs for CVE-2025-9959

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8777 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2025-9959

登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2025-9959

No comments yet


Leave a comment