CVE Catalog

CVE-2026-112777

HighCVSS 7.2
Published: Updated: Translated: NVD NIST

Summary

Craft CMS 4.x before 4.18.8 and 5.x before 5.11.0 contain 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.

Risk Assessment

A user with template-execution rights could read environment secrets or write a malicious PHP file, leading to remote code execution. The risk applies to Craft CMS installations with users who can execute templates.

Recommendation

Update Craft CMS to version 4.18.8 or 5.11.0 (or later). Restrict template-execution rights to trusted administrators and protect the .env file.

Other vulnerabilities in Craft CMS

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS