vciy

CVE-2023-40581

INDEX BUILT · 2026-09-20

No source can show you its own past. This one can.

Print this page to keep the view as it stands on this date. Everything hidden behind a disclosure opens, and every receipt prints with its value.

yt-dlp command injection when using `%q` in `--exec` on Windows

CVE-2023-405814 of 4 sources documented this
23

rank 23 = 0 + 20 + 1 + 2 + 0

rank@v1 · backlog

Someone is already using it

CISA KEV catalog · public proof-of-concept · FIRST EPSS

EPSS 0.01292  ·  without this subject the record ranks 23

What it costs you if it fires

NVD CVSS base score, then the CNA's own

CVSS 7.8, from NVD  ·  without this subject the record ranks 3

It is getting worse, not staying still

FIRST EPSS series, rescorings and bad loads removed

rose on 2026-01-03  ·  without this subject the record ranks 22

How much of the world it touches

NVD CPE configurations

1 product in the CPE ranges  ·  without this subject the record ranks 21

Someone else already set the date

CISA KEV remediation due date

no CISA due date  ·  without this subject the record ranks 23

Unaudited dollar value2 of 3 inputs carry a receipt
Exposure$64,500over the next 30 days, if this record is yours
Movement+$149,000on 2026-04-21, the last material move, 1 month before this reading
Basisassumeda published average, not your estate

$64,500 = $4.99M incident cost x 1 exposure x 0.01292 likelihood

udv@v1 · unaudited · wrong for you until you say what you run

$4.99M is the cost of a breach that happened, from IBM Cost of a Data Breach Report 2026, global average. It is not the value of any asset of yours. That average already covers breaches of every severity, so scaling it by exposure understates a partial-impact record. That is an assumption, not a measurement. Your own asset value goes in the decision record.

Hindsight · the state

0.01292EPSSNOT IN KEVas of 2026-09-20
Severity8.4 HIGHreceipt
Harmtotal lossreceipt
Exploitationnone in held sources
Defenseunaffected versions publishedreceipt
Movementthreshold crossedreceipt
RISING10Risen from 0.00201 to 0.01292 across 24 observations. arc-rules@v1

Foresight · where to check next

CVE-2024-51378CVE-2019-11539ivanti SentryArista Networkskestra-io kestraCVE-2023-4320840581

This record is one instance of CWE-78, improper neutralization of special elements used in an os command ('os command injection'). The index holds 6775 prior instances of this class, 121 KEV-listed. The nearest of its KEV-listed records are drawn beside this. taxonomy@v1

Full pattern panel

Prior records in this weakness class. Each is its own record, dated and receipted.
Color is a claim, not decoration:the hostile worldthe defenseno signalspoke length is how much of the record matches, not how bad it is

Sources disagree here.

Severity score
GitHub_M8.4 HIGHreceipt
NVD7.8 HIGHreceipt
What it costs
GitHub_MComplete confidentiality, integrity and availability loss, with impact beyond the vulnerable componentreceipt
NVDComplete confidentiality, integrity and availability lossreceipt

Both shown, dated. We don't pick winners. disagreement-rules@v1

Running yt-dlp? Check your version

A deterministic range check against the ranges this record publishes. It tells you where a version sits in the record, not whether your deployment is exploitable. No account needed.

Watch this record

Matches your own product list against every record this index holds, and tells you when one of them moves.

What counts as a move

Set up a watchlist (needs a Practitioner account)

Record your call

Keep your verdict, your reason and the evidence together. The record takes its date when you save it.

AcceptDeferPatch by…Not affectedMitigated

Choose your verdict, then sign in or use an email link. Your first 100 records are free. Evidence is frozen when the record is created.

Private to your organization unless you share it. Put the proof link in your ticket so a reviewer can inspect the basis for your call. See how decision records work.

Harm, if it fires from the vector and the weakness

Written for the ticket you're about to file.

Reachnetwork-reachable · no privileges required · user interaction required · high attack complexityreceipt
ImpactComplete confidentiality, integrity and availability loss, with impact beyond the vulnerable componentreceipt
Scored fromCVSS v3.1 · the CNA's vectorreceipt
Weakness classCWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')receipt
Published consequencesCWE-78: Confidentiality, Integrity, Availability, Non-Repudiation: Execute Unauthorized Code or Commands, DoS: Crash, Exit, or Restart, Read Files or Directories, Modify Files or Directories, Read…[email protected]

CISA KEV & Federal Remediation Deadline from the record and CISA

The fix, and how long it's been waiting.

First unaffected version, by branchproject yt-dlp 2023.09.24receipt
Patch available sinceNo dated patch-availability record in held sources. The index holds reference URLs without dates and only the current revision of the CVE record, so the day a fix first existed cannot be derived. Only the versions it landed in.

Exploit Status & Known PoCs a ladder, not a score

Current rung: Nothing observed in held sources.

  • RUNG 1Nothing observed in held sources
  • RUNG 2Proof-of-concept published
  • RUNG 3Exploited in the wild · CISA KEV listed
  • RUNG 4Ransomware campaign use known

Authority who says so

CVSS, the CNA8.4 HIGHreceipt
CVSS, NVD7.8 HIGHreceipt
Exploit probability0.01292 · top 31% of all CVEsreceipt
Blast breadth1 product across 1 vendorderived
Assigned byGitHub_Mreceipt
Recorded changes24 · last 19 Sep 2026derived

Affected & Fixed Versions as published

Affected productyt-dlpreceipt
Published rangesyt-dlp project yt-dlp >= 2021.04.11 < 2023.09.24receipt

A rung lights from a row in the index, never from an assessment. "Held sources" is the true scope of the claim: this index reads the CVE record, NVD, CISA KEV, FIRST's EPSS and public proof-of-concept repositories, and it does not observe attacks.

Did this affect your environment?Answering needs an account.

Attack path

Network requestrequires user interactionyt-dlpCWE-78 OS command injectionAdjacent componentsscope changeFull compromise (C/I/A)C:H / I:H / A:Hexploits CWE-78scope changedata compromise

What it is stated by the CNA

yt-dlp is a youtube-dl fork with additional features and fixes. yt-dlp allows the user to provide shell command lines to be executed at various stages in its download steps through the `--exec` flag. This flag allows output template expansion in its argument, so that metadata values may be used in the shell commands. The metadata fields can be combined with the `%q` conversion, which is intended to quote/escape these values so they can be safely passed to the shell. receipt

Read the rest of the CNA's description

However, the escaping used for `cmd` (the shell used by Python's `subprocess` on Windows) does not properly escape special characters, which can allow for remote code execution if `--exec` is used directly with maliciously crafted remote data. This vulnerability only impacts `yt-dlp` on Windows, and the vulnerability is present regardless of whether `yt-dlp` is run from `cmd` or from `PowerShell`. 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 2023.09.24 fixes this issue by properly escaping each special character. `\n` will be replaced by `\r` as no way of escaping it has been found. It is recommended to upgrade yt-dlp to version 2023.09.24 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: 1. Avoid using any output template expansion in --exec other than {} (filepath). 2. If expansion in --exec is needed, verify the fields you are using do not contain ", | or &. 3. Instead of using --exec, write the info json and load the fields from it instead.

NVD's analysis a second authority

severity
7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
weakness
CWE-78
affected versions
yt-dlp project yt-dlp >= 2021.04.11 < 2023.09.24
also scored by
[email protected] 8.3 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

The CNA scored it 8.4 and NVD 7.8. Both are shown because both were published; we do not pick one.

check it yourself github.com github.com github.com github.com github.com receipt

Dated events

2025-04-15EPSS moved 0.01 to 0.102026-06-15EPSS moved 0.13 to 0.01

Movement the material steps

26 Sep 20230.00201
17 Mar 20250.01576 · scoring model v2025.03.14
15 Apr 20250.10199 · crossed 0.10
19 May 20250.07627 · crossed 0.10
21 Apr 20260.12983 · crossed 0.10
15 Jun 20260.01292 · crossed 0.10 · scoring model v2026.06.15

This score more than doubled inside 72 hours. Both observations are in the full history below.

Show all 24 observations
26 Sep 20230.00201
28 Sep 20230.00529
1 Oct 20240.00750
27 Oct 20240.00788
17 Dec 20240.00854
30 Dec 20240.00945
7 Mar 20250.01122
17 Mar 20250.01576
19 Mar 20250.01472
29 Mar 20250.02489
30 Mar 20250.01472
15 Apr 20250.10199
19 May 20250.07627
20 May 20250.03574
16 Aug 20250.03669
28 Aug 20250.03574
13 Oct 20250.04766
18 Nov 20250.01472
21 Nov 20250.04766
3 Jan 20260.09992
21 Apr 20260.12983
24 Apr 20260.13286
7 May 20260.12983
15 Jun 20260.01292

24 observations held. A highlighted step crossed a promotion threshold. A step marked with a scoring model moved because the instrument was replaced, not because the vulnerability changed. receipt

The full biography

EPSS 0.01292Published2023-09-25Index as of2026-06-15

Exploit probability more than doubled between 2023-09-26 and 2023-09-28 (0.00201 → 0.00529) and the record had been public for 2 years, 8 months when this index was last written.

Published 2023-09-25 receipt · Index as of 2026-06-15 derived

The pattern, elsewhere

This record is one instance of CWE-78, improper neutralization of special elements used in an os command ('os command injection'). The index holds 6775 prior instances of this class, 121 KEV-listed. The nearest of its KEV-listed records are drawn beside this. [email protected]

CVE-2024-51378matches 6 of 8KEV listed · 2024receipt
CVE-2019-11539matches 6 of 8KEV listed · 2019receipt
CVE-2026-10520 · ivanti Sentrymatches 6 of 9KEV listed · 2026receipt
CVE-2026-16812 · Arista Networks VeloCloud Orchestrator On-Premmatches 6 of 9KEV listed · 2026receipt
CVE-2026-49869 · kestra-io kestramatches 6 of 9KEV listed · 2026receipt
CVE-2023-43208matches 5 of 8KEV listed · 2023receipt

"Matches n of m" counts the attributes the two records can both be compared on: the CVSS metrics they share a version of, any weakness class beyond this one, and the vendor. fit-rules@v1

6775 records in this class held. The six above are drawn from the ones CISA has listed as exploited, ranked by how much of the record matches this one. That is why every one of them is KEV-listed: the pool is, so the colour on those spokes says nothing the pool has not already said.

No curated product neighbourhood is held for this product, so the records above are the nearest this index can name. The neighbourhood table covers a small set of products and is extended by hand.

Siblings and hubs

Records related to this one

Its defect family

yt-dlp

Of the 3 records in this family that state one, this holds the lowest NVD CVSS score: 7.8.

Grouped by shared product and weakness, not by shared vulnerability. Each record's own state is on its own page.

Family membership: held values

This record is one of a group, and the group's page describes all of them. This page is kept and dated, and the defect family's own page is the one we offer for indexing: the whole group.

Browse the index from here

These are index-wide views, not findings about CVE-2023-40581.

What usually comes next

Everything above needs no account. What is below is work: assembling it, scoping it to your estate, watching it, and handing it to someone else.

Everything on this page is free. Public data. Withholding it protects nothing.