{"id":"CVE-2026-119418","kind":"vulnerability","aliases":["CVE-2026-119418"],"related":[],"title":"CakePHP: unvalidated window frame values let attackers inject SQL","description":"CakePHP through 5.4.3 contains an sql injection vulnerability that allows attackers to inject SQL by supplying unvalidated frame offsets and directions to WindowExpression::range() and frame(). Attackers can pass crafted values through applications forwarding user input into the OVER clause to execute SQL with the database connection's privileges.","summary":"CakePHP through 5.4.3 does not validate frame offsets and directions passed to WindowExpression::range() and frame(). An attacker who can pass crafted values through user input into the OVER clause can run SQL with the database connection's privileges.","severity":"critical","cvss":9.2,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cakephp","php","runtime","sql","web-apps"],"not_affected_if":["cakephp-above-5.4.3","no-user-input-in-window-frames"],"how_to_check":"- Check the CakePHP version in `composer.lock` or with `bin/cake --version`.\n- Search application code for calls to `WindowExpression::range()` or `frame()` that take values from user input.","fix":"- CakePHP: fixed version not stated in the sources; move to a release later than `5.4.3`.","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: fixed version not stated in the sources; move to a release later than `5.4.3`.","reach":"internet","title":"CakePHP: unvalidated window frame values let attackers inject SQL","impact":"high","summary":"CakePHP through 5.4.3 does not validate frame offsets and directions passed to WindowExpression::range() and frame(). An attacker who can pass crafted values through user input into the OVER clause can run SQL with the database connection's privileges.","audience":"developers","category":"runtime","nicknames":[],"who_cares":["cakephp","php","sql","web-apps"],"confidence":0.6,"fix_status":"unknown","needs_auth":"unknown","worst_case":"Attacker runs arbitrary SQL with the database connection's privileges.","analyst_note":"Confirm the fixed CakePHP version and whether an exposed endpoint is needed; the NVD entry gives no fix version or product ranges.","how_to_check":"- Check the CakePHP version in `composer.lock` or with `bin/cake --version`.\n- Search application code for calls to `WindowExpression::range()` or `frame()` that take values from user input.","plain_action":"","needs_analyst":true,"not_affected_if":["no-user-input-in-window-frames","cakephp-above-5.4.3"],"who_is_affected":"Applications built on CakePHP 5.4.3 or earlier that forward user-supplied input into window function frame clauses (OVER ... RANGE/frame) are exposed. Applications that do not use window expressions with user input, or that hard-code frame values, are less likely to be affected. unknown whether other code paths are reachable.","user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000716,"input_tokens":4142,"output_tokens":603,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-119418':12A,15A '-2026':11A,14A '5.4.3':25B,64C 'allow':71C 'app':22B 'applic':94C 'attack':7A,40B,72C,88C 'cakephp':1A,16B,23B,62C 'claus':52B,101C 'connect':59B,108C 'contain':65C 'craft':44B,91C 'cve':10A,13A 'databas':58B,107C 'direct':32B,82C 'execut':103C 'forward':95C 'frame':4A,29B,38B,79C,87C 'inject':8A,68C,74C 'input':48B,97C 'let':6A 'offset':30B,80C 'pass':33B,43B,90C 'php':17B 'privileg':61B,110C 'rang':36B,85C 'run':54B 'runtim':18B 'sql':9A,19B,55B,67C,75C,104C 'suppli':77C 'unvalid':2A,78C 'user':47B,96C 'valid':28B 'valu':5A,45B,92C 'vulner':69C 'web':21B 'web-app':20B 'window':3A 'windowexpress':35B,84C","nicknames":[],"mitigations":[],"who_affected":"Applications built on CakePHP 5.4.3 or earlier that forward user-supplied input into window function frame clauses (OVER ... RANGE/frame) are exposed. Applications that do not use window expressions with user input, or that hard-code frame values, are less likely to be affected. unknown whether other code paths are reachable.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"developers","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-119418","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119418","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"}