CakePHP
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.5.12
- >= 4.6.0, < 4.6.5
- >= 5.0.0, < 5.1.9
- >= 5.2.0, < 5.2.14
- >= 5.3.0, < 5.3.7
Fixed in 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
Mitigation
Upgrade cakephp to 4.5.12 or 4.6.5 or 5.1.9 or 5.2.14 or 5.3.7 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 2.2 days after publication; not in CISA KEV. First PoC: abraxas/CVE-2026-79752 (created 19 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| abraxas/CVE-2026-79752 | 19 Sep 2026 +2.2 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
type=INTEGER)) FROM notes UNION SELECT body FROM notes --- Ports
- 8088
- Seen in
- 1 repo: abraxas/CVE-2026-79752
- Evidence
- abraxas/CVE-2026-79752/CVE-2026-79752-Abraxas-Labs.py:270 abraxas/CVE-2026-79752/CVE-2026-79752-Abraxas-Labs.py:275-276 abraxas/CVE-2026-79752/CVE-2026-79752-Abraxas-Labs.py:236
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?type=INTEGER\)\) FROM notes UNION SELECT body FROM notes --
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8088] (msg:"GG PoC-Monitor CVE-2026-79752 cakephp cakephp exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"type=INTEGER)) FROM notes UNION SELECT body FROM notes --"; reference:url,poc.griffinguard.io/cve/CVE-2026-79752; classtype:web-application-attack; sid:9082938; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: cakephp cakephp exploit attempt (CVE-2026-79752)
id: gg-pocmon-cve-2026-79752-9082938
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-79752. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-79752
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- 'type=INTEGER)) FROM notes UNION SELECT body FROM notes --'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.79752