Skip to main content

Database: CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection (CVE-2026-79752)

0
Critical
Published: 09/17/2026 (09/17/2026, 20:28:14 UTC)
Source: GCVE Database
Product: cakephp/database

Description

Multiple methods in CakePHP's FunctionsBuilder component are vulnerable to SQL injection when user-controlled data is passed to specific parameters. The affected methods are cast(), extract(), datePart(), and dateAdd(). This vulnerability allows attackers to inject malicious SQL code via the $dataType, $part, or $unit parameters. Fixed versions have been released across multiple CakePHP versions. Users are advised not to supply user-controlled data to these parameters as a workaround.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Packagistghsa
cakephp/database
Affected versions
>=5.3.0 <5.3.7
Packagistghsa
cakephp/cakephp
Affected versions
>=5.3.0 <5.3.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/18/2026, 01:27:25 UTC

Technical Analysis

The FunctionsBuilder methods cast($field, $dataType), extract($part, $expr), datePart($part, $expr), and dateAdd($expr, $value, $unit) in CakePHP's database package are vulnerable to SQL injection if untrusted input is provided to the $dataType, $part, or $unit parameters. This vulnerability is tracked as CVE-2026-79752 and affects multiple versions of CakePHP prior to the patched releases 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7. The vulnerability allows an attacker to execute arbitrary SQL commands by injecting malicious input into these parameters.

Potential Impact

Successful exploitation of this vulnerability could allow an attacker to perform SQL injection attacks, potentially leading to unauthorized data access or manipulation. The CVSS 4.0 vector indicates network attack vector, low attack complexity, partial attack traceability, no privileges required, no user interaction, and high impacts on confidentiality, integrity, and availability. This classifies the vulnerability as critical.

Mitigation Recommendations

Official patches are available in CakePHP versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7. Users should upgrade to these versions to remediate the vulnerability. As a temporary workaround, do not pass user-controlled data to the $dataType, $part, or $unit parameters of the affected FunctionsBuilder methods.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-vjqc-q4mp-2rvf
Osv Schema Version
1.4.0
Aliases
["CVE-2026-79752"]
Ecosystems
["Packagist"]
Database Specific Severity
CRITICAL
Cvss Version
4.0

Threat ID: 6aac8df155bf5e2cf54901eb

Added to database: 09/18/2026, 01:03:45 UTC

Last enriched: 09/18/2026, 01:27:25 UTC

Last updated: 09/18/2026, 03:08:00 UTC

Views: 21

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses