CVE-2026-28783: craftcms cms · Code Injection
Affects craftcms cmsSource CVE Database V5
Not known to be exploited · CVSS 9.4 Critical · fixed in 5.9.0 : patch craftcms cms as a priority.
Data as of 30 Oct 2026, 11:52 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.9.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HExploitation evidence
Disclosed: evidence found.
CVE published 4 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| craftcmscms | Affected
| Fixed in– |
GitHubcraftcms/cmspkg:github/craftcms/cmsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2026-28783, organizations should immediately upgrade Craft CMS to versions 5.9.0-beta.1 or later, or 4.17.0-beta.1 or later, where the vulnerability is patched. Review and disable the 'allowAdminChanges' setting in production environments unless absolutely necessary, as it increases the attack surface. Enforce strict access controls and multi-factor authentication for all admin and privileged accounts to reduce the risk of credential compromise. Limit access to the System Messages utility to only trusted administrators. Conduct regular audits of user permissions and remove unnecessary privileges. Monitor logs for suspicious activity related to Twig template usage or PHP function calls. Employ web application firewalls (WAFs) with custom rules to detect and block attempts to exploit code injection patterns in Twig templates. Additionally, implement network segmentation to limit the impact of SSRF attacks and restrict outbound requests from web servers. Finally, maintain an incident response plan to quickly address any detected exploitation attempts.
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.