Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-priv Craft user
-
DeliveryCall license-shun endpoint to mint signed cookie
-
ExploitTransplant signed envelope into login redirect param
-
ExecutionSignature validated, bytes rendered as unsandboxed Twig
-
Persistmap filter invokes PHP system()
-
ImpactExecute OS commands as web-server user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires an authenticated Craft user account (Control Panel/admin rights NOT required - any non-administrator front-end account suffices) that uses password authentication WITHOUT active two-factor authentication. The target must run the DEFAULT Craft request configuration, and the PHP system() function must be callable (not disabled via disable_functions or a restrictive PHP policy). The specific abuse path is the license-shun endpoint, which signs a cookie with the same key/format used to validate signed redirect parameters; the attacker transplants that signed envelope into the login redirect parameter to trigger unsandboxed Twig rendering. Limiting factors that reduce real-world exposure: enforced/active 2FA blocks the required account state; a non-default request configuration or PHP environments with system() disabled neutralize the RCE; the requirement for a valid low-privilege account (rather than fully unauthenticated) narrows the attacker pool. |
| Impact | This is a genuine high-priority vulnerability, not a high-CVSS-but-low-real-risk issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC:H/VI:H/VA:H, score 8.7) describes a fully-remote, low-complexity path to arbitrary OS command execution as the web-server user by any authenticated non-administrator - Control Panel access is explicitly NOT required, which dramatically widens the eligible attacker pool (any member/editor account on a Craft site with front-end login). The technical impact is total (full RCE), and the root cause is a clean cryptographic design flaw (HMAC signature not bound to its purpose, CWE-1336: same Craft securityKey backs Yii's cookieValidationKey and signed request parameters), making it deterministic rather than probabilistic to exploit once understood. Countervailing signals lower the URGENCY somewhat: no CISA KEV listing (not confirmed actively exploited), no public POC referenced in the supplied data, and no EPSS score provided - so this reflects disclosed-but-not-yet-weaponized status. Real exploitation is also gated by three concrete non-CVSS conditions (an account using password auth WITHOUT active 2FA, the default request configuration, and PHP system() being callable), which meaningfully reduce the exploitable population on hardened deployments. Net: treat as a priority patch for any multi-user Craft install, especially those without enforced 2FA or with permissive PHP; the absence of KEV/POC lowers immediacy but not the intrinsic severity. |
| Exploit ScenarioDerived | An attacker who holds (or registers/phishes) any low-privilege Craft user account without 2FA calls the license-shun endpoint to obtain a validly signed cookie envelope, then transplants that signed value into the login redirect parameter. Because the same key validates both, Craft accepts the signature and renders the attacker-supplied bytes as an unsandboxed Twig template, where the map filter's string callback invokes PHP system() to run OS commands as the web-server user. No public POC is referenced in the supplied data, but the mechanism is fully described and deterministic. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Remote code execution in Craft CMS 4.8.0 through 4.18.5 and 5.0.0 through 5.10.12 lets any authenticated non-administrator user - Control Panel access is not required - run arbitrary operating-system commands as the web-server user. Craft signs the attacker-controlled license-shun cookie with the same key and format it uses to validate signed redirect parameters (the signature is not bound to its purpose), so the attacker can transplant that signed envelope into the login redirect parameter; on a successful login Craft accepts the signature and renders the attacker-supplied bytes as an unsandboxed Twig template, where Twig's map filter accepts a string callback and reaches PHP system(). Exploitation requires a password-authenticated account without active 2FA, the default request configuration, and a callable PHP system(); there is no public exploit code identified at time of analysis, and the flaw is fixed in 4.18.6 and 5.10.13. The high severity score reflects full confidentiality, integrity, and availability impact at the application level once the preconditions are met.
RemediationAI
Upgrade Craft CMS to 4.18.6 (4.x train) or 5.10.13 (5.x train) - these are the vendor-released fixed versions - and confirm the running build after deployment; the vendor advisory GHSA-5r92-75j8-c534 documents the correction. Because the exploit path depends on specific preconditions, the following compensating controls are worth applying during the patch window and as hardening afterwards. Enforce two-factor authentication for every account, including low-privilege front-end users: active 2FA blocks the required password-only account state and neutralizes the attack, at the cost of enrollment overhead and possible friction for programmatic or legacy logins. Disable system() (and sibling execution functions) via PHP's disable_functions, or run Craft under a restrictive PHP policy or open_basedir/container sandbox; this removes the final sink, at the trade-off of breaking plugins, image tooling, or console tasks that legitimately shell out. Review the request configuration and, if feasible, remove or block the license-shun endpoint and any unauthenticated route that can mint signed values; disabling a feature may affect licensing prompts but not core content delivery. Restrict and monitor access to login/redirect handling (rate limiting, WAF rules on the redirect parameter) and alert on redirect parameters that carry signed envelopes or Twig-like syntax in request logs - these are detection measures, not fixes, and can be evaded by careful encoding. Session invalidation and key rotation after upgrading are advisable if compromise is suspected, since the cryptographic weakness is the shared securityKey material.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause class is CWE-1336, improper neutralization of special elements used in a template engine, i.e. server-side template injection (SSTI) - VulnCheck tags the advisory with PHP, SSTI, and information disclosure. The chain has two distinct links. First, a cryptographic purpose-binding failure: Craft derives Yii's cookieValidationKey from the same securityKey used to sign request parameters, so an HMAC produced for one context (the license-shun cookie) is accepted verbatim in another (the signed redirect parameter). Signatures here prove integrity against outsiders but do not encode what the value was signed for, which makes cross-context envelope substitution possible. Second, a template-rendering sink: the validated redirect bytes are rendered as an unsandboxed Twig template, and Twig's map filter is callable with a string callback, allowing the attacker to invoke PHP's system() rather than a harmless Twig function. The practical effect is command execution in the web-server process context, depending on how PHP is configured (disable_functions or similar policy removes the sink). The supplied CVSS 4.0 vector is CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (score 8.7), which maps to the CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H used in the independent assessment: network-reachable, low complexity, low-privilege (authenticated) attacker, no user interaction other than the attacker's own account, and high impact confined to the vulnerable Craft application. No CPE strings or KEV entry were included in the supplied intelligence.
Know when Craft Cms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote low-priv authenticated user (PR:L, no CP rights needed) triggers RCE with low complexity on default config; runs as web-server user on the same system so S:U with full C/I/A impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
Craft CMS 4.8.0 through 4.18.5 and 5.0.0 through 5.10.12 sign an authenticated user's attacker-controlled license-shun cookie with the same key and format used to validate signed redirect parameters, because the HMAC signature is not bound to its purpose (Yii's cookieValidationKey is derived from the same Craft securityKey used for signed request parameters). An authenticated, non-administrator user (Control Panel access is not required) can set the cookie via the license-shun endpoint and transplant the signed envelope into the redirect parameter; on a successful login, Craft validates the signature and renders the authenticated bytes as an unsandboxed Twig template, where Twig's map filter accepts a string callback and allows PHP system() to execute arbitrary operating-system commands as the web-server user. Exploitation requires an account using password authentication without active 2FA, the default request configuration, and availability of PHP system(). The issue is fixed in 4.18.6 and 5.10.13.
Technical POC Analysis
Note on identifiers: the supplied advisory (GHSA-5r92-75j8-c534, reporter "Crypto-Cat", Report ID 1590) lists "CVE ID - No known CVE".
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Craft CMS versions 4.8.0 through 4.18.5 and 5.0.0 through 5.10.12 are affected by a high-severity remote code execution vulnerability that lets a non-administrator account holder run operating-system commands as the web-server user. This puts organizations running these versions at risk of full application and data compromise, and leadership should prioritize immediate remediation because a low-privileged account can escalate to server-level control. No public exploit code is identified at time of analysis, but the impact and required account access make urgent action necessary.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Craft CMS versions 3.x through 5.x contain a critical remote code execution vulnerability (CVSS 10.0) that allows unauth
Craft CMS stores arbitrary content provided by unauthenticated users in session files. Rated medium severity (CVSS 6.9),
Craft CMS is a platform for creating digital experiences. Rated critical severity (CVSS 9.8), this vulnerability is remo
Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Rated critical sev
Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. Rated crit
The SEOmatic component before 3.3.0 for Craft CMS allows Server-Side Template Injection that leads to RCE via malformed
RCE in Craft CMS before 4.17.0-beta.1/5.9.0-beta.1 via template injection for authenticated admins. PoC and patch availa
Authenticated remote code execution in Craft CMS versions 5.0.0-RC1 through 5.8.20 and 4.0.0-RC1 through 4.16.16 lets an
SQL injection in Craft CMS 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21 allows authenticated Control Panel use
An issue found in CraftCMS v.3.8.1 allows a remote attacker to execute arbitrary code via a crafted script to the Sectio
Craft CMS through 3.7.36 allows a remote unauthenticated attacker, who knows at least one valid username, to reset the a
Craft CMS 2.6.3000 allows remote attackers to execute arbitrary PHP code by using the "Assets->Upload files" screen and
EUVD-2026-81292
GHSA-24f9-r76v-62p8
NVD
CVE.org
EPSS
VulDB
Exploit-DB