Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE
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.
CVE-2026-112777
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-112777
cms
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
cms
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"vendor": "craftcms",
"product": "cms",
"versions": [
{
"status": "affected",
"version": "4.0.0",
"lessThan": "4.18.8",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "4.18.8",
"versionType": "semver"
}
],
"defaultStatus": "unaffected"
},
{
"vendor": "craftcms",
"product": "cms",
"versions": [
{
"status": "affected",
"version": "5.0.0",
"lessThan": "5.11.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.11.0",
"versionType": "semver"
}
],
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-112777
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #42335 · Revision 1
- Added to Heist Feed
- Publisher date