{"id":"GHSA-fxf7-vhh8-7vpq","summary":"CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver","details":"### Impact\nThe `FunctionsBuilder::jsonValue($field, $jsonPath)` methods with the Postgres driver is vulnerable to SQL injection if user controlled data is supplied to the `$jsonPath` parameter.\n\n### Patches\n5.1.10, 5.2.15, 5.3.7 \n\n### Workarounds\nDon't provide user controlled data to these functions/parameters.","aliases":["CVE-2026-77635"],"modified":"2026-09-08T21:15:04.950966435Z","published":"2026-09-08T20:56:41Z","database_specific":{"github_reviewed_at":"2026-09-08T20:56:41Z","nvd_published_at":"2026-08-24T21:17:48Z","cwe_ids":["CWE-89"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77635"},{"type":"WEB","url":"https://github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3"},{"type":"WEB","url":"https://github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55"},{"type":"WEB","url":"https://github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f"},{"type":"PACKAGE","url":"https://github.com/cakephp/cakephp"},{"type":"WEB","url":"https://github.com/cakephp/cakephp/releases/tag/5.1.10"},{"type":"WEB","url":"https://github.com/cakephp/cakephp/releases/tag/5.2.15"},{"type":"WEB","url":"https://github.com/cakephp/cakephp/releases/tag/5.3.7"}],"affected":[{"package":{"name":"cakephp/cakephp","ecosystem":"Packagist","purl":"pkg:composer/cakephp/cakephp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"5.3.7"}]}],"versions":["5.3.0","5.3.1","5.3.2","5.3.3","5.3.4","5.3.5","5.3.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-fxf7-vhh8-7vpq/GHSA-fxf7-vhh8-7vpq.json"}},{"package":{"name":"cakephp/cakephp","ecosystem":"Packagist","purl":"pkg:composer/cakephp/cakephp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.2.15"}]}],"versions":["5.2.0","5.2.1","5.2.10","5.2.11","5.2.12","5.2.13","5.2.14","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.2.8","5.2.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-fxf7-vhh8-7vpq/GHSA-fxf7-vhh8-7vpq.json"}},{"package":{"name":"cakephp/cakephp","ecosystem":"Packagist","purl":"pkg:composer/cakephp/cakephp"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.1.0"},{"fixed":"5.1.10"}]}],"versions":["5.1.0","5.1.1","5.1.2","5.1.4","5.1.5","5.1.6","5.1.7","5.1.8","5.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-fxf7-vhh8-7vpq/GHSA-fxf7-vhh8-7vpq.json"}},{"package":{"name":"cakephp/database","ecosystem":"Packagist","purl":"pkg:composer/cakephp/database"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0"},{"fixed":"5.3.7"}]}],"versions":["5.3.0","5.3.2","5.3.3","5.3.4","5.3.5","5.3.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-fxf7-vhh8-7vpq/GHSA-fxf7-vhh8-7vpq.json"}},{"package":{"name":"cakephp/database","ecosystem":"Packagist","purl":"pkg:composer/cakephp/database"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.2.15"}]}],"versions":["5.2.0","5.2.1","5.2.10","5.2.11","5.2.12","5.2.13","5.2.14","5.2.2","5.2.3","5.2.4","5.2.5","5.2.6","5.2.7","5.2.8","5.2.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-fxf7-vhh8-7vpq/GHSA-fxf7-vhh8-7vpq.json"}},{"package":{"name":"cakephp/database","ecosystem":"Packagist","purl":"pkg:composer/cakephp/database"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.1.0"},{"fixed":"5.1.10"}]}],"versions":["5.1.0","5.1.1","5.1.2","5.1.4","5.1.5","5.1.6","5.1.8","5.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-fxf7-vhh8-7vpq/GHSA-fxf7-vhh8-7vpq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/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"}]}