All vulnerabilities
CVE-2026-112777GHSA-w643-x88w-6wcm

Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE

craftcms cms
CVSS
8.7High
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.49%Chance of exploitation activity in the next 30 days, higher than 41% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in4.18.8Also 5.11.0CVE List
Published19 Oct 2026Updated 20 Oct 2026CVE List

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Craft CMS 4.x before 4.18.8 and 5.x before 5.11.0 contains a blocklist bypass in the Twig create() function because its class-name checks are case-sensitive while PHP class resolution is not. Attackers with template-execution rights, such as Control Panel administrators, can instantiate SplFileObject via a lowercase class name to read .env secrets or write a PHP file into the webroot for remote code execution.

Text from CVE List

Affected versions 4

  • cmsaffected: 4.0.0 before 4.18.8CVE List
  • cmsunaffected: 4.18.8CVE List
  • cmsaffected: 5.0.0 before 5.11.0CVE List
  • cmsunaffected: 5.11.0CVE List

References 2