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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-76825— RestrictedPython: Sandbox escape via string.Formatter field resolution

Quick assessment

Affected
zopefoundation RestrictedPython
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

RestrictedPython 是一个用于在可信环境中定义 Python 语言子集以接受程序输入的工具。在 8.4 版本之前,当自定义导入策略或全局变量将标准库中的 模块、 类、 实例或 子类暴露给受限代码时,RestrictedPython 可能出现沙箱逃逸漏洞。 的方法(如 、 、 和 )在内部进行属性访问和元素遍历,但未经过 RestrictedPython 提供的 安全保护机制。因此,受限代码可以利用这些活动对象引用访问函数全局变量、内置函数、文件访问或代码执行原语,从而影响主机环境的机密性、完整性和可用

CVSS 8.4 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-76825

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
RestrictedPython: Sandbox escape via string.Formatter field resolution
Source: CVE Program / CVE List V5
Vulnerability Description
RestrictedPython is a tool that helps define a subset of the Python language for accepting program input in a trusted environment. Prior to 8.4, RestrictedPython could allow a sandbox escape when a custom import policy or globals exposed the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass to restricted code. The string.Formatter methods format, get_field, get_value, and vformat performed attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. Restricted code could use those live object references to reach function globals, builtins, file access, or code execution primitives, affecting confidentiality, integrity, and availability in the host environment. This issue is fixed in version 8.4.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
zopefoundation RestrictedPython < 8.4 -

II. Public POCs for CVE-2026-76825

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-76825

登录查看更多情报信息。

Patches & Fixes for CVE-2026-76825 (1)

Vendor Advisories for CVE-2026-76825 (1)

Vendor Pages for CVE-2026-76825 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-76825

No comments yet


Leave a comment