CVE-2026-77635

CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver

Published Aug 24, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Type Values Removed Values Added
First Time appeared Cakephp
Cakephp cakephp
Cakephp cakephp/database
Vendors & Products Cakephp
Cakephp cakephp
Cakephp cakephp/database
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 25, 2026, 1:31 PM
Reserved
Aug 20, 2026, 8:52 PM
Status
Deferred
Published
Aug 24, 2026, 9:17 PM
Modified
Oct 12, 2026, 9:10 PM