Описание
Уязвимость модуля Node.js для обработки tar архивов Node-tar связана с недостатками ограничения имени пути к каталогу. Эксплуатация уязвимости может позволить нарушителю создать, перезаписать произвольные файлы и выполнить произвольный код с помощью специально созданного архива
Вендор
Наименование ПО
Версия ПО
Тип ПО
Операционные системы и аппаратные платформы
Уровень опасности уязвимости
Возможные меры по устранению уязвимости
Статус уязвимости
Наличие эксплойта
Информация об устранении
Ссылки на источники
Идентификаторы других систем описаний уязвимостей
- CVE
- SB
EPSS
8.6 High
CVSS3
7.2 High
CVSS2
Связанные уязвимости
ALT-PU-2022-1798: package `npm` update to version 6.14.16-alt1
ALT-PU-2021-2921: package `npm` update to version 6.14.15-alt1
ALT-PU-2021-2920: package `node` update to version 14.18.0-alt1
ALT-PU-2021-3615: package `node` update to version 14.18.2-alt1
The npm package "tar" (aka node-tar) before versions 4.4.18, 5.0.10, and 6.1.9 has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. node-tar aims to guarantee that any file whose location would be modified by a symbolic link is not extracted. This is, in part, achieved by ensuring that extracted directories are not symlinks. Additionally, in order to prevent unnecessary stat calls to determine whether a given path is a directory, paths are cached when directories are created. This logic was insufficient when extracting tar files that contained both a directory and a symlink with names containing unicode values that normalized to the same value. Additionally, on Windows systems, long path portions would resolve to the same file system entities as their 8.3 "short path" counterparts. A specially crafted tar archive could thus include a directory with one form of the path, followed by a symbolic link with a different string that resolves to the same file...
EPSS
8.6 High
CVSS3
7.2 High
CVSS2