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.
Published: 2026-10-30
Score: 9.2 Critical
EPSS: n/a
KEV: No
Impact: SQL injection leading to database compromise
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:50.862Z

Reserved: 2026-10-30T02:41:11.857Z

Link: CVE-2026-119419

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:38.550

Modified: 2026-10-30T12:16:38.550

Link: CVE-2026-119419

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:00:15Z

Weaknesses
  • CWE-89

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