Kurz gesagt
- CVE-2022-23614 ist eine Schwachstelle (KRITISCH (CVSS 9.8)) in twig/twig, twig (symfony).
- Wahrscheinlichkeit einer Ausnutzung in den nächsten 30 Tagen (EPSS): 8.2%, höher als bei 94.9% aller Schwachstellen.
- Abhilfe: auf 2.14.11, 3.3.8 oder neuer aktualisieren.
| Package | Affected versions | Patched versions |
|---|
| twig/twig Packagist | ≥ 2.0.0, < 2.14.11≥ 3.0.0, < 3.3.8
| 2.14.113.3.8
|
| twig | ≥ 2.0.0, < 2.14.11≥ 3.0.0, < 3.3.8
| 2.14.113.3.8
|
Description
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.
NVD description
Twig is an open source template language for PHP. 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. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free