CVEscakephpCVE-2026-119419Published Oct 30, 11:30 · Updated Oct 30, 11:30 UTC
8.1
HighCVSS 3.1 · from VulnCheck
CVE-2026-119419

CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation

cakephp · SQL injection · CWE-89
Affectedcakephp
FixA patch is linked in the references.
PublishedOct 30, 11:30 · VulnCheck
ScoredOct 30 · 8.1 · VulnCheck
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:08 UTC

What we know

No known exploitation. CISA KEV, checked 22:08 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
It only works under certain conditions, which makes it harder to pull off. CVSS: high attack complexity.
A successful attack can read and change data and take the service down. CVSS: high impact on confidentiality, integrity and availability.

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.

From VulnCheck

Affected and fixed versions

ProductAffectedFixed incakephpup to 5.4.3–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/cakephp/cakephp/commit/ae8c354cf825aeb7090ea4b48ce98142446f3ac9 · github.compatchgithub.com/cakephp/cakephp/commit/21951faea40060dcc5cc1da3159056df66816d3c · github.compatchgithub.com/cakephp/cakephp/commit/d04d342c3d1e0bac7ce7661bc098902cc412e595 · github.compatchgithub.com/cakephp/cakephp/commit/ac07372e6a3045ce2030701a5bc5ed71aa2b4b82 · github.compatchgithub.com/cakephp/cakephp/pull/19726 · github.compatchissue trackinggithub.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/StringExpression.php#L77 · github.comtechnical descriptiongithub.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/IdentifierExpression.php#L106 · github.comtechnical descriptionabraxaslabs.tech/research/cakephp-collate-sqli · abraxaslabs.techthird party advisorygithub.com/cakephp/cakephp · github.comproductVulnCheck Advisory: CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation · vulncheck.comthird party advisory

Other CVEs in cakephp

All 10 →
8.1CakePHP through 5.4.3 SQL Injection via WindowExpression range() and frame() · CVE-2026-119418Oct 303.7CakePHP through 5.4.3 Email Header Injection via Bare CR/LF in SmtpTransport and MailTransport · CVE-2026-119417Oct 304.8CakePHP through 5.4.3 Cookie Leakage via HTTP Client CookieCollection Domain Matching · CVE-2026-119416Oct 30