CVE-2025-68454CWE-1336

CVE-2025-68454

High · published January 6, 2026

CVSS v3.1
8.8
EPSS
1%
Percentile
60.7
In the wild
Unconfirmed
What it is

⚠️ If you're using Craft CMS, your admin dashboard might be a bit too friendly! An authenticated Remote Code Execution (RCE) vulnerability lurking in versions 5.0.0-RC1 to 5.8.20 and 4.0.0-RC1 to 4.16.16 could let an attacker run wild. 🔥 Think of this vulnerability like a venue with a VIP lounge that allows users to rearrange the furniture and change the decor. If a rogue admin or an ordinary user with sneaky access slips in, they could turn the whole place upside down! An attacker with admin access could execute malicious commands, compromising your entire system. This may lead to unauthorized data manipulation, deletion, or worse, entrusting your site to the whims of a digital vandal. Protecting your Craft environment is crucial!

Put simply

Think of this vulnerability like a venue with a VIP lounge that allows users to rearrange the furniture and change the decor. If a rogue admin or an ordinary user with sneaky access slips in, they could turn the whole place upside down! This vulnerability arises from a flaw in Twig's Server-Side Template Injection (SSTI) mechanism, allowing crafted payloads via text fields that process Twig input. By exploiting this, attackers can execute arbitrary code if they can access the necessary tools in the Craft Control Panel.

What to do

An attacker with admin access could execute malicious commands, compromising your entire system. This may lead to unauthorized data manipulation, deletion, or worse, entrusting your site to the whims of a digital vandal. Protecting your Craft environment is crucial! Update immediately to versions 5.8.21 and 4.16.17 to seal this security hole. If you're running older versions, ensure that allowAdminChanges is turned off for non-dev environments and audit your current user roles. You've got this! With a quick update and a few settings adjustments, you'll be back on track in no time! 🛡️

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00943 · 60.7th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2026-01-06T03:15Z
Affected products (8)
ProductVersionsFixed in
craftcms/craft_cms≥ 4.0.0.1, < 4.16.174.16.17
craftcms/craft_cms≥ 5.0.1, < 5.8.215.8.21
craftcms/craft_cmsall versions—
craftcms/craft_cmsall versions—
craftcms/craft_cmsall versions—
craftcms/craft_cmsall versions—
craftcms/craft_cmsall versions—
craftcms/craft_cmsall versions—
References (3)
EPSS history
Timeline
  • 05 JAN 21:56Z
    Craft CMS vulnerable to potential authenticated Remote Code Execution via Twig SSTI
    cvelistv5