Skip to main content

CVE-2025-68454 — Vulnerability in craftcms/cms — CVE Details

MEDIUM

Craft CMS vulnerable to potential authenticated Remote Code Execution via Twig SSTI

Published January 5, 2026Updated February 3, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.34%). Schedule for your next planned update.

Does your project use an affected craftcms/cms version?

Paste your composer.lock to check it for CVE-2025-68454 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

For this to work, users must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled for this to work, which is against Craft CMS' recommendations for any non-dev environment.

https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production

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.

References:

https://github.com/craftcms/cms/commit/d82680f4a05f9576883bb83c3f6243d33ca73ebe

https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5821---2025-12-04

Advisory Timeline

  • First published January 5, 2026 (325 days ago).
  • Last revised February 3, 2026 — 28 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update craftcms/cms to 5.8.21 or later
composer require "craftcms/cms:^5.8.21"
Composer
Update craftcms/cms to 4.16.17 or later
composer require "craftcms/cms:^4.16.17"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
craftcms/cms Packagist · Affected: 5.0.0, 5.0.0-RC1, 5.0.1, 5.0.2 (+138 more)5.8.21
craftcms/cms Packagist · Affected: 4.0.0, 4.0.0-RC1, 4.0.0-RC2, 4.0.0-RC3 (+222 more)4.16.17

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2025-68454?
Craft CMS vulnerable to potential authenticated Remote Code Execution via Twig SSTI. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.4/10).
How do I check if my project is affected by CVE-2025-68454?
CVE-2025-68454 affects craftcms/cms. It has a 1.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-68454 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.4

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.34%
EPSS percentile: 71.4

This is an above-median EPSS score — 71.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-742x-x762-7383

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock