CVE-2026-107388
music-metadata: ID3v2 tag size not validated before allocation, causing memory exhaustion DoS
MEDIUM 5.5EPSS 0.1%
music-metadata is a metadata parser for audio and video media files. Prior to 11.16.0, the ID3v2 parser trusts the syncsafe tag-size field and allocates the complete tag body before checking whether the input contains the declared bytes. A truncated file containing only an ID3v2 header can request an allocation approaching 268 MiB; the allocation succeeds, the subsequent read reaches end of stream, the EndOfStreamError is caught internally, and the caller receives a normal metadata object. This issue is fixed in version 11.16.0.
- Affected
- Borewit · music-metadata
- CVSS v3.1 NVD
- 5.5 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS v3.1 GITHUB
- 6.2 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - EPSS
- 0.14% chance of exploitation in the next 30 days, 3rd percentile
- Published
- 2026-10-08
- Updated
- 2026-10-14
Proof-of-concept exploits (1)
Security advisories
- Borewit/music-metadata/security/advisories/GHSA-jjpr-9cvf-cq55
- Borewit/music-metadata/commit/b033db675b913a9dba1d29135ec3c10eae7095a7