cakephp/database
Affected
- introduced
3.0.0, fixed4.5.12(ecosystem)
Fixed versions
4.5.12
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-79752
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.
Critical Basis: The source's own band: CRITICAL
3.0.0, fixed 4.5.12 (ecosystem)4.5.12
The export has no generic command for this ecosystem.
4.6.0, fixed 4.6.5 (ecosystem)4.6.5
The export has no generic command for this ecosystem.
5.0.0, fixed 5.1.9 (ecosystem)5.1.9
The export has no generic command for this ecosystem.
5.2.0, fixed 5.2.14 (ecosystem)5.2.14
The export has no generic command for this ecosystem.
5.3.0, fixed 5.3.7 (ecosystem)5.3.7
The export has no generic command for this ecosystem.
0, fixed 4.5.12 (ecosystem)4.5.12
The export has no generic command for this ecosystem.
4.6.0, fixed 4.6.5 (ecosystem)4.6.5
The export has no generic command for this ecosystem.
5.0.0, fixed 5.1.9 (ecosystem)5.1.9
The export has no generic command for this ecosystem.
5.2.0, fixed 5.2.14 (ecosystem)5.2.14
The export has no generic command for this ecosystem.
5.3.0, fixed 5.3.7 (ecosystem)5.3.7
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0