ZeroHour

CVE-2026-92593

large

Authenticated Server-Side Template Injection RCE in Craft CMS 5.10.0-5.10.12

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

Craft CMS 5.10.0 through 5.10.12 contain an incomplete fix for CVE-2026-55794: the control-panel redirect handler (Controller::getPostedRedirectUrl()) still feeds attacker-influenced input into the unsandboxed View::renderObjectTemplate() sink. Because Craft/Yii HMAC tokens are not bound to a parameter name, and the same fix commit introduced a self-signing oracle in Cp::elementLabelHtml(), an authenticated low-privilege control-panel user with edit rights on just a single element type can mint a valid token over attacker-controlled Twig for the returnUrl parameter and replay it as the redirect POST parameter. Reaching the unsandboxed sink yields server-side template injection that executes arbitrary PHP code, resulting in full server compromise. Any Craft CMS deployment running 5.10.0-5.10.12 is affected, including sites where untrusted users hold edit permission on any one element type. No public proof-of-concept is known and the flaw is not in CISA's KEV, so exploitation has not been confirmed.

What to do: Upgrade to Craft CMS 5.10.13 or later immediately. Until patched, restrict control-panel access to trusted users and review accounts with element edit permissions, since edit rights on a single element type are sufficient to exploit. Check logs for unusual returnUrl/redirect token replay and inspect the host for signs of unexpected PHP execution or webshells.

Affected
Craft (Pixel & Tonic) Craft CMS5.10.0 through 5.10.12 (fixed in 5.10.13)
Estimated exposure
large≈10,000-50,000 sites (estimated subset of the ~70k+ publicly tracked Craft CMS installations running 5.10.0-5.10.12) — Public web-technology trackers show on the order of 70,000+ live Craft CMS sites, and the narrow 5.10.0-5.10.12 release window should capture a fraction of that installed base — likely in the low tens of thousands — though no per-version…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Craft CMS versions 5.10.0 through 5.10.12 contain an incomplete fix for CVE-2026-55794: the Controller::getPostedRedirectUrl() -> View::renderObjectTemplate() sink remained unsandboxed, and the same fix commit added a self-signing oracle in Cp::elementLabelHtml(). Because Craft/Yii HMAC tokens are not bound to a parameter name, an authenticated low-privilege control panel user with edit rights on a single element type can mint a token over attacker-controlled Twig for the returnUrl parameter and replay it as the redirect POST parameter, reaching the unsandboxed sink and achieving server-side template injection that executes arbitrary PHP code (full server compromise). The issue is fixed in 5.10.13.

Weakness
CWE-94
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.