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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.62%). Schedule for your next planned update.

Does your project use an affected cakephp/cakephp version?

Paste your composer.lock to check it for CVE-2026-79752 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

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 (70 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/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/cakephp to 4.5.12 or later
composer require "cakephp/cakephp:^4.5.12"
Composer
Update cakephp/database to 5.3.7 or later
composer require "cakephp/database:^5.3.7"
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/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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (10)

Affects 1 ecosystem: Packagist (2).

PackageFixed In
cakephp/cakephp Packagist · Affected: 4.6.0, 4.6.1, 4.6.2, 4.6.3 (+1 more)4.6.5
cakephp/cakephp Packagist · Affected: 5.3.0, 5.3.1, 5.3.2, 5.3.3 (+3 more)5.3.7
cakephp/cakephp Packagist · Affected: 5.0.0, 5.0.1, 5.0.10, 5.0.11 (+18 more)5.1.9
cakephp/cakephp Packagist · Affected: 5.2.0, 5.2.1, 5.2.10, 5.2.11 (+10 more)5.2.14
cakephp/cakephp Packagist · Affected: 2.10.0, 2.10.0-RC1, 2.10.1, 2.10.10 (+386 more)4.5.12
cakephp/database Packagist · Affected: 5.3.0, 5.3.2, 5.3.3, 5.3.4 (+2 more)5.3.7
cakephp/database Packagist · Affected: 5.0.0, 5.0.10, 5.0.11, 5.0.2 (+16 more)5.1.9
cakephp/database Packagist · Affected: 4.6.0, 4.6.1, 4.6.2, 4.6.34.6.5
cakephp/database Packagist · Affected: 5.2.0, 5.2.1, 5.2.10, 5.2.11 (+10 more)5.2.14
cakephp/database Packagist · Affected: 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. It has a 0.6% probability of exploitation within 30 days (EPSS score). 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

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.62%
EPSS percentile: 44.1

This is a below-median EPSS score — only 44.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-vjqc-q4mp-2rvf

Related CVEs

  • CVE-2023-22727
    CRITICAL

    CakePHP Database\\Query::offset() and limit() methods are vulnerable to SQL injection

  • CVE-2026-77635
    CRITICAL

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

  • CVE-2026-63412
    CRITICAL

    Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

  • CVE-2026-63413
    CRITICAL

    Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock