USN-5947-1
Fabien Potencier discovered that Twig was not properly enforcing sandbox policies when dealing with objects automatically cast to strings by PHP. An attacker could possibly use this issue to expose sensitive information. This issue was only fixed in Ubuntu 16.04 ESM and Ubuntu 18.04 ESM. (CVE-2019-9942) Marlon Starkloff discovered that Twig was not properly enforcing closure constraints in some of its array filtering functions. An attacker could possibly use this issue to execute arbitrary code. This issue was only fixed in Ubuntu 20.04 ESM. (CVE-2022-23614) Dariusz Tytko discovered that Twig was not properly verifying input data utilized when defining pathnames used to access files in a system. An attacker could possibly use this issue to access unauthorized resources and expose sensitive information. (CVE-2022-39261) Update Instructions: Run `sudo pro fix USN-5947-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: php-twig-inky-extra - 3.3.8-2ubuntu4+esm1 php-twig-cssinliner-extra - 3.3.8-2ubuntu4+esm1 php-twig-intl-extra - 3.3.8-2ubuntu4+esm1 php-twig-extra-bundle - 3.3.8-2ubuntu4+esm1 php-twig-html-extra - 3.3.8-2ubuntu4+esm1 php-twig-doc - 3.3.8-2ubuntu4+esm1 php-twig-cache-extra - 3.3.8-2ubuntu4+esm1 php-twig-markdown-extra - 3.3.8-2ubuntu4+esm1 php-twig-string-extra - 3.3.8-2ubuntu4+esm1 php-twig - 3.3.8-2ubuntu4+esm1 Available with Ubuntu Pro: https://ubuntu.com/pro
Evidence and freshness
Last supporting evidence check: 2026-11-28T02:49:42.558Z UTC
Upstream Advisory
Affected Packages
php-twig-inky-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-cssinliner-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-intl-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-extra-bundle 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-html-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-doc 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-cache-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-markdown-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-string-extra 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig 3.3.8-2ubuntu4+esm1-3.3.8-2ubuntu4+esm1
php-twig-inky-extra 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig-cssinliner-extra 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig-intl-extra 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig-extra-bundle 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig-html-extra 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig-doc 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig-markdown-extra 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1
php-twig 2.12.5-1ubuntu0.1~esm1-2.12.5-1ubuntu0.1~esm1