Description
Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed template author to invoke __toString() on objects reachable in the render context through conditional expressions, comparison operators, tests, template-loading tags, dynamic attribute names, spread arguments, the do tag, and the .. range operator. This issue is fixed in version 3.26.0.
Mitigation
Minimal update. May introduce new vulnerabilities or breaking changes.
|
 packagist | | | 3.26.0 |
 debian 12 | | =3.10.1-1 || =3.10.3-1 || =3.11.0-1 || =3.13.0-1 || =3.14.0-1 || =3.14.0-2 || =3.14.0-3 || =3.14.0-4 || =3.14.2-1 || =3.14.2-2 || =3.14.2-3 || =3.15.0-1 || =3.15.0-2 || =3.17.1-1 || =3.17.1-2 || =3.18.0-1 || =3.18.0-2 || =3.18.0-4 || =3.18.0-5 || =3.18.0-6 || =3.18.0-7 || =3.19.0-1 || =3.19.0-1~bootstrap || =3.20.0-1 || =3.20.0-1~bootstrap || =3.20.0-2 || =3.21.1-1 || =3.21.1-2 || =3.21.1-3 || =3.22.0-1 || =3.22.0-2 || =3.22.1-1 || =3.22.1-2 || =3.22.1-3 || =3.22.2-1 || =3.22.2-2 || =3.23.0-1 || =3.23.0-2 || =3.24.0-1 || =3.26.0-1 || =3.27.0-1 || =3.27.1-1 || =3.28.0-1 || =3.5.1-1 || =3.5.1-1+deb12u1 || =3.5.1-1+deb12u2 || =3.5.1-1+deb12u3 || =3.6.0-1 || =3.6.1-1 || =3.7.0-1 || =3.7.1-1 || =3.7.1-2 || =3.7.1-3 || =3.8.0-1 || =3.8.0-2 || =3.8.0-3 || =3.8.0-4 || =3.9.3-1 || =4.0.0~alpha1-1 | - |
 debian 13 | | =3.20.0-2 || =3.21.1-1 || =3.21.1-2 || =3.21.1-3 || =3.22.0-1 || =3.22.0-2 || =3.22.1-1 || =3.22.1-2 || =3.22.1-3 || =3.22.2-1 || =3.22.2-2 || =3.23.0-1 || =3.23.0-2 || =3.24.0-1 || =3.26.0-0+deb13u1 || =3.26.0-1 || >=0 <3.27.0-0+deb13u1 | 3.27.0-0+deb13u1 |
 debian 14 | | =3.20.0-2 || =3.21.1-1 || =3.21.1-2 || =3.21.1-3 || =3.22.0-1 || =3.22.0-2 || =3.22.1-1 || =3.22.1-2 || =3.22.1-3 || =3.22.2-1 || =3.22.2-2 || =3.23.0-1 || =3.23.0-2 || =3.24.0-1 || >=0 <3.26.0-1 | 3.26.0-1 |