Loading...
Skip to main content

CVE-2026-77635 — Vulnerability in cakephp/database — CVE Details

CRITICAL

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

Published September 8, 2026Updated September 8, 2026Source: osv

Summary

### Impact The `FunctionsBuilder::jsonValue($field, $jsonPath)` methods with the Postgres driver is vulnerable to SQL injection if user controlled data is supplied to the `$jsonPath` parameter. ### Patches 5.1.10, 5.2.15, 5.3.7 ### Workarounds Don't provide user controlled data to these functions/parameters.

Advisory Timeline

  • First published September 8, 2026 (34 days ago).
  • Last revised September 8, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update cakephp/database to 5.3.7 or later
composer require "cakephp/database:^5.3.7"
Composer
Update cakephp/cakephp to 5.1.10 or later
composer require "cakephp/cakephp:^5.1.10"
Composer
Update cakephp/database to 5.2.15 or later
composer require "cakephp/database:^5.2.15"
Composer
Update cakephp/cakephp to 5.2.15 or later
composer require "cakephp/cakephp:^5.2.15"
Composer
Update cakephp/cakephp to 5.3.7 or later
composer require "cakephp/cakephp:^5.3.7"
Composer
Update cakephp/database to 5.1.10 or later
composer require "cakephp/database:^5.1.10"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: packagist (2).

PackageEcosystemAffectedFixed In
cakephp/database
packagist
5.3.0, 5.3.2, 5.3.3, 5.3.4 (+2 more)5.3.7
cakephp/cakephp
packagist
5.1.0, 5.1.1, 5.1.2, 5.1.4 (+5 more)5.1.10
cakephp/database
packagist
5.2.0, 5.2.1, 5.2.10, 5.2.11 (+11 more)5.2.15
cakephp/cakephp
packagist
5.2.0, 5.2.1, 5.2.10, 5.2.11 (+11 more)5.2.15
cakephp/cakephp
packagist
5.3.0, 5.3.1, 5.3.2, 5.3.3 (+3 more)5.3.7
cakephp/database
packagist
5.1.0, 5.1.1, 5.1.2, 5.1.4 (+4 more)5.1.10

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2026-77635?
CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.9/10).
How do I check if my project is affected by CVE-2026-77635?
CVE-2026-77635 affects cakephp/database and cakephp/cakephp. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-77635 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.9

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-fxf7-vhh8-7vpq

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies