Tóm tắt nhanh
- CVE-2022-23614 là lỗ hổng mức NGHIÊM TRỌNG (CVSS 9.8) ảnh hưởng twig/twig, twig (symfony).
- Xác suất bị khai thác trong 30 ngày tới (EPSS): 8.2%, cao hơn 94.9% các lỗ hổng khác.
- Cách xử lý: cập nhật lên 2.14.11, 3.3.8 hoặc mới hơn.
| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|
| 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
|
Mô tả
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.
Mô tả của NVD
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.
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí