SQL injection in Craft CMS - #VU159597
Published: November 6, 2026
Vulnerability details
The vulnerability allows an authenticated control panel user to infer database information through blind SQL injection in Craft CMS.
The vulnerability exists due to insufficient validation of criteria passed to getNext() and getPrev() when rendering attacker-controlled relational conditions in the Twig sandbox. An authenticated control panel user can supply SQL expressions in query criteria and obtain a conditional oracle under the Craft database account, even with the sandbox enabled.