Skip to main content
VulnerabilityPublished Updated

CVE-2026-26331: yt-dlp · Arbitrary Command Injection when using the `--netrc-cmd` option

Affects moodle-dlSource GCVE Database

0
Compare

Not known to be exploited · CVSS 8.8 High : upgrade to 2.3.13_6 soon.

Data as of 1 Nov 2026, 11:02 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.8% chance of exploitation in 30 days – higher than 78% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.3.13_6
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 1 Nov 2026.

What to do

Upgrade moodle-dl to 2.3.13_6.

Affected software

ProductAffectedFixed in
Homebrewmoodle-dlpkg:brew/moodle-dlOther threatsAffected
  • >=2.3.13 <2.3.13_6
Fixed in
  • 2.3.13_6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in yt-dlp version 2026.02.21 that validates netrc "machine" values to prevent command injection. Users should upgrade to this version or later. Users who do not use the --netrc-cmd option or netrc_cmd Python API parameter are not affected and do not need to take action.

Description

A command injection vulnerability (CVE-2026-26331) exists in yt-dlp when using the --netrc-cmd option or netrc_cmd Python API parameter. This flaw allows attackers to execute arbitrary shell commands by supplying a malicious URL that influences the netrc "machine" value passed unsafely to a shell command. The vulnerability affects yt-dlp versions prior to 2026.02.21. The issue is mitigated in version 2026.02.21 by validating netrc "machine" values. Users not using the --netrc-cmd option or netrc_cmd parameter are not affected. No active exploitation has been observed in the wild.

References

Community reviews

Loading reviews…