CVE-2026-92592 Craft CMS before 4.18.6 Remote Code Execution via signed cookie
Authenticated users can execute arbitrary OS commands via Twig injection in Craft CMS by exploiting a cookie signature reuse flaw.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-92592?
CVE-2026-92592 is a high-severity code injection vulnerability in craftcms cms, published on 16 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-1336
Which versions are affected by CVE-2026-92592?
How do I fix CVE-2026-92592?
No fix has been published for CVE-2026-92592 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-92592 being exploited?
There is no known exploitation of CVE-2026-92592 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-24f9-r76v-62p8, GHSA-5r92-75j8-c534.