CVE-2026-28783: Craft CMS - Remote Code Execution
- Cve: CVE-2026-28783
- Name: Craft CMS - Remote Code Execution
- 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.
- Impact: Attackers with required permissions can execute arbitrary code, read files, perform SSRF, and SSTI, leading to full system compromise.
- Remediation: Update to versions 5.9.0-beta.1 or 4.17.0-beta.1 or later.
- Vulnerability type: remote_code_execution
- Vulnerability impact: remote_code_execution, file_system_read, server_side_request_forgery
- Requirement type: logged_in
- Requirements: Attacker needs allowAdminChanges enabled or compromised admin or System Messages access
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.00512
- Epss percentile: 0.4454
- Assignee: [email protected]
- Published at: 2026-03-04T17:16:21Z
- Age in days: 265
- Modified at: 2026-06-17T10:29:02Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-28783
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/craftcms/cms/pull/18208 | nvd | Issue Tracking, Patch |
| https://github.com/craftcms/cms/security/advisories/GHSA-5fvc-7894-ghp4 | nvd | Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| craftcms:craft_cms | > 5.0.0, < 5.9.0; = 5.0.0; = 5.0.0 rc1; > 4.0.0, < 4.17.0; = 4.0.0; = 4.0.0 rc1; = 4.0.0 rc2; = 4.0.0 rc3 | no | nvd | /v1/products/craftcms/craft_cms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| craftcms/cms | package, pull, security_advisory | yes | /v1/repositories/craftcms/cms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 34344
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports