# GHSA-927q-g9w9-pm54: Panic in mp3-metadata due to the lack of bounds checking

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-04-28T12:00:00.000Z
- Modified: 2025-10-28T06:29:23.888Z
- Also known as: RUSTSEC-2025-0027
- Weaknesses: CWE-119

## Description

The `get_id3()` methods used by `mp3_metadata::read_from_slice()` does not perform adequate bounds checking when recreating the tag due to the use of desynchronization.

Fixed in [Fix index error](https://github.com/GuillaumeGomez/mp3-metadata/pull/37), released as part of 0.4.0.

(As written by GitHub Advisory Database.)

## Affected

- mp3-metadata (crates.io): before 0.4.0; from 0.0.0-0 before 0.4.0

## References

- <https://github.com/GuillaumeGomez/mp3-metadata/issues/36> (report, web)
- <https://github.com/GuillaumeGomez/mp3-metadata/pull/37> (web)
- <https://github.com/GuillaumeGomez/mp3-metadata> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0027.html> (advisory, web)
- <https://crates.io/crates/mp3-metadata> (package)

## Sources

- GitHub Advisory Database: [GHSA-927q-g9w9-pm54](https://github.com/advisories/GHSA-927q-g9w9-pm54), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0027](https://rustsec.org/advisories/RUSTSEC-2025-0027.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-927q-g9w9-pm54 · Whole record: https://cve.day/GHSA-927q-g9w9-pm54.json · Rebuilt by cve.day 2026-11-25T22:56:43.253Z
