Remote Code Execution in Craft CMS via HMAC Signature Misuse
Craft CMS versions 4.8.0 through 4.18.5 and 5.0.0 through 5.10.12 contain a critical vulnerability allowing authenticated users to achieve remote code execution by injecting malicious payloads into improperly validated redirect parameters.
CVE search metadata
CVE search record: CVE-2026-92592. Severity: high. CVSS: 8.8. KEV: no. Product: Craft CMS (4.8.0-4.18.5, 5.0.0-5.10.12), Craft CMS (< 5.11.0). Brief: Remote Code Execution in Craft CMS via HMAC Signature Misuse. Brief link: https://feed.craftedsignal.io/briefs/2026-09-craft-cms-rce/
What's new
- 1. added coverage for Craft CMS (< 5.11.0) Sep 16, 23:53 via nvd
Craft CMS versions 4.8.0 through 4.18.5 and 5.0.0 through 5.10.12 are susceptible to a remote code execution vulnerability identified as CVE-2026-92592. The issue stems from the application using the same securityKey to sign both internal license-shun cookies and redirect parameters without binding the HMAC signature to a specific purpose.
An authenticated user, even without Control Panel administrative privileges, can manipulate the license-shun cookie and transplant the resulting signed data into a redirect parameter. When the user logs in, Craft CMS validates the signature and subsequently renders the attacker-controlled bytes as an unsandboxed Twig template. By leveraging Twig's map filter, the attacker can invoke PHP's system() function to execute arbitrary commands on the underlying host as the web-server user. Exploitation requires an authenticated account without active 2FA. The vendor has addressed this in Craft CMS versions 4.18.6 and 5.10.13.
Attack Chain
- Attacker authenticates to the target Craft CMS instance using standard credentials (2FA must be disabled).
- Attacker interacts with the license-shun endpoint to set a malicious, attacker-controlled cookie.
- Attacker extracts the signed signature from the license-shun cookie value.
- Attacker crafts a redirect parameter containing an embedded Twig template payload utilizing the map filter and PHP system() function.
- Attacker replaces the signature of the redirect parameter with the one harvested from the license-shun cookie.
- Attacker triggers a login or redirect flow that processes the malicious parameter.
- Craft CMS validates the HMAC signature, treats the parameter as trusted, and renders the content via the Twig engine.
- Twig engine executes the PHP system() function, resulting in arbitrary code execution on the server.
Impact
Successful exploitation results in full remote code execution under the privileges of the web-server process. This allows attackers to gain persistent access, exfiltrate sensitive site data, modify content, or pivot into the underlying server network. The vulnerability impacts all environments running the affected versions that allow non-admin authentication.
Recommendation
- Upgrade to Craft CMS 4.18.6 or 5.10.13 immediately to remediate CVE-2026-92592.
- Enforce multi-factor authentication (MFA) for all user accounts to mitigate the prerequisite of successful authentication for this attack.
- Audit webserver access logs for anomalous POST requests to the license-shun endpoint or unusual GET requests containing serialized data or Twig syntax within redirect parameters.
- Restrict access to the Craft CMS control panel and related administrative endpoints to authorized IP ranges.
Immediate actions
Upgrade all Craft CMS installations to 4.18.6 or 5.10.13
Mitigations
Enable mandatory MFA for all Craft CMS users
CVE-2026-92592