Twig vulnerability
Published: Mon, 08 Jun 2026 19:36
Summary
Twig could be made to run programs if it received specially crafted network traffic from an authenticated user.
Details
It was discovered that Twig did not properly validate PHP callables when using a source policy. An authenticated user could possibly use this issue to execute arbitrary code.
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu resolute
php-twig→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-cache-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-cache-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-cssinliner-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-cssinliner-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-doc→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-doc=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-extra-bundle→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-extra-bundle=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-html-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-html-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-inky-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-inky-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-intl-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-intl-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-markdown-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-markdown-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
php-twig-string-extra→3.23.0-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.23.0-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y php-twig-string-extra=3.23.0-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
Are YOU affected by USN-8408-1?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8408-1 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
StackPatch runs this match against YOUR installed packages every hour
Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.