# CVE-2025-68454: Craft CMS vulnerable to potential authenticated Remote Code Execution via Twig SSTI

- Severity: Medium 5.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`
- 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.94%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-05T18:10:56.000Z
- Modified: 2026-10-07T10:10:00.213Z
- Also known as: GHSA-742x-x762-7383
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Craft is a platform for creating digital experiences. Versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16 are vulnerable to potential authenticated Remote Code Execution via Twig SSTI. For this to work, users must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled, which is against Craft CMS' recommendations for any non-dev environment. Alternatively, a non-administrator account with allowAdminChanges disabled can be used, provided access to the System Messages utility is available. 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. Users should update to the patched versions (5.8.21 and 4.16.17) to mitigate the issue.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, < 5.8.21; >= 4.0.0-RC1, < 4.16.17
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.8.21; from 4.0.0-RC1 before 4.16.17
- craftcms craft_cms: from 4.0.0.1 before 4.16.17; from 5.0.1 before 5.8.21; 4.0.0; 5.0.0

## Every score

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

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-742x-x762-7383> (exploit, vendor-advisory, web)
- <https://github.com/craftcms/cms/commit/d82680f4a05f9576883bb83c3f6243d33ca73ebe> (patch, web)
- <https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5821---2025-12-04> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68454> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2025-68454](https://www.cve.org/CVERecord?id=CVE-2025-68454), CVE Terms of Use, modified 2026-01-06
- GitHub Advisory Database: [GHSA-742x-x762-7383](https://github.com/advisories/GHSA-742x-x762-7383), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-68454](https://nvd.nist.gov/vuln/detail/CVE-2025-68454), Public domain, modified 2026-10-07

---

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