Description
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.
Published: 2026-08-24
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: SQL injection
Action: Immediate Patch
AI Analysis

Impact

FunctionsBuilder::jsonValue() with the PostgresDriver in CakePHP contains a flaw that allows an attacker to inject arbitrary SQL when a crafted jsonPath parameter is supplied. The injected query can read, modify or delete data in the underlying Postgres database, giving the attacker potential full database compromise. This flaw directly exploits a weakness classified as CWE‑89 and results in a confidentiality and integrity breach if executed.

Affected Systems

Vulnerable systems include any PHP application built with CakePHP version 5.1 prior to 5.1.10, 5.2 prior to 5.2.15, or 5.3 prior to 5.3.7 that uses the PostgresDriver component. The libraries affected are the cakephp/cakephp and cakephp/cakephp/database packages, as listed by the CNA vendor/product names in the advisory.

Risk and Exploitability

The CVSS score of 9.2 highlights critical severity; the lack of an EPSS score means no public exploitation data is reported yet, but the flaw is listed as not KEV. The attack could be performed remotely via a manipulated web request that delivers a malicious jsonPath value. Successful exploitation requires the application to accept the jsonPath parameter from user input and to use the vulnerable FunctionsBuilder::jsonValue() method. Given the high severity, the potential impact is full data compromise on affected installations.

Generated by OpenCVE AI on August 24, 2026 at 21:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CakePHP to at least the patched versions 5.1.10, 5.2.15, or 5.3.7, depending on the release line used.
  • Verify that the application uses the PostgresDriver and that no untrusted input is passed to the jsonPath parameter; apply input validation or whitelisting if upgrade is delayed.
  • If an upgrade cannot be performed immediately, restrict or disable use of FunctionsBuilder::jsonValue() in the application flow and ensure all database queries are properly parameterized.

Generated by OpenCVE AI on August 24, 2026 at 21:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fxf7-vhh8-7vpq CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
History

Fri, 28 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Cakephp
Cakephp cakephp
Cakephp cakephp/database
Vendors & Products Cakephp
Cakephp cakephp
Cakephp cakephp/database

Tue, 25 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 24 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description 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.
Title CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 9.2, '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'}


Subscriptions

Cakephp Cakephp Cakephp/database
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T13:31:40.225Z

Reserved: 2026-08-20T20:52:01.928Z

Link: CVE-2026-77635

cve-icon Vulnrichment

Updated: 2026-08-25T13:31:35.486Z

cve-icon NVD

Status : Deferred

Published: 2026-08-24T21:17:48.457

Modified: 2026-09-09T21:06:39.057

Link: CVE-2026-77635

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T20:38:41Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')