---
cve: "CVE-2026-48806"
severity: "HIGH"
cvss: 7.1
epss: "23%"
vendor: "twigphp"
kev: false
exploited: false
published: "2026-07-14 22:17:04"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T06:32:49+02:00"
---

# CVE-2026-48806

> 7.1 HIGH · 🧪 PoC

## Beschreibung

Twig is a template language for PHP. Prior to 3.27.0, ArrayExpression does not guard dynamic mapping keys that are coerced to strings, allowing PHP to invoke __toString() on a Stringable object used as a mapping key without calling SandboxExtension::ensureToStringAllowed(). This issue is fixed in version 3.27.0.

## CVSS-Vektor

```
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/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)

- 04ae1bfe9463c816cf72ca0abe7eae2c77a9a9ed (Commit)
- 9ff41014639ef0e8eb50ac7669191c309d863105 (Commit)

## Referenzen

- <https://github.com/twigphp/Twig/security/advisories/GHSA-5v5v-ww74-355v>
- <https://github.com/twigphp/Twig/commit/9ff41014639ef0e8eb50ac7669191c309d863105>
- <https://github.com/twigphp/Twig/releases/tag/v3.27.0>

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