CVE-2026-77635: CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
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.
Security readout for executives and security teams
Plain-English summary
A CakePHP database helper can turn attacker-controlled JSON path input into SQL when an application uses PostgreSQL. Successful abuse could expose or alter database data and may disrupt availability. The flaw is critical, but exposure depends on applications passing untrusted data into this specific parameter.
Executive priority
Begin immediate exposure triage. Prioritize upgrades for externally reachable applications satisfying all three conditions: an affected version, PostgreSQL, and user-controlled jsonPath input. Patch confirmed exposures urgently because successful injection could seriously affect database confidentiality and integrity.
Technical view
CVE-2026-77635 is CWE-89 SQL injection in FunctionsBuilder::jsonValue() with PostgresDriver. It affects CakePHP 5.1.0–5.1.9, 5.2.0–5.2.14, and 5.3.0–5.3.6 when user-controlled data reaches jsonPath. Versions 5.1.10, 5.2.15, and 5.3.7 contain the fix.
Likely exposure
Likely exposed systems are affected CakePHP applications using PostgreSQL and this helper where request-derived or otherwise user-controlled values reach jsonPath. Installations using another database driver, avoiding this function, or preventing user control of jsonPath are not shown affected by the supplied evidence.
Exploitation context
The CVSS 4.0 score is 9.2, with network access, low complexity, no required privileges, and no user interaction, although an attack prerequisite exists. The bundle marks KEV false, and no supplied source reports active exploitation. Exploit prevalence is therefore unknown.
Researcher notes
The vulnerable behavior is specifically tied to jsonPath handling in FunctionsBuilder::jsonValue() with PostgresDriver; the record does not establish that every CakePHP deployment is vulnerable. It lists both cakephp/cakephp and cakephp/database, supplies three fixing commits, and provides no CPE identifiers or evidence of exploitation in the wild.
Mitigation direction
Upgrade CakePHP to 5.1.10, 5.2.15, or 5.3.7, matching the deployed release line.
Until upgraded, prevent user-controlled data from reaching jsonPath in FunctionsBuilder::jsonValue().
Review the CakePHP advisory and applicable release notes before production rollout.
Validation and detection
Inventory CakePHP and cakephp/database versions from deployment manifests and resolved dependencies.
Confirm whether the application uses PostgresDriver with FunctionsBuilder::jsonValue().
Trace jsonPath inputs and determine whether any are user controlled.
After upgrading, verify the runtime uses a fixed version and regression-test affected application paths.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-89: Database access and collection lookup
Injection into data stores can inform collection, data access, and exfiltration detection reviews. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references database injection or access, so collection and exfiltration review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
8Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.