Skip to main content
← 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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.18.8, 5.11.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • craftcms cms

    From 4.0.0 · fixed in 4.18.8

  • craftcms cms

    From 5.0.0 · fixed in 5.11.0

References 2

GitHub · craftcms/cms

vulncheck.com