CVE-2026-46633
published 2026-07-14CVE-2026-46633: 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…
PriorityP352critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.69%
51.0th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| symfony | twig | < 3.26.0 | 3.26.0 |
| twig | twig | >= 0 < 3.26.0 | 3.26.0 |
| twigphp | twig | < 3.26.0 | 3.26.0 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv4.08.7HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-46633 phpMyAdmin: Twig: Arbitrary code execution via crafted template name [fedora-all]
bugzilla·2026-07-15·CVSS 9.8
CVE-2026-46633 [CRITICAL] CVE-2026-46633 phpMyAdmin: Twig: Arbitrary code execution via crafted template name [fedora-all]
CVE-2026-46633 phpMyAdmin: Twig: Arbitrary code execution via crafted template name [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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.
Bugzilla
CVE-2026-46633 phpMyAdmin: Twig: Arbitrary code execution via crafted template name [epel-all]
bugzilla·2026-07-15·CVSS 9.8
CVE-2026-46633 [CRITICAL] CVE-2026-46633 phpMyAdmin: Twig: Arbitrary code execution via crafted template name [epel-all]
CVE-2026-46633 phpMyAdmin: Twig: Arbitrary code execution via crafted template name [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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.
Bugzilla
CVE-2026-46633 twig/twig: Twig: Arbitrary code execution via crafted template name
bugzilla·2026-07-14·CVSS 9.8
CVE-2026-46633 [CRITICAL] CVE-2026-46633 twig/twig: Twig: Arbitrary code execution via crafted template name
CVE-2026-46633 twig/twig: Twig: Arbitrary code execution via crafted template name
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.
2026-07-14
Published