CVE-2026-28783 Details
Description
Craft is a content management system (CMS). Prior to 5.9.0-beta.1 and 4.17.0-beta.1, Craft CMS implements a blocklist to prevent potentially dangerous PHP functions from being called via Twig non-Closure arrow functions. In order to be able to successfully execute this attack, you need to either have allowAdminChanges enabled on production, or a compromised admin account, or an account with access to the System Messages utility. Several PHP functions are not included in the blocklist, which could allow malicious actors with the required permissions to execute various types of payloads, including RCEs, arbitrary file reads, SSRFs, and SSTIs. This vulnerability is fixed in 5.9.0-beta.1 and 4.17.0-beta.1.
A vulnerability exists in Craft CMS versions 5.0.0-RC1 through 5.9.0-beta.1 and 4.0.0-RC1 through 4.17.0-beta.1. The issue arises from an incomplete blocklist that fails to prevent certain dangerous PHP functions from being invoked through Twig non-Closure arrow functions. This flaw can be exploited by users with specific permissions, such as those with a compromised admin account, access to the System Messages utility, or who have 'allowAdminChanges' enabled on production. The missing functions in the blocklist could be leveraged to execute various harmful payloads, including remote code execution, arbitrary file reads, server-side request forgery, and server-side template injection.
Users should update to Craft CMS versions 5.9.0-beta.1 or 4.17.0-beta.1. After updating, enable the 'enableTwigSandbox' configuration setting, which is enabled by default on new Craft projects. Existing projects will need to manually activate this setting.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/craftcms/cms/pull/18208 | [email protected] | Issue TrackingPatch |
| https://github.com/craftcms/cms/security/advisories/GHSA-5fvc-7894-ghp4 | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
| CWE-184 | Incomplete List of Disallowed Inputs | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| craftcms craft cms | > 4.0.0, < 4.17.0 > 5.0.0, < 5.9.0 4.0.0 - 4.0.0 rc1 4.0.0 rc2 4.0.0 rc3 5.0.0 - 5.0.0 rc1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 5, 2026 | Initial Analysis | [email protected] |
| Mar 4, 2026 | New CVE Received | [email protected] |