CVE-2022-39261: Debian Linux
High severity, CVSS 7.5. EPSS: 3.2% chance of exploitation in the next 30 days.
Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem loader loads templates for which the name is a user input. It is possible to use the `source` or `include` statement to read arbitrary files from outside the templates' directory when using a namespace like `@somewhere/../some.file`. In such a case, validation is bypassed. Versions 1.44.7, 2.15.3, and 3.4.3 contain a fix for validation of such template names. There are no known workarounds aside from upgrading.
Affected products
- Debian Debian Linux: version 10.0 only; version 11.0 only
- Drupal Drupal: from 8.0.0, before 9.3.22 (fixed in 9.3.22); from 9.4.0, before 9.4.7 (fixed in 9.4.7)
- Fedoraproject Fedora: version 35 only; version 36 only; version 37 only
- Symfony Twig: from 1.0.0, before 1.44.7 (fixed in 1.44.7); from 2.0.0, before 2.15.3 (fixed in 2.15.3); from 3.0.0, before 3.4.3 (fixed in 3.4.3)
Published 2022-09-28. Last modified 2026-06-17.