目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-37271— RestrictedPython 安全漏洞

一分钟漏洞结论

影响对象
zopefoundation RestrictedPython
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

RestrictedPython是一个帮助定义 Python 语言子集的工具,该子集允许将程序输入提供到受信任的环境中。 RestrictedPython 5.3之前版本、6.1之前版本存在安全漏洞,该漏洞源于允许用户向受信任的环境提供程序输入,但 RestrictedPython 不检查对堆栈帧及其属性的访问,攻击者利用该漏洞可以在Python解释器中执行任意代码。

CVSS 8.4 · High EPSS 0.85% · P57
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2023-37271 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
RestrictedPython vulnerable to arbitrary code execution via stack frame sandbox escape
来源: CVE Program / CVE List V5
Vulnerability Description
RestrictedPython is a tool that helps to define a subset of the Python language which allows users to provide a program input into a trusted environment. RestrictedPython does not check access to stack frames and their attributes. Stack frames are accessible within at least generators and generator expressions, which are allowed inside RestrictedPython. Prior to versions 6.1 and 5.3, an attacker with access to a RestrictedPython environment can write code that gets the current stack frame in a generator and then walk the stack all the way beyond the RestrictedPython invocation boundary, thus breaking out of the restricted sandbox and potentially allowing arbitrary code execution in the Python interpreter. All RestrictedPython deployments that allow untrusted users to write Python code in the RestrictedPython environment are at risk. In terms of Zope and Plone, this would mean deployments where the administrator allows untrusted users to create and/or edit objects of type `Script (Python)`, `DTML Method`, `DTML Document` or `Zope Page Template`. This is a non-default configuration and likely to be extremely rare. The problem has been fixed in versions 6.1 and 5.3.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
来源: CVE Program / CVE List V5
Vulnerability Type
动态管理代码资源的控制不恰当
来源: CVE Program / CVE List V5
Vulnerability Title
RestrictedPython 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
RestrictedPython是一个帮助定义 Python 语言子集的工具,该子集允许将程序输入提供到受信任的环境中。 RestrictedPython 5.3之前版本、6.1之前版本存在安全漏洞,该漏洞源于允许用户向受信任的环境提供程序输入,但 RestrictedPython 不检查对堆栈帧及其属性的访问,攻击者利用该漏洞可以在Python解释器中执行任意代码。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
zopefoundation RestrictedPython >= 6.0a1.dev0, < 6.1 -

二、漏洞 CVE-2023-37271 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 已实测靶场 高级
Qwen3.6-35B-A3B · 5507 chars
Pro+ 专属包含:
漏洞复现靶场录像(真实沙箱构建 + 触发,独家)
漏洞原理深度分析
触发条件与影响面
完整可执行 POC 代码
利用链与缓解建议
POC 打包下载
每月 100+ 条 AI 生成额度

三、漏洞 CVE-2023-37271 的情报信息

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

CVE-2023-37271 补丁与修复 (1)

CVE-2023-37271 厂商安全公告 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2023-37271

暂无评论


发表评论