CVE-2026-112777
published high CVSS 4.0 · 8.7Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms4.0.0 to < 4.18.8 (affected · semver) · 4.18.8 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| craftcms | — | cms5.0.0 to < 5.11.0 (affected · semver) · 5.11.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.2 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | 4.0.0 to < 4.18.8 (affected · semver)4.18.8 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| craftcms | cms | 5.0.0 to < 5.11.0 (affected · semver)5.11.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-184 Incomplete List of Disallowed Inputs
References
2- GitHub Security Advisory (GHSA-w643-x88w-6wcm) https://github.com/craftcms/cms/security/advisories/GHSA-w643-x88w-6wcm
- VulnCheck Advisory: Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-create-blocklist-bypass-leading-to-rce
Provider assertions
2VulnCheck · cna
Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0883e6b39ca6982e9c11e8a249afb2397843074906227acf5568ced5f0fea547
- Ingested
- 20 Oct 2026, 16:20:55 UTC
- Source record
- Official CVE record