Advisory record · GHSA-f5wm-88jv-g5hx

Craft CMS: Authenticated RCE through Twig sandbox escape

CVSS 8.7 HighEPSS 0.0079 · 56th percentile

Published by the GitHub Advisory Database at 6 Aug 2026, 21:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
craftcms/cmsPackagist>=5.0.0-RC1, <5.10.7 || >=4.0.0-RC1, <4.18.35.10.7, 4.18.3
Identifiers
GHSA-f5wm-88jv-g5hx · CVE-2026-72781 · PKSA-d48x-nyby-nphv
Weakness (CWE)
CWE-693
Published
6 Aug 2026
Updated
1 Sept 2026

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.

Written 31 Oct 2026.

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

ScoreRatingCVSSVectorSource
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

  1. 31 Oct 2026, 14:06 UTC First seen by agentprime
  2. 31 Oct 2026, 14:06 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.