Vulnerability

CVE-2026-112777

highCVSS 4.0 8.7Published 19 Oct 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /craftcms/cms/security/advisories/GHSA-w643-x88w-6wcm
  • www.vulncheck.com /advisories/craft-cms-before-4.18.8-and-5.11.0-twig-create-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning