CVE-2026-46633: Schwachstelle in Symfony Twig
Kritisch. 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.
Packagist, CWE-94
- Ausnutzung
- Nicht bestätigt
- Schweregrad
- 9,8 von 10
- Angriffsrisiko
- Unbekannt
- Korrektur
- Korrigierte Version bekannt
- Update-Frist
- Keine Frist gesetzt
Details
- Hinweis-ID
- GHSA-7p85-w9px-jpjp
- Vektor
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Fehlerklasse
- CWE-94
- Veröffentlicht
- 21. Mai 2026
- Letzte Änderung
- 4. Nov. 2026
- Ökosystem
- Packagist
Betroffene Produkte
Betroffene Versionen und erste korrigierte Version
- Symfony Twig Vor 3.26.0. Behoben in 3.26.0
- Twigphp Twig Ab 1.15.1, bis vor 3.26.0; Version >= 1.15.1, < 3.26.0. Behoben in 3.26.0
Betroffene Pakete
Anfällige Versionsbereiche und korrigierte Versionen
- twig/twig Packagist, Betroffen: Vor 3.26.0. Behoben in 3.26.0
Sicherheitshinweise
Hinweise von Herstellern und Sicherheitsstellen
- github.com/twigphp/Twig/security/advisories/GHSA-7p85-w9px-jpjp
- github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-46633.yaml
- symfony.com/cve-2026-46633
Updates und Korrekturen
Updates, Commits und Versionshinweise
- github.com/twigphp/Twig/commit/679447fa29083043665482ccf7d64372472621b8
- github.com/twigphp/Twig/commit/e9ff55f6910832428e48a35b2e0748189ad49ae3
Weiter
- Schwachstellen in Twig Aktuelle Hinweise, Produkt beobachten
- Schwachstellen in Twig Aktuelle Hinweise, Produkt beobachten