CVE-2026-112777 Details
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.
A blocklist bypass vulnerability has been identified in the Twig 'create()' function of Craft CMS versions 4.x prior to 4.18.8 and 5.x prior to 5.11.0. This vulnerability arises because the blocklist checks class names in a case-sensitive manner, while PHP class resolution is case-insensitive. As a result, attackers with template-execution rights, such as Control Panel administrators, can exploit this flaw by using a lowercase class name to instantiate 'SplFileObject'. This allows them to read sensitive files like '.env' or write a PHP file into the webroot for remote code execution.
Users can upgrade to Craft CMS versions 4.18.8 or 5.11.0, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 19, 2026CISA-ADP
Assessed Oct 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/craftcms/cms/security/advisories/GHSA-w643-x88w-6wcm | [email protected] | AdvisoryTechnical AnalysisVendor |
| https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-create-blocklist-bypass-leading-to-rce | [email protected] | AdvisoryBroken Link |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Craft CMS | >= 4.0.0, < 4.18.8 (semver) >= 5.0.0, < 5.11.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 20, 2026 | CVE Modified | CISA-ADP |
| Oct 19, 2026 | New CVE Received | [email protected] |
Volerion