MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-46633GHSA-7p85-w9px-jpjp

Twig: PHP code injection via `{% use %}` template name

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

Summary

Twig is a template language for PHP. Starting in 1.15.1 and 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

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)