Skip to main content

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

CRITICAL

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

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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.49%). Schedule for your next planned update.

Does your project use an affected cakephp/cakephp version?

Paste your composer.lock to check it for CVE-2026-77635 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

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 (79 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/cakephp to 5.1.10 or later
composer require "cakephp/cakephp:^5.1.10"
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.3.7 or later
composer require "cakephp/database:^5.3.7"
Composer
Update cakephp/database to 5.2.15 or later
composer require "cakephp/database:^5.2.15"
Composer
Update cakephp/database to 5.1.10 or later
composer require "cakephp/database:^5.1.10"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: Packagist (2).

PackageFixed In
cakephp/cakephp Packagist · Affected: 5.1.0, 5.1.1, 5.1.2, 5.1.4 (+5 more)5.1.10
cakephp/cakephp Packagist · Affected: 5.2.0, 5.2.1, 5.2.10, 5.2.11 (+11 more)5.2.15
cakephp/cakephp Packagist · Affected: 5.3.0, 5.3.1, 5.3.2, 5.3.3 (+3 more)5.3.7
cakephp/database Packagist · Affected: 5.3.0, 5.3.2, 5.3.3, 5.3.4 (+2 more)5.3.7
cakephp/database Packagist · Affected: 5.2.0, 5.2.1, 5.2.10, 5.2.11 (+11 more)5.2.15
cakephp/database Packagist · Affected: 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/cakephp and cakephp/database. It has a 0.5% probability of exploitation within 30 days (EPSS score). 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

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.49%
EPSS percentile: 35.2

This is a below-median EPSS score — only 35.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-fxf7-vhh8-7vpq

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock