Loading...
Skip to main content

CVE-2026-79752 — CakePHP: Multiple methods in cakephp/cakephp —...

CRITICAL

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

Published September 17, 2026Updated September 24, 2026Source: osv

Summary

### 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.

Advisory Timeline

  • First published September 17, 2026 (25 days ago).
  • Last revised September 24, 2026 — 7 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update cakephp/cakephp to 4.6.5 or later
composer require "cakephp/cakephp:^4.6.5"
Composer
Update cakephp/database to 5.3.7 or later
composer require "cakephp/database:^5.3.7"
Composer
Update cakephp/cakephp to 5.3.7 or later
composer require "cakephp/cakephp:^5.3.7"
Composer
Update cakephp/cakephp to 5.1.9 or later
composer require "cakephp/cakephp:^5.1.9"
Composer
Update cakephp/cakephp to 5.2.14 or later
composer require "cakephp/cakephp:^5.2.14"
Composer
Update cakephp/database to 5.1.9 or later
composer require "cakephp/database:^5.1.9"
Composer
Update cakephp/database to 4.6.5 or later
composer require "cakephp/database:^4.6.5"
Composer
Update cakephp/cakephp to 4.5.12 or later
composer require "cakephp/cakephp:^4.5.12"
Composer
Update cakephp/database to 5.2.14 or later
composer require "cakephp/database:^5.2.14"
Composer
Update cakephp/database to 4.5.12 or later
composer require "cakephp/database:^4.5.12"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (10)

Affects 1 ecosystem: packagist (2).

PackageEcosystemAffectedFixed In
cakephp/cakephp
packagist
4.6.0, 4.6.1, 4.6.2, 4.6.3 (+1 more)4.6.5
cakephp/database
packagist
5.3.0, 5.3.2, 5.3.3, 5.3.4 (+2 more)5.3.7
cakephp/cakephp
packagist
5.3.0, 5.3.1, 5.3.2, 5.3.3 (+3 more)5.3.7
cakephp/cakephp
packagist
5.0.0, 5.0.1, 5.0.10, 5.0.11 (+18 more)5.1.9
cakephp/cakephp
packagist
5.2.0, 5.2.1, 5.2.10, 5.2.11 (+10 more)5.2.14
cakephp/database
packagist
5.0.0, 5.0.10, 5.0.11, 5.0.2 (+16 more)5.1.9
cakephp/database
packagist
4.6.0, 4.6.1, 4.6.2, 4.6.34.6.5
cakephp/cakephp
packagist
2.10.0, 2.10.0-RC1, 2.10.1, 2.10.10 (+386 more)4.5.12
cakephp/database
packagist
5.2.0, 5.2.1, 5.2.10, 5.2.11 (+10 more)5.2.14
cakephp/database
packagist
3.0.0, 3.0.1, 3.0.10, 3.0.12 (+267 more)4.5.12

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

Frequently Asked Questions

What is CVE-2026-79752?
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
How do I check if my project is affected by CVE-2026-79752?
CVE-2026-79752 affects cakephp/cakephp and cakephp/database. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-79752 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.3

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-vjqc-q4mp-2rvf

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies