CVE-2026-24425

Source
https://cve.org/CVERecord?id=CVE-2026-24425
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24425.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-24425
Aliases
Downstream
Published
2026-05-20T13:45:02.413Z
Modified
2026-07-15T02:17:54.329371691Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface
Details

Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the runtime check that fails to use the current template source to bypass sandbox restrictions and execute arbitrary code when the sandbox is enabled through a source policy rather than globally.

Database specific
{
    "cna_assigner": "VulnCheck",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24425.json",
    "cwe_ids": [
        "CWE-693"
    ]
}
References

Affected packages

Git / github.com/twigphp/twig

Affected ranges

Type
GIT
Repo
https://github.com/twigphp/twig
Events
Database specific
{
    "cpe": "cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*",
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "2.16.0"
        },
        {
            "last_affected": "2.16.1"
        },
        {
            "introduced": "3.9.0"
        },
        {
            "fixed": "3.26.0"
        }
    ]
}

Affected versions

2.*
2.16.*
v2.*
v2.16.0
v2.16.1
v3.*
v3.10.0
v3.10.1
v3.10.2
v3.10.3
v3.11.0
v3.12.0
v3.13.0
v3.14.0
v3.15.0
v3.16.0
v3.17.0
v3.17.1
v3.18.0
v3.19.0
v3.20.0
v3.21.0
v3.21.1
v3.22.0
v3.22.1
v3.22.2
v3.23.0
v3.24.0
v3.25.0
v3.9.0
v3.9.1
v3.9.2
v3.9.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24425.json"