Borewit music-metadata
music-metadata: MP4 parser allows memory exhaustion via oversized extended atom length
music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the MP4 parser accepts an attacker-controlled 64-bit extended atom size, converts it to a JavaScript Number, and uses the resulting payload length for atom-specific readToken calls before proving that the atom fits within its parent or the available input. A tiny MP4-family file can route an oversized length into payload parsing for atoms including mvhd, stsd, stsz, and date, causing a large allocation attempt or process failure before end-of-input validation. Applications that parse untrusted MP4-family media can therefore be denied service. This issue is fixed in version 11.16.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 11.16.0
Fixed in 11.16.0
Mitigation
Upgrade music-metadata to 11.16.0 or later.
References
- Vendor advisory github.com/Borewit/music-metadata/security/adv…
- Patch github.com/Borewit/music-metadata/pull/2746
- Patch github.com/Borewit/music-metadata/commit/0f19a…
1 more
- Release notes github.com/Borewit/music-metadata/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.