CVE-2026-119419
8.1 HIGHpublic exploit availablePublished 2026-10-30 · Updated 2026-11-04
AI risk analysis
- Summary
- SQL injection in CakePHP via unvalidated collation names passed to StringExpression and IdentifierExpression allows attackers to append arbitrary SQL after the COLLATE clause, affecting all database operations within the connection's privileges.
- Exploitability
- Exploitation requires control over a collation name supplied to StringExpression or IdentifierExpression, with high attack complexity due to the need to craft valid yet malicious collation values that bypass initial parsing.
- Blast radius
- Successful exploitation grants full database access (read, modify, delete) for the application's database user, potentially compromising all data and enabling lateral movement if credentials are reused.
- Detection
- Monitor database query logs for unexpected syntax after COLLATE clauses (e.g., trailing semicolons, UNION, SELECT, or comment sequences like -- or /*) originating from application-layer SQL generation; also watch for anomalous collation values in HTTP request parameters if user-controlled input reaches the expression constructors.
- Prioritized remediation
- Upgrade to CakePHP 5.4.4 or later, which validates and sanitizes collation names before use in SQL expressions.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
CakePHP through 5.4.3 contains an sql injection vulnerability that allows attackers to inject SQL by supplying unvalidated collation values to StringExpression and IdentifierExpression. Attackers controlling a collation name passed to the constructor or setCollation() can append SQL after the unquoted COLLATE clause, affecting every database driver within the connection's privileges.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Public exploit & PoC references
- https://github.com/cakephp/cakephp
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/IdentifierExpression.php#L106
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/StringExpression.php#L77
- https://github.com/cakephp/cakephp/commit/21951faea40060dcc5cc1da3159056df66816d3c
- https://github.com/cakephp/cakephp/commit/ac07372e6a3045ce2030701a5bc5ed71aa2b4b82
- https://github.com/cakephp/cakephp/commit/ae8c354cf825aeb7090ea4b48ce98142446f3ac9
- https://github.com/cakephp/cakephp/commit/d04d342c3d1e0bac7ce7661bc098902cc412e595
- https://github.com/cakephp/cakephp/pull/19726
All references
- https://abraxaslabs.tech/research/cakephp-collate-sqli
- https://github.com/cakephp/cakephp
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/IdentifierExpression.php#L106
- https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/StringExpression.php#L77
- https://github.com/cakephp/cakephp/commit/21951faea40060dcc5cc1da3159056df66816d3c
- https://github.com/cakephp/cakephp/commit/ac07372e6a3045ce2030701a5bc5ed71aa2b4b82
- https://github.com/cakephp/cakephp/commit/ae8c354cf825aeb7090ea4b48ce98142446f3ac9
- https://github.com/cakephp/cakephp/commit/d04d342c3d1e0bac7ce7661bc098902cc412e595
- https://github.com/cakephp/cakephp/pull/19726
- https://www.vulncheck.com/advisories/cakephp-through-5.4.3-sql-injection-via-stringexpression-and-identifierexpression-collation
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-121265
- HIGHCVE-2015-20122
- HIGHCVE-2026-100683PoC
- HIGHCVE-2026-102796
- HIGHCVE-2026-105076
- CRITICALCVE-2026-105889
- CRITICALCVE-2026-107083PoC
- CRITICALCVE-2026-108497
Related by shared AI tags and CWE weakness class. Browse the full archive.