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

CVE-2025-68454 · Severity: high · CVSS 8.8 · Published 2026-01-05

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.

Technologies: craftcms/cms (Packagist). Vendors: Packagist.

Quick answers

Is CVE-2025-68454 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-68454 being exploited in the wild.
How severe is CVE-2025-68454?
High severity, with a CVSS score of 8.8, published 5 January 2026.
Which products and versions are affected?
craftcms/cms (Packagist) ECOSYSTEM:introduced=5.0.0-RC1,fixed=5.8.21.
Is there a fix for CVE-2025-68454?
Yes. craftcms/cms (Packagist): upgrade to 5.8.21 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-68454?
Check whether you run craftcms/cms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • craftcms/cms (Packagist): upgrade to 5.8.21 or later
    composer require craftcms/cms:^5.8.21

Affected products

  • craftcms/cms (Packagist) ECOSYSTEM:introduced=5.0.0-RC1,fixed=5.8.21

Identifiers

  • CVE-2025-68454
  • GHSA-742x-x762-7383

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.