ADVISORIES

Vulnerability

CVE-2026-46633

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 PHP expressions into the compiled cache file. This issue is fixed in version 3.26.0.

7 advisories report this vulnerability, across 4 ecosystems.

Advisories

  • CGA-2q76-648w-ghff
    CVE-2026-46633 Chainguard Updated 5 November 2026
  • CGA-v7qp-29rg-mvwq
    CVE-2026-46633 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-46633

    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…

    CVE-2026-46633 Debian Updated 4 November 2026
  • DSA-6311-1

    php-twig - security update

    CVE-2026-24425CVE-2026-46627CVE-2026-46628CVE-2026-46629 Debian Updated 20 November 2026
  • DSA-6320-1

    php-twig - security update

    CVE-2024-51754CVE-2026-46628CVE-2026-46629CVE-2026-46633 Debian Updated 20 November 2026
  • GHSA-7p85-w9px-jpjp

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

    Critical CVE-2026-46633 Packagist Updated 4 November 2026
  • UBUNTU-CVE-2026-46633

    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…

    CVE-2026-46633 Ubuntu Updated 5 November 2026

References