CVE-2026-72781
published high CVSS 4.0 · 8.7Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms5.0.0-RC1 to < 5.10.7 (affected · semver) · 5.10.7 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| craftcms | — | cms4.0.0-RC1 to < 4.18.3 (affected · semver) · 4.18.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
Description
Craft CMS versions >= 5.0.0-RC1 before 5.10.7 and >= 4.0.0-RC1 before 4.18.3 contain a remote code execution vulnerability in the Twig sandbox mechanism. Because Craft marks the ElementInterface as safe (via the AllowedInSandbox attribute) and the sandbox allowlisting extends to the entire class hierarchy (craft\base\Component up to yii\base\Component), an authenticated attacker with permission to access the control panel can render a malicious Twig template that abuses the yii\base\Component arbitrary function-call gadget to execute arbitrary code, even when the Twig sandbox is enabled via enableTwigSandbox().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | 5.0.0-RC1 to < 5.10.7 (affected · semver)5.10.7 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| craftcms | cms | 4.0.0-RC1 to < 4.18.3 (affected · semver)4.18.3 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-693 Protection Mechanism Failure
References
2- GitHub Security Advisory (GHSA-f5wm-88jv-g5hx) https://github.com/craftcms/cms/security/advisories/GHSA-f5wm-88jv-g5hx
- VulnCheck Advisory: Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape https://www.vulncheck.com/advisories/craft-cms-rc1-before-remote-code-execution-via-twig-sandbox-escape
Provider assertions
2VulnCheck · cna
Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6f34b08f3086dee288f2c381928fed447187d8c41803b88aa7d6319ada739a33
- Ingested
- 09 Oct 2026, 16:37:07 UTC
- Source record
- Official CVE record