---
cve: "CVE-2026-46640"
severity: "HIGH"
cvss: 8.7
epss: "41%"
vendor: "twigphp"
kev: false
exploited: false
published: "2026-07-14 21:22:57"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T05:46:02+02:00"
---

# CVE-2026-46640

> 8.7 HIGH · 🧪 PoC

## Beschreibung

Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.() 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 source and executed at template-load time. 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)
- 324fa60545694fa6abe85ded9befcb82e1066bc2 (Commit)

## Referenzen

- <https://github.com/twigphp/Twig/security/advisories/GHSA-45vw-wh46-2vx8>
- <https://github.com/twigphp/Twig/commit/324fa60545694fa6abe85ded9befcb82e1066bc2>
- <https://github.com/twigphp/Twig/releases/tag/v3.26.0>

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