| Package | Affected versions | Patched versions |
|---|---|---|
| cakephp/cakephp | ≥ 4.6.0, < 4.6.5≥ 5.0.0, < 5.1.9≥ 5.2.0, < 5.2.14≥ 5.3.0, < 5.3.7< 4.5.12 | 4.6.55.1.95.2.145.3.74.5.12 |
| cakephp/database | ≥ 3.0.0, < 4.5.12≥ 4.6.0, < 4.6.5≥ 5.0.0, < 5.1.9≥ 5.2.0, < 5.2.14≥ 5.3.0, < 5.3.7 | 4.5.124.6.55.1.95.2.145.3.7 |
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.
5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes
Don't provide user controlled data to these functions/parameters.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free