PT-2023-25392 · Curl+4 · Curl+4

Coletdjnz

·

Published

2023-07-06

·

Updated

2024-06-15

·

CVE-2023-35934

CVSS v3.1

6.1

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions yt-dlp versions prior to 2023.07.06 yt-dlp nightly versions prior to 2023.07.06.185519
Description During file downloads, yt-dlp or the external downloaders that yt-dlp employs may leak cookies on HTTP redirects to a different host, or leak them when the host for download fragments differs from their parent manifest's host. This occurs because all cookies are passed by yt-dlp to the file downloader as a Cookie header, losing their scope. The issue is present in all native and external downloaders, except for curl and httpie (version 3.1.0 or later). As a result, the downloader or external tool may indiscriminately send cookies with requests to domains or paths for which the cookies are not scoped.
Recommendations For versions prior to 2023.07.06, upgrade to version 2023.07.06 or later. For nightly versions prior to 2023.07.06.185519, upgrade to version 2023.07.06.185519 or later. As a temporary workaround, consider avoiding the use of cookies and user authentication methods. Alternatively, avoid using --load-info-json. If authentication is necessary, verify the integrity of download links from unknown sources in a browser (including redirects) before passing them to yt-dlp. Use curl as an external downloader, since it is not impacted. Avoid fragmented formats such as HLS/m3u8, DASH/mpd, and ISM.

Exploit

Fix

Information Disclosure

Open Redirect

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

Weakness Enumeration

Related Identifiers

ALT-PU-2023-8428
ALT-PU-2023-8429
ALT-PU-2023-8432
CVE-2023-35934
GHSA-V8MC-9377-RWJJ
OPENSUSE-SU-2023:0374-1
OPENSUSE-SU-2024:13142-1

Affected Products

Alt Linux
Debian
Curl
Httpie
Yt-Dlp