CVE-2026-46633
criticalTwig is a template language for PHP.
Vendor / product: Symfony — twig
Twig is a template language for PHP. Starting in 1.15.1 and prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is placed inside a PHP single-quoted string literal, allowing a crafted template name to terminate the string and inject arbitrary PHP expressions into the compiled cache file. This issue is fixed in version 3.26.0.
CVSS
9.8
9.8 (CVSS v3.1)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Severity source: NVD CVSS v3.1 (nvd@nist.gov)
Timeline (UTC)
Published: 2026-07-14 22:16
Modified: 2026-11-04 00:17
NVD status: Modified
Last synced 1 day ago
Verified against the source API 2026-11-04 00:25 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).
Affected products
symfony / twig <3.26.0
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
Patch / mitigation: https://github.com/twigphp/Twig/commit/679447fa29083043665482ccf7d64372472621b8
Patch / mitigation: https://github.com/twigphp/Twig/commit/e9ff55f6910832428e48a35b2e0748189ad49ae3
References
- https://gist.github.com/vladko312/d61b950f168c791db4786b83dc7a81e6 security-advisories@github.com
- https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-46633.y... security-advisories@github.com
- https://github.com/twigphp/Twig/commit/679447fa29083043665482ccf7d64372472621b8 security-advisories@github.com
- https://github.com/twigphp/Twig/commit/a2c6db7ea7d2c90923e6708019ec1442526d1c30 security-advisories@github.com
- https://github.com/twigphp/Twig/commit/e9ff55f6910832428e48a35b2e0748189ad49ae3 security-advisories@github.com
- https://github.com/twigphp/Twig/releases/tag/v3.26.0 security-advisories@github.com
- https://github.com/twigphp/Twig/security/advisories/GHSA-7p85-w9px-jpjp security-advisories@github.com
- https://symfony.com/cve-2026-46633 security-advisories@github.com
Data sources
NVD CVE API 2.0 — fetched 2026-11-04 00:25 UTC · record ↗

