Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Craft CMS versions from 4.0.0-RC1 before 4.18.3 and from 5.0.0-RC1 before 5.10.7 are affected by a Twig sandbox escape. The sandbox's allowlisting lets templates reach a dangerous function-call gadget inherited from the Yii framework's base component class. An attacker with control panel access who can render a malicious Twig template can achieve remote code execution, even with the Twig sandbox enabled. Upgrade to Craft CMS 4.18.3 or 5.10.7, which contain fixes.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.7 | High | 4.0 | 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 | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0079, the 56th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:06 UTC First seen by agentprime
- 31 Oct 2026, 14:06 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-f5wm-88jv-g5hx
- OSV: GHSA-f5wm-88jv-g5hx
- github.com/craftcms/cms/security/advisories/GHSA-f5wm-88jv-g5hx
- nvd.nist.gov/vuln/detail/CVE-2026-72781
- github.com/craftcms/cms/commit/0b8be1556be4e030578ec779c3e17ffe2e69d7db
- github.com/craftcms/cms
- github.com/craftcms/cms/releases/tag/4.18.3
- github.com/craftcms/cms/releases/tag/5.10.7
- www.vulncheck.com/advisories/craft-cms-rc1-before-remote-code-execution-via-twig-sandbox-escape