# CVE-2026-112777: Craft CMS before 4.18.8 and 5.11.0 Twig create() Blocklist Bypass Leading to RCE

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-10-19T19:10:54.567Z
- Modified: 2026-10-20T17:17:31.597Z
- Weaknesses: CWE-184
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- craftcms cms: from 4.0.0 before 4.18.8; from 5.0.0 before 5.11.0 (not affected: 4.18.8; 5.11.0)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-w643-x88w-6wcm> (vendor-advisory)
- <https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-create-blocklist-bypass-leading-to-rce> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-112777](https://www.cve.org/CVERecord?id=CVE-2026-112777), CVE Terms of Use, modified 2026-10-20
- NVD: [CVE-2026-112777](https://nvd.nist.gov/vuln/detail/CVE-2026-112777), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-112777 · Whole record: https://cve.day/CVE-2026-112777.json · Rebuilt by cve.day 2026-11-25T22:59:45.928Z
