{"id":"CVE-2026-107389","revision":null,"records":[{"revision":"e14a4ba299af40f2af9502e02e564c44","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-107389","aliases":[],"title":"music-metadata: EBML parser trusts element lengths, allowing memory exhaustion or process abort","description":"music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the Matroska and WebM EBML parser decodes an attacker-controlled VINT element length and uses it for string-token or Uint8Array allocation before confirming that the leaf fits within its parent or available input. Crafted WebM, MKV, or MKA inputs can cause disproportionate allocations, out-of-memory denial of service, or, for a demonstrated parseFile path on Node.js 26.7.0, an uncatchable V8 fatal abort. The exact failure mode depends on the tokenizer, parser API, and runtime, but the affected leaf-length validation flaw is shared and has availability impact only. This issue is fixed in version 11.16.0.","state":0,"publishedAt":"2026-10-08T19:05:23.816+00:00","modifiedAt":"2026-10-09T18:32:42.251+00:00","affected":[{"ecosystem":"Vendor product","name":"music-metadata","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Borewit\",\n                    \"product\": \"music-metadata\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 11.16.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"severity":"MEDIUM"}],"references":["https://github.com/Borewit/music-metadata/security/advisories/GHSA-5gfj-9q3v-qfp3","https://github.com/Borewit/music-metadata/pull/2735","https://github.com/Borewit/music-metadata/commit/163f013364ac9fc8dd0c3987433cd065a615af58","https://github.com/Borewit/music-metadata/commit/2d14dc1f7391a94235948a0b823155538f69b3df","https://github.com/Borewit/music-metadata/releases/tag/v11.16.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-107389","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-107389","identifiers":["CVE-2026-107389"]},"retained":false,"historicalAffected":[]},{"revision":"dc5dda94ce2d4ba89c8b5bdcce73faaa","observedAt":"2026-11-07T04:31:24.238+00:00","statement":{"source":"euvd","id":"EUVD-2026-95238","aliases":["CVE-2026-107389","GHSA-5gfj-9q3v-qfp3"],"title":"music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the Matroska and WebM EBML parser decodes an attacker-controlled VINT element length and uses it for string-token or Uint8Array allocation before confirm…","description":"music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the Matroska and WebM EBML parser decodes an attacker-controlled VINT element length and uses it for string-token or Uint8Array allocation before confirming that the leaf fits within its parent or available input. Crafted WebM, MKV, or MKA inputs can cause disproportionate allocations, out-of-memory denial of service, or, for a demonstrated parseFile path on Node.js 26.7.0, an uncatchable V8 fatal abort. The exact failure mode depends on the tokenizer, parser API, and runtime, but the affected leaf-length validation flaw is shared and has availability impact only. This issue is fixed in version 11.16.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"severity":null}],"references":["https://github.com/Borewit/music-metadata/security/advisories/GHSA-5gfj-9q3v-qfp3","https://github.com/Borewit/music-metadata/pull/2735","https://github.com/Borewit/music-metadata/commit/163f013364ac9fc8dd0c3987433cd065a615af58","https://github.com/Borewit/music-metadata/commit/2d14dc1f7391a94235948a0b823155538f69b3df","https://github.com/Borewit/music-metadata/releases/tag/v11.16.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-95238","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 8, 2026, 7:05:23 PM","dateUpdated":"Oct 9, 2026, 6:32:42 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-95238","identifiers":["EUVD-2026-95238","CVE-2026-107389","GHSA-5gfj-9q3v-qfp3"]},"retained":false,"historicalAffected":[]},{"revision":"31ea1e31b50c43a990a5c18df5cadb5c","observedAt":"2026-10-25T05:17:13.11+00:00","statement":{"source":"nvd","id":"CVE-2026-107389","aliases":[],"title":"music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the Matroska and WebM EBML parser decodes an attacker-controlled VINT element length and uses it for string-token or Uint8Array allocation before confirm…","description":"music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the Matroska and WebM EBML parser decodes an attacker-controlled VINT element length and uses it for string-token or Uint8Array allocation before confirming that the leaf fits within its parent or available input. Crafted WebM, MKV, or MKA inputs can cause disproportionate allocations, out-of-memory denial of service, or, for a demonstrated parseFile path on Node.js 26.7.0, an uncatchable V8 fatal abort. The exact failure mode depends on the tokenizer, parser API, and runtime, but the affected leaf-length validation flaw is shared and has availability impact only. This issue is fixed in version 11.16.0.","state":0,"publishedAt":"2026-10-08T20:17:33.19+00:00","modifiedAt":"2026-10-21T15:34:25.303+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":6.2,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"severity":"MEDIUM"}],"references":["https://github.com/Borewit/music-metadata/commit/163f013364ac9fc8dd0c3987433cd065a615af58","https://github.com/Borewit/music-metadata/commit/2d14dc1f7391a94235948a0b823155538f69b3df","https://github.com/Borewit/music-metadata/pull/2735","https://github.com/Borewit/music-metadata/releases/tag/v11.16.0","https://github.com/Borewit/music-metadata/security/advisories/GHSA-5gfj-9q3v-qfp3"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-107389","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-789"],"productCriteria":["cpe:2.3:a:borewit:music-metadata:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-10-08T20:17:33.190","lastModified":"2026-10-21T15:34:25.303"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-107389","identifiers":["CVE-2026-107389"]},"retained":false,"historicalAffected":[]},{"revision":"c5d18b3a1d274f438e52c4ac913e9582","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5gfj-9q3v-qfp3","aliases":["CVE-2026-107389"],"title":"music-metadata: EBML parser trusts element lengths, allowing memory exhaustion or process abort","description":"## Summary\n\nThe Matroska/WebM EBML parser decodes attacker-controlled variable-length integer (VINT) element lengths without first validating that the declared element fits within its enclosing container or the available input. Leaf lengths are then used directly for string-token and `Uint8Array` allocations.\n\nA very small crafted `.webm`, `.mkv`, or `.mka` file can therefore cause a disproportionately large allocation, an out-of-memory denial of service, or—in one demonstrated `parseFile` case—an uncatchable V8 fatal abort.\n\n## Impact\n\nApplications that parse untrusted Matroska/WebM media can be denied service. Depending on the input, parser API, and Node.js/V8 version, the demonstrated outcomes include:\n\n- a 34-byte input causing an approximately 128 MiB allocation before end-of-input;\n- a 70-byte input causing a 500 MiB allocation through a binary EBML leaf, with concurrent parses multiplying memory consumption;\n- a 48-byte file causing an uncatchable V8 fatal abort through `parseFile` when a leaf declares a length of 32 GiB.\n\nThe fatal-abort case was reproduced on `music-metadata` 11.15.0 with Node.js 26.7.0. It was deterministic across three runs and exited with code 133 despite a surrounding `try`/`catch`. The same reporter did not reproduce that fatal abort through `parseBuffer` on Node.js 20 through 25; those configurations can still encounter allocation attempts or catchable errors. The exact failure mode is therefore runtime- and tokenizer-dependent, but the underlying validation flaw is shared.\n\nThe impact is limited to availability; no confidentiality or integrity impact has been demonstrated.\n\n## Root cause\n\n`EbmlIterator.readElement()` decodes an element length from an EBML VINT and converts it to a JavaScript `Number`:\n\n```ts\nprivate async readElement(): Promise<IHeader> {\n  const id = await this.readVintData(this.ebmlMaxIDLength);\n  const lenField = await this.readVintData(this.ebmlMaxSizeLength);\n  lenField[0] ^= 0x80 >> (lenField.length - 1);\n  return {\n    id: readUIntBE(id, id.length),\n    len: readUIntBE(lenField, lenField.length)\n  };\n}\n```\n\nBefore the fix, that value was not checked against the parent boundary or known file size before reaching the leaf readers:\n\n```ts\nprivate async readString(e: IHeader): Promise<string> {\n  const rawString = await this.tokenizer.readToken(new StringType(e.len, 'utf-8'));\n  return rawString.replace(/\\x00.*$/g, '');\n}\n\nprivate async readBuffer(e: IHeader): Promise<Uint8Array> {\n  const buf = new Uint8Array(e.len);\n  await this.tokenizer.readBuffer(buf);\n  return buf;\n}\n```\n\nAn EBML size VINT can encode values approaching 2^56. A crafted file can select a known string, unsigned-integer, binary, or UID element and route its declared size into an allocation before the tokenizer discovers that the input is truncated. The declared length also participates in container-boundary arithmetic.\n\nFor lengths around 32 GiB, one reporter observed V8 aborting on its external-memory accounting check:\n\n```text\nFatal error: Check failed: change_in_bytes < kMaxReasonableBytes\nprocess exit code 133\n```\n\nThis is a V8 process abort rather than a JavaScript exception, so application-level error handling cannot catch it.\n\n## Attack scenarios\n\nThe issue is reachable through ordinary metadata parsing of attacker-controlled Matroska/WebM files. Reported proofs of concept exercised string, unsigned-integer, binary, and UID leaves. Depending on the tokenizer and runtime, affected entry points include `parseBuffer`, `parseFile`, `parseStream`, `parseBlob`, and `parseWebStream`.\n\nOne minimal buffer-based proof of concept uses a `docType` string with an oversized eight-byte VINT:\n\n```js\nimport { parseBuffer } from 'music-metadata';\n\nconst payload = Uint8Array.from([\n  0x1a, 0x45, 0xdf, 0xa3, 0x8a,\n  0x42, 0x82,\n  0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff\n]);\n\nawait parseBuffer(payload, { mimeType: 'video/webm' });\n```\n\nAnother proof of concept used a valid WebM EBML header followed by an `ebmlReadVersion` leaf whose VINT declared `0x800000000` bytes (32 GiB), while supplying only one payload byte. Through `parseFile`, this reached the fatal V8 abort described above.\n\n## Fix\n\n[PR #2735](https://github.com/Borewit/music-metadata/pull/2735) validates EBML leaf lengths before decoding or allocating. It rejects lengths that are unsafe, exceed the enclosing container, or exceed the known remaining file data. For streams whose total size is unknown, large leaves are read incrementally so truncated input fails before one large allocation is attempted. Nested-container boundaries are also constrained by ancestor and file boundaries.\n\nAt the time this advisory was updated, PR #2735 was still open and no patched release had been published.\n\n## Credits\n\nThis advisory consolidates independent reports of the same EBML length-validation flaw:\n\n- [@bg0d-glitch](https://github.com/bg0d-glitch) reported oversized VINT lengths reaching string and binary allocation paths.\n- [@Zwique](https://github.com/Zwique) demonstrated approximately 128 MiB of allocation from a 34-byte EBML input as part of a broader parser review.\n- [@offset](https://github.com/offset) demonstrated a 500 MiB allocation from a 70-byte binary-leaf input and the effect of concurrent parses.\n- [@arpitjain099](https://github.com/arpitjain099) demonstrated the 48-byte `parseFile` case that triggers an uncatchable V8 fatal abort.\n\nThe reports were consolidated because they share the same vulnerable component, missing validation, allocation sinks, and fix.","state":0,"publishedAt":"2026-10-08T19:43:09+00:00","modifiedAt":"2026-10-08T20:00:05.8782329+00:00","affected":[{"ecosystem":"npm","name":"music-metadata","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"11.16.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Borewit/music-metadata/security/advisories/GHSA-5gfj-9q3v-qfp3","https://github.com/Borewit/music-metadata/pull/2735","https://github.com/Borewit/music-metadata/commit/163f013364ac9fc8dd0c3987433cd065a615af58","https://github.com/Borewit/music-metadata/commit/2d14dc1f7391a94235948a0b823155538f69b3df","https://github.com/Borewit/music-metadata","https://github.com/Borewit/music-metadata/releases/tag/v11.16.0"],"sourceUrl":"https://github.com/advisories/GHSA-5gfj-9q3v-qfp3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5gfj-9q3v-qfp3","identifiers":["GHSA-5gfj-9q3v-qfp3","CVE-2026-107389"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-08T09:05:07.1353409+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-08T09:05:07.1353409+00:00","lastSuccessAt":"2026-11-08T09:05:07.314358+00:00","error":null,"lastVerifiedAt":"2026-11-08T09:05:07.3144897+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-eaa64dac63caa79c8d4905619258c41c51b39e461b996124e1a21b5e85e7e738-e58a079eb6f76d5949b871c295ad9e8f78e928765ff9950581a38d46375b9852","complete":true,"records":421096,"lastAttemptAt":"2026-11-08T09:04:21.5548423+00:00","lastSuccessAt":"2026-11-08T07:59:14.3145447+00:00","error":"HttpRequestException","lastVerifiedAt":"2026-11-08T07:59:14.338564+00:00","snapshotPublishedAt":"2026-11-08T07:27:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ce0df89a405747cda5b7c61ae0b48fb2","complete":true,"records":13633,"lastAttemptAt":"2026-11-08T09:05:09.4085736+00:00","lastSuccessAt":"2026-11-08T05:08:40.263+00:00","error":null,"lastVerifiedAt":"2026-11-08T05:08:40.263+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-08T09:05:07.1353409+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-08T09:05:07.1353409+00:00","lastSuccessAt":"2026-11-08T09:05:07.4545479+00:00","error":null,"lastVerifiedAt":"2026-11-08T09:05:07.4545481+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2404c35233cd476289f9792161a850e3","complete":true,"records":13645,"lastAttemptAt":"2026-11-08T09:05:08.6143971+00:00","lastSuccessAt":"2026-11-08T08:59:23.805+00:00","error":null,"lastVerifiedAt":"2026-11-08T08:59:23.805+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0eb4d6dde62dffacd040ad992d4fd5a65cd7d0dc5f5f4cfa8b41967fc6f9ca5f","complete":true,"records":9914,"lastAttemptAt":"2026-11-08T09:05:07.0080286+00:00","lastSuccessAt":"2026-11-06T20:10:36.6450506+00:00","error":null,"lastVerifiedAt":"2026-11-08T09:05:07.0080286+00:00","snapshotPublishedAt":"2026-11-06T20:02:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-08T09:05:03.7558577+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":"HttpRequestException","lastVerifiedAt":"2026-11-08T08:58:58.22321+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-335633e78a15c9cde10a6025895b5617717087fb945489ae7e15d377bacf34a9","complete":true,"records":3055,"lastAttemptAt":"2026-11-08T09:05:07.0409305+00:00","lastSuccessAt":"2026-11-06T16:03:00.7615789+00:00","error":null,"lastVerifiedAt":"2026-11-08T09:05:07.0409305+00:00","snapshotPublishedAt":"2026-11-06T16:02:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-8efbf882841c7fda0cba0c3b55677f4781f461b96ab83577ad2701c4eaf88b1e","complete":true,"records":231293,"lastAttemptAt":"2026-11-08T09:05:06.6586785+00:00","lastSuccessAt":"2026-11-08T08:01:14.837451+00:00","error":null,"lastVerifiedAt":"2026-11-08T09:05:06.6586785+00:00","snapshotPublishedAt":"2026-11-08T07:33:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}