Skip to main content
← All vulnerabilities
CVE-2026-28784GHSA-QC86-Q28F-GGWW

Craft is affected by potential authenticated Remote Code Execution via Twig SSTI

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.9.0-beta.1, 4.17.0-beta.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Craft is a content management system (CMS). Prior to 5.8.22 and 4.16.18, it is possible to craft a malicious payload using the Twig map filter in text fields that accept Twig input under Settings in the Craft control panel or using the System Messages utility, which could lead to a RCE. For this to work, you must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled for this to work, which is against our recommendations for any non-dev environment. Alternatively, you can have a non-administrator account with allowAdminChanges disabled, but you have access to the System Messages utility. Users should update to the patched versions (5.8.22 and 4.16.18) to mitigate the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • craftcms cms

    From 5.0.0-RC1 · fixed in 5.9.0-beta.1; From 4.0.0-RC1 · fixed in 4.17.0-beta.1

  • craftcms/cmsPackagist

    From 5.0.0-RC1 · fixed in 5.9.0-beta.1

  • craftcms/cmsPackagist

    From 4.0.0-RC1 · fixed in 4.17.0-beta.1

References 3

GitHub · craftcms/cms

craftcms.com