From 1ecc8ac604a6653b715584bebcdf72b41eeaa51f Mon Sep 17 00:00:00 2001 From: Zeyang Zhuang <1330315641@qq.com> Date: Mon, 28 Apr 2025 21:41:16 +0800 Subject: [PATCH] Add advisory for index error in mp3-metadata --- crates/mp3-metadata/RUSTSEC-0000-0000.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 crates/mp3-metadata/RUSTSEC-0000-0000.md diff --git a/crates/mp3-metadata/RUSTSEC-0000-0000.md b/crates/mp3-metadata/RUSTSEC-0000-0000.md new file mode 100644 index 000000000..6384dab6a --- /dev/null +++ b/crates/mp3-metadata/RUSTSEC-0000-0000.md @@ -0,0 +1,23 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "mp3-metadata" +date = "2025-04-28" +url = "https://github.com/GuillaumeGomez/mp3-metadata/issues/36" +informational = "unsound" +categories = ["denial-of-service"] + +[affected] +functions = {"mp3_metadata::read_from_slice" = ["< 0.4.0"]} + +[versions] +patched = ["0.4.0"] +``` + +# Panic in mp3-metadata due to the lack of bounds checking + +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.