---
cve: "CVE-2026-24425"
severity: "HIGH"
cvss: 8.7
epss: "76%"
vendor: "twigphp"
kev: false
exploited: false
published: "2026-05-20 14:16:38"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-11T10:05:11+02:00"
---

# CVE-2026-24425

> 8.7 HIGH · 🧪 PoC

## Beschreibung

Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the runtime check that fails to use the current template source to bypass sandbox restrictions and execute arbitrary code when the sandbox is enabled through a source policy rather than globally.

## 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)

## Referenzen

- <https://github.com/twigphp/Twig/security/advisories/GHSA-2q52-x2ff-qgfr>
- <https://github.com/twigphp/Twig/releases/tag/v3.26.0>
- <https://www.vulncheck.com/advisories/twig-x-x-sandbox-bypass-via-sourcepolicyinterface>

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