CVE-2026-133766 Details
Description
Since Twig 3.28.0, the sandbox skips the toString() check of an argument whose PHP parameter can't hold a string, like an int. A spread argument was mapped to a single parameter, although it fills every parameter from its position on. A sandboxed template could therefore call a denied toString() method: {{ tag(...[1, obj]) }} Here, the first parameter of tag() is an int, and a later one accepts strings. Applications are affected when they allow such a function, filter or test in the sandbox. No built-in callable is affected. A spread argument is now checked unless every parameter that it can fill has a safe type.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/twigphp/Twig/commit/7af821c372f52cc9447afeba9e042de44b738222 | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 | |
| https://github.com/twigphp/Twig/security/advisories/GHSA-56wp-8m9q-4354 | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 | |
| https://symfony.com/cve-2026-133766 | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-693 | Protection Mechanism Failure | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 |
| CWE-863 | Incorrect Authorization | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Dec 1, 2026 | CVE Modified | CISA-ADP |
| Nov 24, 2026 | New CVE Received | b5aa5c7f-767d-4597-9c64-3ac08b8711c6 |