CVE-2026-119419

CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation

Published Oct 30, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

CakePHP through version 5.4.3 is vulnerable to a SQL injection flaw that arises when unvalidated collation values are supplied to the StringExpression and IdentifierExpression classes. By controlling a collation name passed to the constructor or setCollation(), an attacker can append arbitrary SQL after the unquoted COLLATE clause. This enables the execution of malicious commands on the database, potentially allowing data theft, modification, or other destructive operations within the privileges granted to the database connection. The flaw represents a classic CWE‑89 injection weakness.

Affected Systems

Affected systems include the CakePHP framework version 5.0 through 5.4.3. The issue affects all database drivers supported by the framework because it involves the generic StringExpression and IdentifierExpression classes used to build queries. Users running any of these versions with any database connection (MySQL, PostgreSQL, SQL Server, etc.) are impacted until the fix is applied.

Risk and Exploitability

The CVSS score of 9.2 classifies this vulnerability as critical. EPSS is not available, so the exploitation probability is unknown, but the severity and wide impact range suggest attackers could exploit it remotely. Likely attack vector is through normal application use—any user input that leads to a custom collation name being passed to the framework’s query builder. If the database account has elevated privileges, the attacker could gain full database compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade CakePHP to the latest release that includes the fix (e.g., 5.4.4 or later).
  • If an upgrade cannot be performed immediately, patch the framework’s source by modifying the StringExpression and IdentifierExpression constructors/​setCollation() methods to validate collation names against an approved whitelist, rejecting any untrusted input.
  • Deploy the database connection with the least‑privilege principle: use a database user that has only the necessary read/write permissions for the application, preventing injected statements from affecting critical database objects.

Generated by OpenCVE AI on October 30, 2026 at 12:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation
First Time appeared Cakephp
Cakephp cakephp
Weaknesses CWE-89
CPEs cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*
Vendors & Products Cakephp
Cakephp cakephp
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 3:04 PM
Reserved
Oct 30, 2026, 2:41 AM
Status
Deferred
Published
Oct 30, 2026, 12:16 PM
Modified
Nov 4, 2026, 3:17 PM