When in a sandbox mode, the arrow parameter of the sort filter must be a closure to avoid attackers being able to run arbitrary PHP functions.
We now disallow calling non Closure in the sort filter like we already did for some other filters.
We would like to thank Marlon Starkloff for reporting the issue and Fabien Potencier for fixing the issue.
{
"severity": "HIGH",
"github_reviewed": true,
"cwe_ids": [
"CWE-74",
"CWE-94"
],
"nvd_published_at": "2022-02-04T23:15:00Z",
"github_reviewed_at": "2022-02-07T16:43:09Z"
}