{"id":"CVE-2026-119419","kind":"vulnerability","aliases":["CVE-2026-119419"],"related":[],"title":"CakePHP: unvalidated collation names let attackers inject SQL","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.","summary":"CakePHP through 5.4.3 passes collation names from StringExpression and IdentifierExpression into SQL without validation. An attacker who controls a collation name can append SQL after the COLLATE clause and run it with the database privileges of the application.","severity":"critical","cvss":9.2,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cakephp","php","runtime","web-apps"],"not_affected_if":["hard-coded-collation","no-user-input-in-queries"],"how_to_check":"- Check the installed CakePHP version with `composer show cakephp/cakephp`\n- Look for code that passes user-supplied values to `setCollation()` or to the `StringExpression` or `IdentifierExpression` constructors","fix":"- CakePHP: unknown; the sources do not name a fixed version","status":"open","published_at":"2026-10-30T12:16:38+00:00","first_seen_at":"2026-10-30T12:30:25+00:00","triaged_at":"2026-10-30T12:31:55+00:00","updated_at":"2026-10-30T12:31:55+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-10-30T12:31:55Z","model":"claude-haiku-5-5","output":{"fix":"- CakePHP: unknown; the sources do not name a fixed version","reach":"internet","title":"CakePHP: unvalidated collation names let attackers inject SQL","impact":"high","summary":"CakePHP through 5.4.3 passes collation names from StringExpression and IdentifierExpression into SQL without validation. An attacker who controls a collation name can append SQL after the COLLATE clause and run it with the database privileges of the application.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["cakephp","php","web-apps"],"confidence":0.6,"fix_status":"unknown","needs_auth":"unknown","worst_case":"Attacker runs arbitrary SQL with the application's database privileges","analyst_note":"Confirm the fixed CakePHP version and whether user input reaches collation values in typical apps; NVD entry is the only source given.","how_to_check":"- Check the installed CakePHP version with `composer show cakephp/cakephp`\n- Look for code that passes user-supplied values to `setCollation()` or to the `StringExpression` or `IdentifierExpression` constructors\n- unknown whether the sources list other checks","plain_action":"","needs_analyst":true,"not_affected_if":["hard-coded-collation","no-user-input-in-queries"],"who_is_affected":"Applications that use CakePHP 5.4.3 or earlier and build collation names from user input. Applications that only use hard-coded collation values are not exposed through this path. The sources do not say whether other code paths are affected.","user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000698,"input_tokens":4154,"output_tokens":566,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-119419':11A,14A '-2026':10A,13A '5.4.3':23B,61C 'affect':101C 'allow':68C 'app':20B 'append':43B,94C 'applic':58B 'attack':6A,36B,69C,82C 'cakephp':1A,15B,21B,59C 'claus':48B,100C 'collat':3A,25B,40B,47B,76C,85C,99C 'connect':107C 'constructor':90C 'contain':62C 'control':38B,83C 'cve':9A,12A 'databas':54B,103C 'driver':104C 'everi':102C 'identifierexpress':30B,81C 'inject':7A,65C,71C 'let':5A 'name':4A,26B,41B,86C 'pass':24B,87C 'php':16B 'privileg':55B,109C 'run':50B 'runtim':17B 'setcol':92C 'sql':8A,32B,44B,64C,72C,95C 'stringexpress':28B,79C 'suppli':74C 'unquot':98C 'unvalid':2A,75C 'valid':34B 'valu':77C 'vulner':66C 'web':19B 'web-app':18B 'within':105C 'without':33B","nicknames":[],"mitigations":[],"who_affected":"Applications that use CakePHP 5.4.3 or earlier and build collation names from user input. Applications that only use hard-coded collation values are not exposed through this path. The sources do not say whether other code paths are affected.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"first_public_at":"2026-10-30T12:16:38+00:00","kev":null,"cvss_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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-119419","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119419","severity":null,"published_at":"2026-10-30T12:16:38+00:00","modified_at":"2026-10-30T12:16:38+00:00","first_seen_at":"2026-10-30T12:30:25+00:00","fetched_at":"2026-10-30T12:30:25+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}