CVE-2026-112773
Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injection
- State
- Published
- Severity
- 8.7 High
- Published
- Oct 19, 2026
- Updated
- Oct 19, 2026
- Reserved
- Oct 19, 2026
Description
Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox by passing uncleansed criteria to getNext, getPrev, or getOwners. Attackers can inject Yii "as" or "on" config keys to attach malicious event handlers that execute when the element query runs, achieving code execution as the web user.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.7 High | 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 | VulnCheck |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
cmscraftcms |
|
References
- GitHub Security Advisory (GHSA-wr79-9v6x-5rfq)vendor-advisory
- VulnCheck Advisory: Craft CMS 5.0.0 before 5.11.0 RCE via Twig Sandbox Behavior Injectionthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.