CVE Catalog

CVE-2026-24425

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.74%

51th percentile - higher than 51% of all known CVEs

Summary

Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface. Attackers with template rendering capabilities can pass arbitrary PHP callables to sort, filter, map, and reduce filters, bypassing sandbox restrictions and executing arbitrary code.

Risk Assessment

The risk is remote code execution by an attacker with template rendering access, potentially leading to full server compromise.

Recommendation

Upgrade Twig to version 3.26.0 or later, which includes a fix for this vulnerability.

Other vulnerabilities in Twig

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS