Skip to content
OpenAdvisories
Critical · 9.2 Public exploit CVE-2026-77635 EUVD-2026-65121GHSA-fxf7-vhh8-7vpq

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

Published Aug 24, 2026 · Updated Aug 25, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
cakephp cakephp >= 5.1.0, < 5.1.10, >= 5.2.0, < 5.2.15, >= 5.3.0, < 5.3.7 —
cakephp cakephp/database >= 5.1.0, < 5.1.10, >= 5.2.0, < 5.2.15, >= 5.3.0, < 5.3.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 cakephp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS cakephp No fix yet —
Ubuntu 20.04 LTS cakephp No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS cakephp No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • abraxas/CVE-2026-77635 ★ 0 · Sep 19, 2026

    CVE-2026-77635 - CakePHP - Critical 9.2 - Unauthenticated GET /?path= - SQL Injection

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist cakephp/cakephp >= 5.3.0, < 5.3.7 5.3.7 GHSA-fxf7-vhh8-7vpq
Packagist cakephp/cakephp >= 5.2.0, < 5.2.15 5.2.15 GHSA-fxf7-vhh8-7vpq
Packagist cakephp/cakephp >= 5.1.0, < 5.1.10 5.1.10 GHSA-fxf7-vhh8-7vpq
Packagist cakephp/database >= 5.3.0, < 5.3.7 5.3.7 GHSA-fxf7-vhh8-7vpq
Packagist cakephp/database >= 5.2.0, < 5.2.15 5.2.15 GHSA-fxf7-vhh8-7vpq
Packagist cakephp/database >= 5.1.0, < 5.1.10 5.1.10 GHSA-fxf7-vhh8-7vpq

References