6 matches found
CVE-2026-133766 Sandbox `__toString()` policy bypass via spread arguments
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...
CVE-2026-133766
The Twig template engine (version 3.28.0 and later) is vulnerable to a sandbox “toString” policy bypass via spread arguments. The root cause is that the sandbox skips the “toString” check for arguments whose PHP parameter type cannot hold a string (such as an integer). An attacker can use a spre...
CVE-2026-133766 Sandbox `__toString()` policy bypass via spread arguments
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...
CVE-2026-48807 Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters
Twig is a template language for PHP. Prior to 3.27.0, the sandbox toString checks do not fully cover Traversable values passed to join and replace filters or operands evaluated by the in and not in operators, allowing contained Stringable objects to be coerced to strings without consulting the...
CVE-2026-48807 Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters
Twig is a template language for PHP. Prior to 3.27.0, the sandbox toString checks do not fully cover Traversable values passed to join and replace filters or operands evaluated by the in and not in operators, allowing contained Stringable objects to be coerced to strings without consulting the...