Bug 2500745 (CVE-2026-46640) - CVE-2026-46640 twig/twig: Twig: Arbitrary code execution via improper handling of dynamic attributes
Summary: CVE-2026-46640 twig/twig: Twig: Arbitrary code execution via improper handlin...
Keywords:
Status: NEW
Alias: CVE-2026-46640
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-14 22:04 UTC by OSIDB Bzimport
Modified: 2026-07-15 11:35 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-14 22:04:13 UTC
Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlled string into a MacroReferenceExpression name without identifier validation, causing raw PHP to be emitted into the generated template source and executed at template-load time. 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.