Every CVE Search/ Get API key

CVE-2026-79752

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

9.2 CriticalPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.62%Up 0.2 points since Sep 18, 2026
90%50%10%1%

What each source reports

CVE List Score used 9.2

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.

Record
CVE-2026-79752
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-89
Updated
2026-11-02
EUVDEUVD-2026-81673 9.2

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.

Record
EUVD-2026-81673
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-vjqc-q4mp-2rvf 9.2

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

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.

Record
GHSA-vjqc-q4mp-2rvf
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-89
Updated
2026-11-02
NVD 9.2

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.

Record
CVE-2026-79752
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-89
Updated
2026-11-02
OSV 9.2

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.

Record
CVE-2026-79752
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-89
Updated
2026-11-02
OSVGHSA-vjqc-q4mp-2rvf 9.2

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

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.

Record
GHSA-vjqc-q4mp-2rvf
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-89
Updated
2026-11-02
OSVUBUNTU-CVE-2026-79752 9.2

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.

Record
UBUNTU-CVE-2026-79752
CVSS 4.0
9.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Updated
2026-11-03
OSVCLSA-2026-1791987574 No score

TuxCare security update for cakephp/cakephp (3 CVEs)

TuxCare rebuilt cakephp/cakephp to address 3 CVEs. Fixed in 5.0.11-p1+tuxcare.

Record
CLSA-2026-1791987574
Updated
2026-11-02
OSVCLSA-2026-1791988278 No score

TuxCare security update for cakephp/cakephp (3 CVEs)

TuxCare rebuilt cakephp/cakephp to address 3 CVEs. Fixed in 4.4.18-p1+tuxcare.

Record
CLSA-2026-1791988278
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
cakephp/database
Packagist
4.6.0 up to 4.6.5
4.6.5
cakephp/database
Packagist
5.0.0 up to 5.1.9
5.1.9
cakephp/database
Packagist
5.2.0 up to 5.2.14
5.2.14
cakephp/database
Packagist
5.3.0 up to 5.3.7
5.3.7
cakephp/cakephp
Packagist
before 4.5.12
4.5.12
cakephp/cakephp
Packagist
4.6.0 up to 4.6.5
4.6.5
cakephp/cakephp
Packagist
5.0.0 up to 5.1.9
5.1.9
cakephp/cakephp
Packagist
5.2.0 up to 5.2.14
5.2.14
cakephp/cakephp
Packagist
5.3.0 up to 5.3.7
5.3.7
cakephp/database
Packagist
3.0.0 up to 4.5.12
4.5.12
Show 15 moreShow less
Affected packages
PackageAffectedFixed
cakephp/cakephp
TuxCare:Packagist
From an advisory covering 3 CVEs
5.0.11 up to 5.0.11-p1+tuxcare
5.0.11-p1+tuxcare
cakephp/cakephp
TuxCare:Packagist
From an advisory covering 3 CVEs
4.4.18 up to 4.4.18-p1+tuxcare
4.4.18-p1+tuxcare
cakephp/database
Packagist
3.0.0 up to 4.5.12, plus listed versions
3.0.13.0.103.0.123.0.133.0.15
Show 45 moreShow less
3.0.183.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.93.1.03.1.0-RC13.1.0-beta3.1.0-beta23.1.13.1.103.1.133.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.93.10.03.10.0-RC13.10.13.10.33.10.43.10.53.2.03.2.0-RC13.2.13.2.103.2.113.2.123.2.133.2.143.2.23.2.33.2.43.2.53.2.63.2.73.2.8
4.5.12
cakephp/database
Packagist
4.6.0 up to 4.6.5, plus listed versions
4.6.14.6.24.6.3
4.6.5
cakephp/database
Packagist
5.0.0 up to 5.1.9, plus listed versions
5.0.105.0.115.0.25.0.35.0.4
Show 14 moreShow less
5.0.55.0.65.0.75.0.85.0.95.1.05.1.0-RC15.1.0-RC25.1.15.1.25.1.45.1.55.1.65.1.8
5.1.9
cakephp/database
Packagist
5.2.0 up to 5.2.14, plus listed versions
5.2.15.2.105.2.115.2.125.2.13
Show 8 moreShow less
5.2.25.2.35.2.45.2.55.2.65.2.75.2.85.2.9
5.2.14
cakephp/database
Packagist
5.3.0 up to 5.3.7, plus listed versions
5.3.25.3.35.3.45.3.55.3.6
5.3.7
cakephp/cakephp
Packagist
before 4.5.12, plus listed versions
2.10.02.10.0-RC12.10.12.10.102.10.11
Show 45 moreShow less
2.10.122.10.132.10.142.10.152.10.162.10.172.10.182.10.192.10.22.10.202.10.212.10.222.10.232.10.242.10.32.10.42.10.52.10.62.10.72.10.82.10.92.4.102.4.52.4.62.4.72.4.82.4.92.5.02.5.0-RC12.5.0-RC22.5.0-beta2.5.12.5.22.5.32.5.42.5.52.5.62.5.72.5.82.5.92.6.02.6.0-RC12.6.0-beta2.6.12.6.10
4.5.12
cakephp/cakephp
Packagist
4.6.0 up to 4.6.5, plus listed versions
4.6.14.6.24.6.34.6.4
4.6.5
cakephp/cakephp
Packagist
5.0.0 up to 5.1.9, plus listed versions
5.0.15.0.105.0.115.0.25.0.3
Show 16 moreShow less
5.0.45.0.55.0.65.0.75.0.85.0.95.1.05.1.0-RC15.1.0-RC25.1.15.1.25.1.45.1.55.1.65.1.75.1.8
5.1.9
cakephp/cakephp
Packagist
5.2.0 up to 5.2.14, plus listed versions
5.2.15.2.105.2.115.2.125.2.13
Show 8 moreShow less
5.2.25.2.35.2.45.2.55.2.65.2.75.2.85.2.9
5.2.14
cakephp/cakephp
Packagist
5.3.0 up to 5.3.7, plus listed versions
5.3.15.3.25.3.35.3.45.3.55.3.6
5.3.7
cakephp
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
2.7.2-12.8.0-12.8.0-1ubuntu0.1~esm1
None known
cakephp
Ubuntu:20.04:LTS
All versions, plus listed versions
2.10.11-2
None known
cakephp
Ubuntu:22.04:LTS
All versions, plus listed versions
2.10.11-2.12.10.24-1
None known

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubabraxas/CVE-2026-797522026-09-19

History

History
RecordedChangedSources
affected
affected, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-79752 is a critical vulnerability (CVSS 9.2) in Cakephp, published September 17, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.62%, the 50th percentile. Fixed in cakephp/database 4.6.5.

References

Show 15 moreShow less
This page doesn't list everything

Left out here: 560 versions. The JSON record has them.

MoveEnter Open