# CVE-2026-28783: Craft has a Twig Function Blocklist Bypass

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 47% of CVEs (2026-11-30)
- Published: 2026-03-03T21:01:27.000Z
- Modified: 2026-06-17T10:29:02.200Z
- Also known as: GHSA-5fvc-7894-ghp4
- Weaknesses: CWE-94, CWE-184, CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, <= 5.9.0-beta.1; >= 4.0.0-RC1, <= 4.17.0-beta.1
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.9.0-beta.1; from 4.0.0-RC1 before 4.17.0-beta.1
- craftcms craft_cms: from >4.0.0 before 4.17.0; from >5.0.0 before 5.9.0; 4.0.0; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 9.4 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-5fvc-7894-ghp4> (patch, vendor-advisory, web)
- <https://github.com/craftcms/cms/pull/18208> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-28783> (advisory)
- <https://github.com/craftcms/cms> (package)
- <https://github.com/twigphp/Twig/blob/946ddeafa3c9f4ce279d1f34051af041db0e16f2/src/Extension/CoreExtension.php#L2096> (web)

## Sources

- CVE List: [CVE-2026-28783](https://www.cve.org/CVERecord?id=CVE-2026-28783), CVE Terms of Use, modified 2026-03-06
- GitHub Advisory Database: [GHSA-5fvc-7894-ghp4](https://github.com/advisories/GHSA-5fvc-7894-ghp4), CC-BY-4.0, modified 2026-03-04
- NVD: [CVE-2026-28783](https://nvd.nist.gov/vuln/detail/CVE-2026-28783), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-28783 · Whole record: https://cve.day/CVE-2026-28783.json · Rebuilt by cve.day 2026-11-25T22:59:15.180Z
