CakePHP
CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.1.0, < 5.1.10
- >= 5.2.0, < 5.2.15
- >= 5.3.0, < 5.3.7
Fixed in 5.1.10, 5.2.15, 5.3.7
- >= 5.1.0, < 5.1.10
- >= 5.2.0, < 5.2.15
- >= 5.3.0, < 5.3.7
Fixed in 5.1.10, 5.2.15, 5.3.7
Mitigation
Upgrade cakephp to 5.1.10 or 5.2.15 or 5.3.7 or later.
Upgrade cakephp/database to 5.1.10 or 5.2.15 or 5.3.7 or later.
References
- Vendor advisory github.com/cakephp/cakephp/security/advisories…
- Patch github.com/cakephp/cakephp/commit/138f2f614865…
- Patch github.com/cakephp/cakephp/commit/489a40fb7c6e…
4 more
- Patch github.com/cakephp/cakephp/commit/9f1ad970a3b7…
- Release notes github.com/cakephp/cakephp/releases/tag/5.1.10
- Release notes github.com/cakephp/cakephp/releases/tag/5.2.15
- Release notes github.com/cakephp/cakephp/releases/tag/5.3.7
Timeline
Days relative to CVE publicationFirst public PoC 26 days after publication; not in CISA KEV. First PoC: abraxas/CVE-2026-77635 (created 19 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| abraxas/CVE-2026-77635 | 19 Sep 2026 +26 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /
- Query
path=$.x')) FROM notes UNION SELECT to_jsonb(secret) FROM notes --- Ports
- 8088
- Seen in
- 1 repo: abraxas/CVE-2026-77635
- Evidence
- abraxas/CVE-2026-77635/CVE-2026-77635-Abraxas-Labs.py:269 abraxas/CVE-2026-77635/CVE-2026-77635-Abraxas-Labs.py:274-275 abraxas/CVE-2026-77635/CVE-2026-77635-Abraxas-Labs.py:233
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?path=\$\.x'\)\) FROM notes UNION SELECT to_jsonb\(secret\) FROM notes --
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8088] (msg:"GG PoC-Monitor CVE-2026-77635 cakephp cakephp exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"path=$.x')) FROM notes UNION SELECT to_jsonb(secret) FROM notes --"; reference:url,poc.griffinguard.io/cve/CVE-2026-77635; classtype:web-application-attack; sid:9354072; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: cakephp cakephp exploit attempt (CVE-2026-77635)
id: gg-pocmon-cve-2026-77635-9354072
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-77635. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-77635
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'path=$.x'')) FROM notes UNION SELECT to_jsonb(secret) FROM notes --'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.77635