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

Goal: 1000 CNY · Raised: 1310 CNY

100%

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

CVSS 8.8 · High EPSS 0.11% · P30

Affected Version Matrix 2

VendorProductVersion RangeStatus
twigphpTwig3.9.0< 3.26.0affected
2.16.*affected
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
保护机制失效
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
twigphpTwig 3.9.0 ~ 3.26.0 -

II. Public POCs for CVE-2026-24425

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium
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