Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

ubuntu логотип

CVE-2023-40581

Опубликовано: 25 сент. 2023
Источник: ubuntu
Приоритет: medium
EPSS Низкий
CVSS3: 8.3

Описание

yt-dlp is a youtube-dl fork with additional features and fixes. yt-dlp allows the user to provide shell command lines to be executed at various stages in its download steps through the --exec flag. This flag allows output template expansion in its argument, so that metadata values may be used in the shell commands. The metadata fields can be combined with the %q conversion, which is intended to quote/escape these values so they can be safely passed to the shell. However, the escaping used for cmd (the shell used by Python's subprocess on Windows) does not properly escape special characters, which can allow for remote code execution if --exec is used directly with maliciously crafted remote data. This vulnerability only impacts yt-dlp on Windows, and the vulnerability is present regardless of whether yt-dlp is run from cmd or from PowerShell. Support for output template expansion in --exec, along with this vulnerable behavior, was added to yt-dlp in version 2021...

РелизСтатусПримечание
bionic

ignored

end of standard support
devel

not-affected

Windows only
esm-apps/jammy

not-affected

Windows only
esm-infra/focal

DNE

focal

DNE

jammy

not-affected

Windows only
lunar

not-affected

Windows only
mantic

not-affected

Windows only
trusty

ignored

end of standard support
upstream

not-affected

debian: Windows-specific

Показывать по

EPSS

Процентиль: 93%
0.09992
Низкий

8.3 High

CVSS3

Связанные уязвимости

CVSS3: 8.3
nvd
больше 2 лет назад

yt-dlp is a youtube-dl fork with additional features and fixes. yt-dlp allows the user to provide shell command lines to be executed at various stages in its download steps through the `--exec` flag. This flag allows output template expansion in its argument, so that metadata values may be used in the shell commands. The metadata fields can be combined with the `%q` conversion, which is intended to quote/escape these values so they can be safely passed to the shell. However, the escaping used for `cmd` (the shell used by Python's `subprocess` on Windows) does not properly escape special characters, which can allow for remote code execution if `--exec` is used directly with maliciously crafted remote data. This vulnerability only impacts `yt-dlp` on Windows, and the vulnerability is present regardless of whether `yt-dlp` is run from `cmd` or from `PowerShell`. Support for output template expansion in `--exec`, along with this vulnerable behavior, was added to `yt-dlp` in version 2021.04

CVSS3: 8.3
debian
больше 2 лет назад

yt-dlp is a youtube-dl fork with additional features and fixes. yt-dlp ...

CVSS3: 8.3
github
больше 2 лет назад

yt-dlp on Windows vulnerable to `--exec` command injection when using `%q`

CVSS3: 8.3
fstec
больше 2 лет назад

Уязвимость утилиты загрузки аудио и видео yt-dlp, существующая из-за непринятия мер по нейтрализации специальных элементов, используемых в команде операционной системы, позволяющая нарушителю оказать воздействие на конфиденциальность, целостность и доступность защищаемой информации

EPSS

Процентиль: 93%
0.09992
Низкий

8.3 High

CVSS3