MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-46640GHSA-45vw-wh46-2vx8

Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation

Not on CISA KEVCVSS 8.7 (v4.0)
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)