Skip to main content
VulnerabilityPublished Updated

craftcms/cms · Duplicate Advisory: Craft CMS: Authenticated RCE through Twig sandbox escape

Affects craftcms/cmsSource GCVE Database

0

CVSS 8.8 High.

Data as of 7 Sep 2026, 18:22 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What to do

Affected software

ProductAffectedFixed in
Packagistcraftcms/cmsAffected
  • >=4.0.0-RC1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until an official fix is confirmed, restrict control panel access to trusted users only and monitor for suspicious activity related to Twig template rendering.

Description

Craft CMS versions 4.0.0-RC1 through before 4.18.3 and 5.0.0-RC1 through before 5.10.7 contain a remote code execution vulnerability via the Twig sandbox escape. An authenticated user with control panel access can exploit the vulnerability by rendering a malicious Twig template that abuses the yii\base\Component arbitrary function-call gadget, enabling arbitrary code execution even when the Twig sandbox is enabled.

References

Community reviews

Loading reviews…