StackPatch is liveSee product

Back to CVE digest
Ubuntu USN · USN-8408-1

Twig vulnerability

Published: Mon, 08 Jun 2026 19:36

CVE-2026-24425

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-twig3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-twig3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-doc3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-bundle3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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-extra3.23.0-2ubuntu0.1~esm1apt_upgrade_esm

    Fixed 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
Want this automated for your servers?

StackPatch runs this match against YOUR installed packages every hour

Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.