CVE catalog

CVE-2024-22423

yt-dlp affected and fixed versions

[CVE catalog]

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.

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.43% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Opensusetumbleweedyt-dlp2024.04.09-1.1UnknownSource applicability is not established[OPENSUSE-SU-2024:13854-1]
Debiantrixieyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debiantrixieyt-dlp2025.04.30-1Not affected[CVE-2024-22423]
Debiansidyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debiansidyt-dlp2026.10.26-1Not affected[CVE-2024-22423]
Debianforkyyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debianforkyyt-dlp2026.10.21-1Not affected[CVE-2024-22423]
Debianbookwormyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debianbookwormyt-dlp2023.03.04-1Not affected[CVE-2024-22423]
PyPIRelease not reportedyt-dlp2024.04.09UnknownSource applicability is not establishedProvider not reported
Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
PyPIRelease not reportedyt-dlp2024.04.09UnknownSource applicability is not establishedProvider not reported
Debianbookwormyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debianbookwormyt-dlp2023.03.04-1Not affected[CVE-2024-22423]
Debianforkyyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debianforkyyt-dlp2026.10.21-1Not affected[CVE-2024-22423]
Debiansidyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debiansidyt-dlp2026.10.26-1Not affected[CVE-2024-22423]
Debiantrixieyt-dlpNot reportedNot affectedDistribution reports not affected[CVE-2024-22423]
Debiantrixieyt-dlp2025.04.30-1Not affected[CVE-2024-22423]
Opensusetumbleweedyt-dlp2024.04.09-1.1UnknownSource applicability is not established[OPENSUSE-SU-2024:13854-1]
Original provider fields
{
  "package_releases": [
    {
      "name": "yt-dlp",
      "status": "not affected",
      "release": "sid",
      "version": "2026.10.26-1"
    },
    {
      "name": "yt-dlp",
      "status": "not affected",
      "release": "forky",
      "version": "2026.10.21-1"
    },
    {
      "name": "yt-dlp",
      "status": "not affected",
      "release": "trixie",
      "version": "2025.04.30-1"
    },
    {
      "name": "yt-dlp",
      "status": "not affected",
      "release": "bookworm",
      "version": "2023.03.04-1"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "yt-dlp",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "unimportant",
      "fixed_version": "0"
    },
    {
      "bug": null,
      "name": "yt-dlp",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "unimportant",
      "fixed_version": "0"
    },
    {
      "bug": null,
      "name": "yt-dlp",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "unimportant",
      "fixed_version": "0"
    },
    {
      "bug": null,
      "name": "yt-dlp",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "unimportant",
      "fixed_version": "0"
    }
  ],
  "distribution_packages": [
    {
      "name": "yt-dlp",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "2021.04.11"
            },
            {
              "fixed": "2024.04.09"
            }
          ]
        }
      ],
      "ecosystem": "PyPI",
      "fixed_version": "2024.04.09",
      "applicability_unknown": true
    },
    {
      "name": "yt-dlp",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2024.04.09-1.1"
            }
          ]
        }
      ],
      "release": "tumbleweed",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/openSUSE-SU-2024:13854-1",
      "fixed_version": "2024.04.09-1.1",
      "provider_source": "pypi",
      "provider_record_id": "OPENSUSE-SU-2024:13854-1",
      "provider_updated_at": "2026-02-04T03:06:14.148422Z",
      "applicability_unknown": true
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [yt-dlp]Unknown
    Details (4)
    • 2023.03.04-1 · all · bookworm

      Not affected

      dsa · yt-dlp · debian · bookworm

    • 2023.03.04-1 · all · bookworm

      Not affected

      dsa · yt-dlp · debian · bookworm

    • 2025.04.30-1~bpo12+1 · all · bookworm-backports

      Not affected

      dsa · yt-dlp · debian · bookworm

    • 2025.04.30-1~bpo12+1 · all · bookworm-backports

      Not affected

      dsa · yt-dlp · debian · bookworm

[openSUSE Tumbleweed]

  • Source package: [yt-dlp]

    Details (1)
    • 2026.08.19-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2024.04.09-1.1

      Version impact unknown

      dsa · yt-dlp · opensuse · tumbleweed

  • [yt-dlp]Unknown

    Source package: [yt-dlp]

    Details (1)
    • 2026.08.19-1.1 · noarch · tumbleweed

      Fixed · Fixed: 2024.04.09-1.1

      dsa · yt-dlp · opensuse · tumbleweed

  • Source package: [yt-dlp]

    Details (1)
    • 2026.08.19-1.1 · noarch · tumbleweed

      Unknown · Fixed: 2024.04.09-1.1

      Version impact unknown

      dsa · yt-dlp · opensuse · tumbleweed

Observed:

References