USN-8408-1

Source
https://ubuntu.com/security/notices/USN-8408-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8408-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-8408-1
Upstream
Related
Published
2026-06-08T19:36:58Z
Modified
2026-06-09T03:29:12.946977941Z
Summary
php-twig vulnerability
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.

References

Affected packages

Ubuntu:Pro:26.04:LTS / php-twig

Package

Name
php-twig
Purl
pkg:deb/ubuntu/php-twig?arch=source&distro=esm-apps%2Fresolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.23.0-2ubuntu0.1~esm1

Affected versions

3.*
3.20.0-2ubuntu1
3.23.0-2build5
3.23.0-2build7

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "php-twig",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-cache-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-cssinliner-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-extra-bundle",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-html-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-inky-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-intl-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-markdown-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        },
        {
            "binary_name": "php-twig-string-extra",
            "binary_version": "3.23.0-2ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map
{
    "ecosystem": "Ubuntu:Pro:26.04:LTS",
    "cves": [
        {
            "id": "CVE-2026-24425",
            "severity": [
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "type": "CVSS_V3",
                    "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
                },
                {
                    "type": "CVSS_V4",
                    "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
                },
                {
                    "type": "Ubuntu",
                    "score": "medium"
                }
            ]
        }
    ]
}
source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-8408-1.json"