Lucene search

K
osvGoogleOSV:GHSA-5MV2-RX3Q-4W2V
HistoryFeb 10, 2022 - 10:21 p.m.

Code injection in Twig

2022-02-1022:21:48
Google
osv.dev
14
twig
sandbox mode
code injection

EPSS

0.019

Percentile

88.6%

Description

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.

Resolution

We now disallow calling non Closure in the sort filter like we already did for some other filters.

Credits

We would like to thank Marlon Starkloff for reporting the issue and Fabien Potencier for fixing the issue.

References