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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-133772— Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag That Isn't Selected

一分钟漏洞结论

影响对象
Twig twig/twig
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The extends, use, macro and block tags in it registered their effects on the template. The sandbox doesn't see these tags, since

CVSS 2.3 · Low
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-133772 基础信息

漏洞信息

Shenlong is analyzing...


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

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

Vulnerability Title
Sandbox Tag Allow-List Bypass via the Branch of a `guard` Tag That Isn't Selected
来源: CVE Program / CVE List V5
Vulnerability Description
The guard tag compiles only one of its branches, depending on whether a callable exists. The other branch was still parsed, though. The extends, use, macro and block tags in it registered their effects on the template. The sandbox doesn't see these tags, since that branch isn't compiled. A sandboxed template allowed to use guard could therefore extend a template, import blocks and define macros, while the policy doesn't allow these tags: {% guard filter upper %}{% else %}{% extends "parent.html" %}{% endguard %} The templates reached this way come from the loader of the sandbox, and they are sandboxed too. What the branch that isn't selected registers on the parser is now discarded.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Twig twig/twig 3.15.0 ~ 3.31.0 -

二、漏洞 CVE-2026-133772 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-133772 的情报信息

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

CVE-2026-133772 其他参考 (3)

同批安全公告 · Twig · 2026-11-24 · 共 11 条

CVE-2026-133763 5.3 MEDIUM Sandbox `__toString()` policy bypass via the `is true` test
CVE-2026-133768 5.3 MEDIUM Sandbox property allow-list bypass via the `join` filter on non-iterable objects
CVE-2026-133767 5.3 MEDIUM Sandbox allow-list and `__toString()` bypass via a dynamic `embed` parent expression
CVE-2026-133765 5.3 MEDIUM Sandbox `__toString()` policy bypass via assignment and destructuring expressions
CVE-2026-133764 2.3 LOW Sandbox `__toString()` policy bypass via the input of custom tests
CVE-2026-133771 2.3 LOW Missing autoescaping for a variable named like a macro import alias of another scope
CVE-2026-133769 2.3 LOW Sandbox property allow-list bypass via `html_cva()` variant values
CVE-2026-133773 2.3 LOW Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Option
CVE-2026-133766 2.3 LOW Sandbox `__toString()` policy bypass via spread arguments
CVE-2026-133770 2.1 LOW Sandboxed templates can rewrite application-owned `Markup` objects through their construct

IV. Related Vulnerabilities