PT-2023-9233 · Process+1 · Process+1

Ry0Tak

·

Published

2023-09-25

·

Updated

2026-01-05

·

CVE-2024-22423

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions yt-dlp versions 2021.04.11 through 2024.04.08 process versions prior to 1.6.19.0
Description The issue exists due to insufficient escaping of special characters, allowing for remote code execution when using the --exec flag with output template expansion. This vulnerability is present in yt-dlp on Windows and can be exploited when --exec is used directly with maliciously crafted remote data. The estimated number of potentially affected devices is not specified.
Technical details about exploitation include:
  • API Endpoints: Not applicable
  • Vulnerable Parameters or Variables: --exec flag, %q conversion
  • Function Names: Not applicable
Recommendations For yt-dlp versions 2021.04.11 through 2024.04.08, upgrade to version 2024.04.09 as soon as possible. For Windows users who are not able to upgrade, avoid using any output template expansion in --exec other than {} (filepath); if expansion in --exec is needed, verify the fields you are using do not contain ", | or &; and/or instead of using --exec, write the info json and load the fields from it instead. For process versions prior to 1.6.19.0, update to version 1.6.19.0 or later to fix the command injection vulnerability.

Exploit

Fix

OS Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2024-05183
BIT-NODE-2024-3566
BIT-NODE-MIN-2024-3566
CVE-2024-22423
GHSA-42H4-V29R-42QG
GHSA-HJQ6-52GW-2G7P
HSEC-2024-0003
OPENSUSE-SU-2024:13854-1

Affected Products

Process
Yt-Dlp