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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-24425— Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface

Quick assessment

Affected
twigphp Twig
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.

Twig是Twig开源的一个PHP模板引擎。 Twig 2.16.x版本和3.9.0至3.25.x版本存在安全漏洞,该漏洞源于使用SourcePolicyInterface时沙箱绕过,可能导致攻击者绕过沙箱限制并执行任意代码。

CVSS 8.8 · High EPSS 0.76% · P54

Affected Version Matrix 2

VendorProduct Version RangeStatus
twigphp Twig 3.9.0< 3.26.0 affected
2.16.* affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-24425

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
Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface
Source: CVE Program / CVE List V5
Vulnerability Description
Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the runtime check that fails to use the current template source to bypass sandbox restrictions and execute arbitrary code when the sandbox is enabled through a source policy rather than globally.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
保护机制失效
Source: CVE Program / CVE List V5
Vulnerability Title
Twig 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Twig是Twig开源的一个PHP模板引擎。 Twig 2.16.x版本和3.9.0至3.25.x版本存在安全漏洞,该漏洞源于使用SourcePolicyInterface时沙箱绕过,可能导致攻击者绕过沙箱限制并执行任意代码。
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
twigphp Twig 3.9.0 ~ 3.26.0 -

II. Public POCs for CVE-2026-24425

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9003 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-2026-24425

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

Vendor Advisories for CVE-2026-24425 (2)

Vendor Pages for CVE-2026-24425 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-24425

No comments yet


Leave a comment