USN-5947-1

Type: Security
Severity: Medium
Published: 2023-03-13
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 20.04 LTS (Focal Fossa)

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

Data current

Last supporting evidence check: 2026-11-28T02:49:42.558Z UTC

Official vendor advisory

Ubuntu 22.04 LTS (Jammy Jellyfish)

View source
Observed 2026-11-28T02:49:42.558Z UTC. Last updated 2025-11-26T07:54:49.481Z 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

Interested in being alerted when there are new versions of php-twig-inky-extra and the other packages? Set up an alert.
USN-5947-1: Twig vulnerabilities | Package Alert