Moodle dl: yt-dlp: Arbitrary command injection possible if --exec option used with yt-dlp
Affects moodle-dlSource GCVE Database
CVSS 7.5 High : upgrade to 2.3.13_11 soon.
Data as of 4 Oct 2026, 21:39 UTC
- Patch
- Available – fixed in 2.3.13_11
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HWhat to do
Upgrade moodle-dl to 2.3.13_11.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmoodle-dlpkg:brew/moodle-dlOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in yt-dlp version 2026.06.09. Users should upgrade to this version or later to mitigate the vulnerability. The patch restricts allowed string formatting conversions and limits characters in command templates to safe values. Users should avoid using unsafe conversions like %()s in their --exec templates until patched.
Description
A command injection vulnerability exists in yt-dlp's --exec option when unsafe string formatting conversions are used in the command template. This allows attackers to inject arbitrary shell commands via crafted video metadata. The issue affects users who use unsafe conversions like %()s in their --exec templates. A fix is available in yt-dlp version 2026.06.09 that restricts allowed conversions and limits characters in command templates.
References
- github.com/yt-dlp/yt-dlp/security/advisories/GHSA-69qj-pvh9-c5wg (opens in a new tab)
- github.com/yt-dlp/yt-dlp/pull/16883 (opens in a new tab)
- github.com/yt-dlp/yt-dlp/commit/5faffa999fd33b373d47773e8ee639d072accec2 (opens in a new tab)
- github.com/yt-dlp/yt-dlp (opens in a new tab)
- github.com/yt-dlp/yt-dlp-nightly-builds/releases/tag/2026.06.06.234447 (opens in a new tab)
- github.com/yt-dlp/yt-dlp/releases/tag/2026.06.09 (opens in a new tab)