Database: CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection (CVE-2026-79752)
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.
AI Analysis
Technical Summary
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.
Database: CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection (CVE-2026-79752)
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.