{"id":"CVE-2026-77635","published":"2026-08-24T20:30:34Z","modified":"2026-08-25T13:31:40Z","title":"CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver","vendor":"cakephp","product":"cakephp","tier":"tail","description":{"text":"CakePHP is a rapid development framework for PHP. Prior to versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00493,"percentile":0.43237,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.1.10","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.2.15","tags":["x_refsource_MISC"]},{"url":"https://github.com/cakephp/cakephp/releases/tag/5.3.7","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":8.65},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.44}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-09-19","earliestUrl":"https://github.com/abraxas/CVE-2026-77635","repos":[{"name":"abraxas/CVE-2026-77635","url":"https://github.com/abraxas/CVE-2026-77635","stars":0,"created":"2026-09-19"}]},"first":{"date":"2026-09-19","source":"PoC-in-GitHub","url":"https://github.com/abraxas/CVE-2026-77635"},"provenance":"source"},"vendorSlug":"cakephp","affectedVersions":[{"vendor":"cakephp","product":"cakephp","versions":[">= 5.1.0, < 5.1.10",">= 5.2.0, < 5.2.15",">= 5.3.0, < 5.3.7"]},{"vendor":"cakephp","product":"cakephp/database","versions":[">= 5.1.0, < 5.1.10",">= 5.2.0, < 5.2.15",">= 5.3.0, < 5.3.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-25T13:31:32.774379Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"cakephp/cakephp","vulnerableRanges":[">=5.3.0, <5.3.7",">=5.2.0, <5.2.15",">=5.1.0, <5.1.10"],"patched":["5.3.7","5.2.15","5.1.10"],"from":["GHSA-fxf7-vhh8-7vpq"],"provenance":"source"},{"ecosystem":"Packagist","package":"cakephp/database","vulnerableRanges":[">=5.3.0, <5.3.7",">=5.2.0, <5.2.15",">=5.1.0, <5.1.10"],"patched":["5.3.7","5.2.15","5.1.10"],"from":["GHSA-fxf7-vhh8-7vpq"],"provenance":"source"}],"summary":{"text":"CakePHP's FunctionsBuilder::jsonValue() method, when used with the PostgresDriver, fails to neutralise special SQL elements in the jsonPath parameter, creating an SQL injection flaw in the framework's query-building component. An attacker who can supply data that reaches the jsonPath parameter over the network, without needing authentication or any user interaction, can inject arbitrary SQL into queries run against the database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:18Z"},"euvd":{"id":"EUVD-2026-65121","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23643","published":"2026-01-16","fixed":"5.3.1","kev":false},{"cve":"CVE-2026-48820","published":"2026-06-17","fixed":"5.3.6","kev":false,"link":{"from":"CVE-2026-48820","to":"CVE-2026-77635","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.3.6","toFixed":"5.3.7","daysApart":68}]}},{"cve":"CVE-2026-77634","published":"2026-08-24","fixed":"5.3.7","kev":false,"link":{"from":"CVE-2026-77634","to":"CVE-2026-77635","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:cakephp/cakephp","fromFixed":"5.2.14","toFixed":"5.2.15","daysApart":0}]}},{"cve":"CVE-2026-77635","published":"2026-08-24","fixed":"5.3.7","kev":false},{"cve":"CVE-2026-79752","published":"2026-09-17","fixed":"5.3.7","kev":false}],"package":"Packagist:cakephp/cakephp"}}