{"id":"CVE-2026-119419","state":"PUBLISHED","title":"CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation","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.","publishedAt":"2026-10-30T11:30:50.862Z","updatedAt":"2026-10-30T11:30:50.862Z","severity":{"score":9.2,"label":"Critical","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["cakephp cakephp"],"affected":[{"vendor":"cakephp","product":"cakephp","packageURL":"pkg:composer/cakephp/cakephp","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"5.4.3","versionType":"semver"}],"repo":"https://github.com/cakephp/cakephp"}],"references":["https://github.com/cakephp/cakephp/commit/ae8c354cf825aeb7090ea4b48ce98142446f3ac9","https://github.com/cakephp/cakephp/commit/21951faea40060dcc5cc1da3159056df66816d3c","https://github.com/cakephp/cakephp/commit/d04d342c3d1e0bac7ce7661bc098902cc412e595","https://github.com/cakephp/cakephp/commit/ac07372e6a3045ce2030701a5bc5ed71aa2b4b82","https://github.com/cakephp/cakephp/pull/19726","https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/StringExpression.php#L77","https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/IdentifierExpression.php#L106","https://abraxaslabs.tech/research/cakephp-collate-sqli","https://github.com/cakephp/cakephp","https://www.vulncheck.com/advisories/cakephp-through-5.4.3-sql-injection-via-stringexpression-and-identifierexpression-collation"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-30T11:38:06.457Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119419.json","commit":"caad128d12b89565fbbe034f6027c5d022a3f402","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119419","state":"PUBLISHED","datePublished":"2026-10-30T11:30:50.862Z","dateUpdated":"2026-10-30T11:30:50.862Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-30T02:41:11.857Z"},"containers":{"cna":{"title":"CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"cakephp","product":"cakephp","packageURL":"pkg:composer/cakephp/cakephp","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"5.4.3","versionType":"semver"}],"repo":"https://github.com/cakephp/cakephp"}],"references":[{"url":"https://github.com/cakephp/cakephp/commit/ae8c354cf825aeb7090ea4b48ce98142446f3ac9","tags":["patch"]},{"url":"https://github.com/cakephp/cakephp/commit/21951faea40060dcc5cc1da3159056df66816d3c","tags":["patch"]},{"url":"https://github.com/cakephp/cakephp/commit/d04d342c3d1e0bac7ce7661bc098902cc412e595","tags":["patch"]},{"url":"https://github.com/cakephp/cakephp/commit/ac07372e6a3045ce2030701a5bc5ed71aa2b4b82","tags":["patch"]},{"url":"https://github.com/cakephp/cakephp/pull/19726","tags":["patch","issue-tracking"]},{"url":"https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/StringExpression.php#L77","tags":["technical-description"]},{"url":"https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/IdentifierExpression.php#L106","tags":["technical-description"]},{"url":"https://abraxaslabs.tech/research/cakephp-collate-sqli","tags":["third-party-advisory"]},{"url":"https://github.com/cakephp/cakephp","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/cakephp-through-5.4.3-sql-injection-via-stringexpression-and-identifierexpression-collation","name":"VulnCheck Advisory: CakePHP through 5.4.3 SQL Injection via StringExpression and IdentifierExpression Collation","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":9.2,"baseSeverity":"CRITICAL"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-30T11:30:50.862Z"},"datePublic":"2026-10-12T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*","versionEndIncluding":"5.4.3"}]}]}],"credits":[{"lang":"en","value":"Abraxas Labs","type":"finder"},{"lang":"en","value":"Mark Story","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}