{"id":"CVE-2026-119418","summary":"CakePHP through 5.4.3 SQL Injection via WindowExpression range() and frame()","details":"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.","modified":"2026-11-01T02:47:29.859588630Z","published":"2026-10-30T11:30:50.158Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119418.json"},"references":[{"type":"ADVISORY","url":"https://abraxaslabs.tech/research/cakephp-window-sqli"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119418.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-119418"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/cakephp-through-5.4.3-sql-injection-via-windowexpression-range-and-frame"},{"type":"FIX","url":"https://github.com/cakephp/cakephp/commit/18de3e4cdabba049269421bf43c2ccd1a7451565"},{"type":"FIX","url":"https://github.com/cakephp/cakephp/commit/3c1183fb62274c8a1c2780b2d3cc40f40cf31f1f"},{"type":"FIX","url":"https://github.com/cakephp/cakephp/commit/a5ca1748dcdb432631fc2760f898576043ce3df9"},{"type":"FIX","url":"https://github.com/cakephp/cakephp/pull/19735"},{"type":"PACKAGE","url":"https://github.com/cakephp/cakephp"},{"type":"ARTICLE","url":"https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/WindowExpression.php#L152"},{"type":"ARTICLE","url":"https://github.com/cakephp/cakephp/blob/6f3dd91371ac0698b64024ddb21d57def9fbba91/src/Database/Expression/WindowExpression.php#L330"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cakephp/cakephp","events":[{"introduced":"0"},{"fixed":"18de3e4cdabba049269421bf43c2ccd1a7451565"},{"fixed":"a5ca1748dcdb432631fc2760f898576043ce3df9"},{"fixed":"3c1183fb62274c8a1c2780b2d3cc40f40cf31f1f"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"5.4.3"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"18de3e4cdabba049269421bf43c2ccd1a7451565"}]},{"range":[{"fixed":"a5ca1748dcdb432631fc2760f898576043ce3df9"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"3c1183fb62274c8a1c2780b2d3cc40f40cf31f1f"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["5.2.15","5.3.7","5.4.3","5.4.2","5.4.1","5.4.0","5.2.14","5.2.13","5.3.6","5.1.6","5.2.12","5.3.5","5.3.4","5.3.3","5.3.2","5.2.11","5.3.1","5.3.0","5.3.0-RC2","5.2.10","5.3.0-RC1","5.2.9","5.2.8","5.2.7","5.2.6","5.2.5","5.2.4","5.2.3","5.2.2","5.2.1","5.2.0","5.1.5","5.1.4","5.1.2","5.1.1","5.1.0","5.0.11","5.0.10","5.0.9","5.0.8","5.0.7","5.0.6","5.0.5","5.0.4","5.0.3","5.0.2","5.0.1","5.0.0","5.0.0-RC2","5.0.0-RC1","5.0.0-beta2","5.0.0-beta1","4.0.0","4.2.0-RC1","4.2.0-beta1","4.1.0-RC2","4.1.0-RC1","4.1.0-beta1","4.0.0-RC2","4.0.0-RC1","4.0.0-beta4","4.0.0-beta3","4.0.0-beta2","4.0.0-beta1","4.0.0-alpha2","4.0.0-alpha1","3.5.15","3.6.0","3.5.14","3.5.13","3.5.12","3.5.11","3.5.10","3.5.9","3.5.8","3.5.7","3.5.6","3.5.5","3.5.4","3.5.3","3.5.2","3.5.1","3.5.0","3.5.0-RC2","3.5.0-RC1","3.4.0-RC4","3.4.0-RC3","3.4.0-RC2","3.4.0-RC1","3.4.0-beta4","3.4.0-beta3","3.4.0-beta2","3.4.0-beta1","3.3.0-RC1","3.3.0-beta3","3.3.0-beta2","3.3.0-beta","3.1.9","3.2.0","3.1.8","3.1.7","3.1.6","3.1.4","3.1.5","3.1.3","3.1.2","3.1.1","3.1.0","3.0.13","3.0.12","3.0.11","3.0.10","3.0.9","3.0.8","3.0.7","3.0.6","3.0.5","3.0.4","3.0.3","3.0.2","3.0.1","3.0.0","3.0.0-RC2","3.0.0-RC1","3.0.0-beta3","3.0.0-beta2","3.0.0-beta1","3.0.0-alpha2","3.0.0-alpha1","3.0.0-dev3","3.0.0-dev2","3.0.0-dev1","2.2.0-RC1","2.2.0-beta","2.1.0","2.1.0-RC","2.1.0-beta","2.1.0-alpha","2.0.0-RC1","2.0.0-beta","2.0.0-alpha","2.0.0-dev","1.3.0-RC2","1.3.0-RC1","1.3.0-beta","1.3.0-alpha","1.3-dev","1.2.1","1.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-119418.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}