pwned.coffeeOrder ticket · past order · 21 May 2026
Double espresso · 355°CcriticalOn hold · status unknown
Twig: PHP code injection via `{% use %}` template name
PHP
Compiler::string() escapes ", $, \, NUL and TAB when generating PHP double-quoted string literals, but does not escape single quotes. In ModuleNode::compileConstructor(), the template name from a {% use %} tag is compiled via subcompile() -> string() and placed inside a surrounding PHP single-quoted string literal.
- First seen
- Last update
- Versions per GitHub advisory, not the vendor
- twig/twig 3.26.0
- Identifiers
- CVSS
- 9.8
- Source
- GitHub advisory
- On the menu as
Receipt
- Exploitation
- No known exploitation
- By release line, per GitHub advisory, not the vendor
Product Affected Version named Source twig/twig (composer) >= 1.15.1, < 3.26.0 3.26.0 GitHub advisory per GitHub advisory, not the vendor checked - Score
- CVSS 9.8 (critical). CVSS 3.1 9.8 (NVD) for CVE-2026-46633
- Last checked
Sources: KEV – CVE record ✓ Vendor –
Sources
Totalone very hot coffee