Описание
Stack overflow in phar with circular symlinks
phar_get_link_source() in ext/phar/util.c recursively follows symbolic links in phar archives without any depth limit or cycle detection. A crafted tar-based phar archive containing circular symlinks causes unbounded recursion, exhausting the C stack and crashing the PHP process.
https://github.com/php/php-src/blob/cbc0489126a7682796aad1e5fb4e51de74af162c/ext/phar/util.c#L60-L82
Credit
Calvin Young - eWalker Consulting (HK) Limited Enoch Chow - Isomorph Cyber
Пакеты
php
>=8.2.0, <8.2.33
8.2.33
php
>=8.3.0, <8.3.33
8.3.33
php
>=8.4.0, <8.4.24
8.4.24
php
>=8.5.0, <8.5.9
8.5.9
Связанные уязвимости
(Circular symbolic links in phar archives could lead to unbounded recur ...)
Circular symbolic links in phar archives could lead to unbounded recursion, exhausting the C stack and crashing the PHP process, in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.
Circular symbolic links in phar archives could lead to unbounded recur ...