CVE-2025-68454 — Vulnerability in craftcms/cms — CVE Details
Craft CMS vulnerable to potential authenticated Remote Code Execution via Twig SSTI
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.
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 require "craftcms/cms:^5.8.21"
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).
| Package | Fixed 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.
- CWE-1336
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
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
References
- https://github.com/craftcms/cms/security/advisories/GHSA-742x-x762-7383WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-68454ADVISORY
- https://github.com/craftcms/cms/commit/d82680f4a05f9576883bb83c3f6243d33ca73ebeWEB
- https://github.com/craftcms/cmsPACKAGE
- https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#5821---2025-12-04WEB
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
Significant impact if exploited, or exploitable with modest effort.
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
Related CVEs
- CVE-2024-56145CRITICAL
Craft CMS has potential RCE when PHP `register_argc_argv` config setting is enabled
- CVE-2023-41892CRITICAL
Craft CMS Remote Code Execution vulnerability
- CVE-2026-72780CRITICAL
Craft CMS: Passkey login accepts replayed WebAuthn assertions
- CVE-2019-15929CRITICAL
Craft CMS possibility of brute force attempts
- CVE-2026-29069HIGH
Craft CMS has unauthenticated activation email trigger with potential user enumeration
- CVE-2026-25495HIGH
Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`
- CVE-2026-72778HIGH
Craft CMS: Authenticated RCE via `condition.config` JSON cleanse bypass
- CVE-2025-68456HIGH
Unauthenticated Craft CMS users can trigger a database backup