VulnerabilityCVE-2026-133766
Sandbox `__toString()` policy bypass via spread arguments
Not on CISA KEV
Summary
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()
See the full record, free
- Every source, score and reference in one place
- Timeline and related records
- Watch an entry and get an alert when it changes
Sources and credits
- CVE List Source: CVE Program (cve.org)
- NVD This product uses the NVD API but is not endorsed or certified by the NVD.