Affected versions
Ubuntu25.10/php-twig
- Affected versions
- * || =3.20.0-2ubuntu1
- Fixed version
- Not reported
Ubuntu26.10/php-twig
- Affected versions
- * || =3.23.0-2build7 || =3.27.1-1 || =3.28.0-1
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/php-twig
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:22.04:LTS/php-twig
- Affected versions
- * || =3.3.2-1ubuntu3 || =3.3.4-1 || =3.3.6-1 || =3.3.7-1 || =3.3.8-2ubuntu4 || =3.3.8-2ubuntu4+esm1 || =3.3.8-2ubuntu4+esm2
- Fixed version
- Not reported
UbuntuPro:24.04:LTS/php-twig
- Affected versions
- Unknown
- Fixed version
- Not reported
UbuntuPro:26.04:LTS/php-twig
- Affected versions
- Unknown
- Fixed version
- Not reported
Description
Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized string_template name that can fall outside a SourcePolicyInterface sandbox decision, allowing a sandboxed template that can call template_from_string and include to render an inner template without security policy enforcement. This issue is fixed in version 3.26.0.

