Bug 2500756 (CVE-2026-46633) - CVE-2026-46633 twig/twig: Twig: Arbitrary code execution via crafted template name
Summary: CVE-2026-46633 twig/twig: Twig: Arbitrary code execution via crafted template...
Keywords:
Status: NEW
Alias: CVE-2026-46633
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2500868 2500869
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-14 22:05 UTC by OSIDB Bzimport
Modified: 2026-07-15 11:41 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-14 22:05:01 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.