CakePHP: SQL injection via collation values in StringExpression and IdentifierExpression
CakePHP through 5.4.3 does not validate collation names passed to StringExpression and IdentifierExpression. An attacker who controls a collation value can append SQL after the unquoted COLLATE clause, and the injected SQL runs with the database connection's privileges. The attack requires an application that forwards user-controlled collation or locale values into these classes; a default installation does not expose this path.
Cake Software Foundation · CakePHP
