{"metadata": {"vulnerability": "cve-2023-40581", "count": 32, "kinds": {"milestone": 11, "sighting": 2, "kev": 0, "other": 19}, "linked_omitted": 0}, "data": [{"timestamp": "2023-08-16T18:24:02.391Z", "date_only": false, "value": "2023-08-16T18:24:02.391Z", "kind": "milestone", "label": "Reserved", "source": "cvelistv5", "record": "cve-2023-40581", "field": "cveMetadata.dateReserved"}, {"timestamp": "2023-09-25T17:33:40Z", "date_only": false, "value": "2023-09-25T17:33:40Z", "kind": "milestone", "label": "Published", "source": "github \u00b7 GHSA-42H4-V29R-42QG", "record": "GHSA-42H4-V29R-42QG", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-09-25T18:54:00.204Z", "date_only": false, "value": "2023-09-25T18:54:00.204Z", "kind": "milestone", "label": "Published", "source": "cvelistv5", "record": "cve-2023-40581", "field": "cveMetadata.datePublished", "metric_role": "disclosure", "metric_basis": "recorded_event"}, {"timestamp": "2023-09-25T18:54:00.204Z", "date_only": false, "value": "2023-09-25T18:54:00.204Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / GitHub_M", "record": "cve-2023-40581", "field": "containers.cna.providerMetadata.dateUpdated"}, {"timestamp": "2023-09-25T19:15:00Z", "date_only": false, "value": "2023-09-25T19:15Z", "kind": "other", "label": "Published Date", "source": "gsd \u00b7 GSD-2023-40581", "record": "GSD-2023-40581", "field": "namespaces.nvd.nist.gov.publishedDate", "linked_record": true}, {"timestamp": "2023-09-25T19:15:09Z", "date_only": false, "value": "2023-09-25T19:15:09Z", "kind": "other", "label": "Nvd published at", "source": "github \u00b7 GHSA-42H4-V29R-42QG", "record": "GHSA-42H4-V29R-42QG", "field": "database_specific.nvd_published_at", "linked_record": true}, {"timestamp": "2023-09-25T19:15:09.960Z", "date_only": false, "value": "2023-09-25T19:15:09.960", "kind": "milestone", "label": "Published", "source": "fkie_nvd \u00b7 FKIE_CVE-2023-40581", "record": "FKIE_CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2023-09-25T22:39:32Z", "date_only": false, "value": "2023-09-25T22:39:32.000000Z", "kind": "sighting", "label": "Seen", "source": "https://t.me/cibsecurity/71010", "record": "CVE-2023-40581", "field": "creation_timestamp", "uuid": "aa056afe-aae2-4cdd-adf6-6d0f316b590e", "content": "\u203c CVE-2023-40581 \u203c\n\nyt-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. 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 &amp;. 3. Instead of using --exec, write the info json and load the fields from it instead.\n\n\ud83d\udcd6 Read\n\nvia \"National Vulnerability Database\".", "url": "https://t.me/cibsecurity/71010"}, {"timestamp": "2023-09-26T13:57:26Z", "date_only": false, "value": "2023-09-26T13:57:26Z", "kind": "other", "label": "Updated", "source": "github \u00b7 GHSA-42H4-V29R-42QG", "record": "GHSA-42H4-V29R-42QG", "field": "modified", "linked_record": true}, {"timestamp": "2023-09-27T14:48:00Z", "date_only": false, "value": "2023-09-27T14:48Z", "kind": "other", "label": "Last Modified Date", "source": "gsd \u00b7 GSD-2023-40581", "record": "GSD-2023-40581", "field": "namespaces.nvd.nist.gov.lastModifiedDate", "linked_record": true}, {"timestamp": "2023-12-13T01:20:44.211Z", "date_only": false, "value": "2023-12-13T01:20:44.211904Z", "kind": "other", "label": "Updated", "source": "gsd \u00b7 GSD-2023-40581", "record": "GSD-2023-40581", "field": "gsd.osvSchema.modified", "linked_record": true}, {"timestamp": "2024-08-02T18:38:50.806Z", "date_only": false, "value": "2024-08-02T18:38:50.806Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / CVE", "record": "cve-2023-40581", "field": "containers.adp.0.providerMetadata.dateUpdated"}, {"timestamp": "2024-09-24T14:45:30.642Z", "date_only": false, "value": "2024-09-24T14:45:30.642943Z", "kind": "other", "label": "Recorded", "source": "cvelistv5 / CISA-ADP", "record": "cve-2023-40581", "field": "containers.adp.1.metrics.0.other.content.timestamp"}, {"timestamp": "2024-09-24T14:45:30.642Z", "date_only": false, "value": "2024-09-24T14:45:30.642943Z", "kind": "other", "label": "Recorded", "source": "fkie_nvd \u00b7 FKIE_CVE-2023-40581", "record": "FKIE_CVE-2023-40581", "field": "metrics.ssvcV203.0.ssvcData.timestamp", "linked_record": true}, {"timestamp": "2024-09-24T14:48:55.952Z", "date_only": false, "value": "2024-09-24T14:48:55.952Z", "kind": "other", "label": "Updated", "source": "cvelistv5", "record": "cve-2023-40581", "field": "cveMetadata.dateUpdated"}, {"timestamp": "2024-09-24T14:48:55.952Z", "date_only": false, "value": "2024-09-24T14:48:55.952Z", "kind": "other", "label": "Updated", "source": "cvelistv5 / CISA-ADP", "record": "cve-2023-40581", "field": "containers.adp.1.providerMetadata.dateUpdated"}, {"timestamp": "2026-01-05T22:32:20.701Z", "date_only": false, "value": "2026-01-05T22:32:20.701103Z", "kind": "sighting", "label": "Seen", "source": "https://bsky.app/profile/euvd-bot.bsky.social/post/3mbpikwx7aw27", "record": "CVE-2023-40581", "field": "creation_timestamp", "uuid": "98e81061-1c08-42ba-ba8c-efadb97a9611", "url": "https://bsky.app/profile/euvd-bot.bsky.social/post/3mbpikwx7aw27"}, {"timestamp": "2026-06-17T06:18:33.827Z", "date_only": false, "value": "2026-06-17T06:18:33.827", "kind": "other", "label": "Updated", "source": "fkie_nvd \u00b7 FKIE_CVE-2023-40581", "record": "FKIE_CVE-2023-40581", "field": "lastModified", "linked_record": true}, {"timestamp": "2026-07-07T11:45:25.140Z", "date_only": false, "value": "2026-07-07T11:45:25.140715Z", "kind": "milestone", "label": "Published", "source": "pysec \u00b7 PYSEC-2026-2064", "record": "PYSEC-2026-2064", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-07-07T17:25:52.678Z", "date_only": false, "value": "2026-07-07T17:25:52.678461Z", "kind": "other", "label": "Updated", "source": "pysec \u00b7 PYSEC-2026-2064", "record": "PYSEC-2026-2064", "field": "modified", "linked_record": true}, {"timestamp": "2026-08-13T16:49:04Z", "date_only": false, "value": "2026-08-13T16:49:04Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-GAMDL-CVE-2023-40581", "record": "BREW-GAMDL-CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-08-13T17:14:32Z", "date_only": false, "value": "2026-08-13T17:14:32Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-MOODLE-DL-CVE-2023-40581", "record": "BREW-MOODLE-DL-CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-08-13T17:34:18Z", "date_only": false, "value": "2026-08-13T17:34:18Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-SCDL-CVE-2023-40581", "record": "BREW-SCDL-CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-08-13T17:44:53Z", "date_only": false, "value": "2026-08-13T17:44:53Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-TUBEUP-CVE-2023-40581", "record": "BREW-TUBEUP-CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-08-13T17:55:05Z", "date_only": false, "value": "2026-08-13T17:55:05Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-YEWTUBE-CVE-2023-40581", "record": "BREW-YEWTUBE-CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-08-13T17:55:05Z", "date_only": false, "value": "2026-08-13T17:55:05Z", "kind": "milestone", "label": "Published", "source": "osv_homebrew \u00b7 BREW-YT-DLP-CVE-2023-40581", "record": "BREW-YT-DLP-CVE-2023-40581", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, {"timestamp": "2026-09-09T23:59:22Z", "date_only": false, "value": "2026-09-09T23:59:22Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-GAMDL-CVE-2023-40581", "record": "BREW-GAMDL-CVE-2023-40581", "field": "modified", "linked_record": true}, {"timestamp": "2026-09-10T00:32:32Z", "date_only": false, "value": "2026-09-10T00:32:32Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-MOODLE-DL-CVE-2023-40581", "record": "BREW-MOODLE-DL-CVE-2023-40581", "field": "modified", "linked_record": true}, {"timestamp": "2026-09-10T01:11:31Z", "date_only": false, "value": "2026-09-10T01:11:31Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-SCDL-CVE-2023-40581", "record": "BREW-SCDL-CVE-2023-40581", "field": "modified", "linked_record": true}, {"timestamp": "2026-09-10T01:31:23Z", "date_only": false, "value": "2026-09-10T01:31:23Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-TUBEUP-CVE-2023-40581", "record": "BREW-TUBEUP-CVE-2023-40581", "field": "modified", "linked_record": true}, {"timestamp": "2026-09-10T21:31:39Z", "date_only": false, "value": "2026-09-10T21:31:39Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-YEWTUBE-CVE-2023-40581", "record": "BREW-YEWTUBE-CVE-2023-40581", "field": "modified", "linked_record": true}, {"timestamp": "2026-10-29T21:46:26Z", "date_only": false, "value": "2026-10-29T21:46:26Z", "kind": "other", "label": "Updated", "source": "osv_homebrew \u00b7 BREW-YT-DLP-CVE-2023-40581", "record": "BREW-YT-DLP-CVE-2023-40581", "field": "modified", "linked_record": true}], "metrics": {"as_of": "2026-11-19T05:03:02.437Z", "anchors": {"origin": {"timestamp": "2023-09-25T17:33:40Z", "date_only": false, "value": "2023-09-25T17:33:40Z", "kind": "milestone", "label": "Published", "source": "github \u00b7 GHSA-42H4-V29R-42QG", "record": "GHSA-42H4-V29R-42QG", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, "discovery": null, "report": null, "acknowledgement": null, "disclosure": {"timestamp": "2023-09-25T17:33:40Z", "date_only": false, "value": "2023-09-25T17:33:40Z", "kind": "milestone", "label": "Published", "source": "github \u00b7 GHSA-42H4-V29R-42QG", "record": "GHSA-42H4-V29R-42QG", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, "exploit_publication": null, "exploitation": null, "patch": null}, "vendor_response_time": {"available": false, "missing": ["start", "end"]}, "time_to_exploit": {"available": false, "missing": ["end"]}, "disclosure_to_exploit": {"available": false, "missing": ["end"]}, "disclosure_to_exploit_publication": {"available": false, "missing": ["end"]}, "time_to_patch": {"available": false, "missing": ["start", "end"]}, "total_time_to_patch": {"available": false, "missing": ["start", "end"]}, "disclosure_to_patch": {"available": false, "missing": ["end"]}, "time_unpatched": {"available": true, "seconds": 99401362.437205, "hours": 27611.48956589028, "days": 1150.4787319120949, "min_seconds": 99401362.437205, "max_seconds": 99401362.437205, "approximate": false, "ongoing": true, "order_known": true, "batch_listing": false, "end_before_start": false, "start": {"timestamp": "2023-09-25T17:33:40Z", "date_only": false, "value": "2023-09-25T17:33:40Z", "kind": "milestone", "label": "Published", "source": "github \u00b7 GHSA-42H4-V29R-42QG", "record": "GHSA-42H4-V29R-42QG", "field": "published", "metric_role": "disclosure", "metric_basis": "recorded_event", "linked_record": true}, "end": {"timestamp": "2026-11-19T05:03:02.437Z", "date_only": false, "label": "As of", "source": "Calculation clock"}}, "exploitation_to_patch": {"available": false, "missing": ["start"]}, "exploit_publication_to_patch": {"available": false, "missing": ["start"]}}}
