CVE-2026-46633
criticalTwig is a template language for PHP.
Vendor / product: Symfony — twig
Twig is a template language for PHP. 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-10-24 22:10
NVD status: Analyzed
Last synced 3 days ago
Verified against the source API 2026-10-27 07:07 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://github.com/twigphp/Twig/commit/679447fa29083043665482ccf7d64372472621b8 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
Data sources
NVD CVE API 2.0 — fetched 2026-10-27 07:07 UTC · record ↗
