Security Digest · Vulnerability record
CVE-2026-79752: CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
CakePHP is a rapid development framework for PHP.
CVSS 9.2 Critical EPSS 0.6% · p49
Should you act?
Critical and remotely reachable
No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.
- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.6%, percentile 49: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 49% of all scored CVEs (low). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes
cakephp/database(Composer (PHP)) >= 4.6.0, < 4.6.5, fixed in 4.6.5;cakephp/database(Composer (PHP)) >= 5.0.0, < 5.1.9, fixed in 5.1.9;cakephp/database(Composer (PHP)) >= 5.2.0, < 5.2.14, fixed in 5.2.14;cakephp/database(Composer (PHP)) >= 5.3.0, < 5.3.7, fixed in 5.3.7. Check your lockfile, including transitive dependencies.
What it is
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.
From the GitHub advisory
Impact The FunctionsBuilder::cast($field, $dataType), extract($part, $expr), datePart($part, $expr), dateAdd($expr, $value, $unit) methods are vulnerable to SQL injection if user controlled data is supplied to the ($dataType / $part / $unit) parameters.
Patches 5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes
Workarounds Don't provide user controlled data to these functions/parameters.
Weakness type: CWE-89.
Product: cakephp/database (Composer (PHP)) · Assigned by: GitHub_M · Published: 2026-09-17
Affected and fixed versions
| Ecosystem | Package | Vulnerable | First fixed |
|---|---|---|---|
| Composer (PHP) | cakephp/database | >= 4.6.0, < 4.6.5 | 4.6.5 |
| Composer (PHP) | cakephp/database | >= 5.0.0, < 5.1.9 | 5.1.9 |
| Composer (PHP) | cakephp/database | >= 5.2.0, < 5.2.14 | 5.2.14 |
| Composer (PHP) | cakephp/database | >= 5.3.0, < 5.3.7 | 5.3.7 |
| Composer (PHP) | cakephp/cakephp | < 4.5.12 | 4.5.12 |
| Composer (PHP) | cakephp/cakephp | >= 4.6.0, < 4.6.5 | 4.6.5 |
| Composer (PHP) | cakephp/cakephp | >= 5.0.0, < 5.1.9 | 5.1.9 |
| Composer (PHP) | cakephp/cakephp | >= 5.2.0, < 5.2.14 | 5.2.14 |
| Composer (PHP) | cakephp/cakephp | >= 5.3.0, < 5.3.7 | 5.3.7 |
| Composer (PHP) | cakephp/database | >= 3.0.0, < 4.5.12 | 4.5.12 |
| Vendor | Product | Affected versions (per CVE record) |
|---|---|---|
| cakephp | cakephp | < 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 |
Severity scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_M | 4.0 | 9.2 Critical | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | 4.0 | 9.2 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
- Attack vector: network (remotely reachable)
- Attack complexity: low
- Attack requirements: present (depends on deployment conditions)
- Privileges required: none (no login)
- User interaction: none
CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.
Exploitation and urgency
- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none, automatable no, technical impact total.
- FIRST EPSS (model of 2026-10-21): 0.62% probability of exploitation activity in the next 30 days; percentile 49.
Timeline
- — CVE record last updated
- — CVE record published by GitHub_M
- — GitHub-reviewed advisory GHSA-vjqc-q4mp-2rvf published (critical)
Sources and references
Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.
Vulnerability records
- GitHub Advisory GHSA-vjqc-q4mp-2rvf github.com
- CVE.org record CVE-2026-79752 cve.org
- NVD entry CVE-2026-79752 nvd.nist.gov
Other references from the CVE record and advisory
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
Critical Composer (PHP) advisories · Today’s Security Digest