CVE Catalog

CVE-2026-49981

HighCVSS 8.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.36%

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

Summary

A vulnerability in the Twig template library for PHP allows bypassing the sandbox mechanism. The allow-list of filters, tags, and functions is computed when a template instance is created and may remain cached after sandbox state changes between renders.

Risk Assessment

An attacker could exploit this vulnerability to perform unauthorized operations within the sandbox, potentially leading to privilege escalation or data leakage.

Recommendation

Immediately update the Twig library to version 3.27.0 or later, which includes the fix.

Other vulnerabilities in Twig

See all
Original NVD description (English source)

Twig is a template language for PHP. Prior to 3.27.0, the per-template filter, tag, and function allow-list verdict is computed when a Template instance is constructed and can remain cached after sandbox state changes between renders, allowing a later sandboxed render to reuse a template that was originally checked with a different or empty policy. This issue is fixed in version 3.27.0.

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