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.
{
"cwe_ids": [
"CWE-89"
],
"github_reviewed": true,
"github_reviewed_at": "2026-09-17T20:28:14Z",
"nvd_published_at": "2026-09-17T15:16:51Z",
"severity": "CRITICAL"
}