CVE-2024-22423
Last modified
CVE-2024-22423 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. yt-dlp is a youtube-dl fork with additional features and fixes. The patch that addressed CVE-2023-40581 attempted to prevent RCE when using `--exec` with `%q` by replacing double quotes with two double quotes. EPSS estimates a 1.25% chance of exploitation in the next 30 days.
Description
yt-dlp is a youtube-dl fork with additional features and fixes. The patch that addressed CVE-2023-40581 attempted to prevent RCE when using `--exec` with `%q` by replacing double quotes with two double quotes. However, this escaping is not sufficient, and still allows expansion of environment variables. Support for output template expansion in `--exec`, along with this vulnerable behavior, was added to `yt-dlp` in version 2021.04.11. yt-dlp version 2024.04.09 fixes this issue by properly escaping `%`. It replaces them with `%%cd:~,%`, a variable that expands to nothing, leaving only the leading percent. It is recommended to upgrade yt-dlp to version 2024.04.09 as soon as possible. Also, always be careful when using `--exec`, because while this specific vulnerability has been patched, using unvalidated input in shell commands is inherently dangerous. 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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Yt-Dlp Project | Yt-Dlp | >= 2021.04.11, < 2024.04.09 |
References
- https://github.com/yt-dlp/yt-dlp/releases/tag/2021.04.11Product, Release Notes
- https://github.com/yt-dlp/yt-dlp/releases/tag/2024.04.09Product, Release Notes
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-hjq6-52gw-2g7pExploit, Vendor Advisory
- https://www.kb.cert.org/vuls/id/123335Third Party Advisory
- https://github.com/yt-dlp/yt-dlp/releases/tag/2021.04.11Product, Release Notes
- https://github.com/yt-dlp/yt-dlp/releases/tag/2024.04.09Product, Release Notes
- https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-hjq6-52gw-2g7pExploit, Vendor Advisory
- https://www.kb.cert.org/vuls/id/123335Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-22423?
How severe is CVE-2024-22423?
How do I fix CVE-2024-22423?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-22418Group-Office is an enterprise CRM and groupware tool. Affect…5.4
- CVE-2024-22419Vyper is a Pythonic Smart Contract Language for the Ethereum…9.8
- CVE-2024-2242The Contact Form 7 plugin for WordPress is vulnerable to Ref…6.1
- CVE-2024-22420JupyterLab is an extensible environment for interactive and …6.1
- CVE-2024-22421JupyterLab is an extensible environment for interactive and …6.5
- CVE-2024-22422AnythingLLM is an application that turns any document, resou…7.5
- CVE-2024-22424Argo CD is a declarative, GitOps continuous delivery tool fo…8.3
- CVE-2024-22425Dell RecoverPoint for Virtual Machines 5.3.x, 6.0.SP1 contai…9.8
- CVE-2024-22426Dell RecoverPoint for Virtual Machines 5.3.x, 6.0.SP1 contai…9.8
- CVE-2024-22428 Dell iDRAC Service Module, versions 5.2.0.0 and prior, cont…7.8
- CVE-2024-22429Dell BIOS contains an Improper Input Validation vulnerabilit…6.7
- CVE-2024-2243A vulnerability was found in csmock where a regular user of …8.8
Are you affected by CVE-2024-22423?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
