---
cve: "CVE-2026-46633"
severity: "HIGH"
cvss: 8.7
epss: "64%"
vendor: "twigphp"
kev: false
exploited: false
published: "2026-07-14 22:16:55"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-09T22:23:34+02:00"
---

# CVE-2026-46633

> 8.7 HIGH · 🧪 PoC

## Beschreibung

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

## CVSS-Vektor

```
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- 1fcae487b180d78e6351f4e0afa91f9eab96a2bc (Commit)
- 679447fa29083043665482ccf7d64372472621b8 (Commit)

## Referenzen

- <https://github.com/twigphp/Twig/security/advisories/GHSA-7p85-w9px-jpjp>
- <https://github.com/twigphp/Twig/commit/679447fa29083043665482ccf7d64372472621b8>
- <https://github.com/twigphp/Twig/commit/e9ff55f6910832428e48a35b2e0748189ad49ae3>
- <https://github.com/twigphp/Twig/releases/tag/v3.26.0>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-46633) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
