GHSA-927q-g9w9-pm54: Mp3 metadata Panic Vulnerability
MODERATEGHSA-927q-g9w9-pm54 is a MODERATE panic vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Mp3 metadata libraries in the crates.io ecosystem. The issue involves panic in mp3-metadata due to the lack of bounds checking. Remediation is available by upgrading affected packages to version 0.4.0.
GHSA-927q-g9w9-pm54 at a Glance
How to Fix GHSA-927q-g9w9-pm54
To remediate this vulnerability, upgrade all affected Mp3 metadata dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade mp3-metadata to 0.4.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mp3-metadata
How to Check if You Are Affected
To determine whether your application is affected by GHSA-927q-g9w9-pm54, inspect your project dependencies for Mp3 metadata:
inspect dependencies for mp3-metadata
Analyze the terminal output to locate any version of Mp3 metadata in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Mp3 metadata, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-927q-g9w9-pm54 Affected Mp3 metadata Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mp3-metadata
|
crates.io |
< 0.4.0
|
0.4.0
|
References
Frequently Asked Questions
What is GHSA-927q-g9w9-pm54?
Which Mp3 metadata versions are affected?
What version fixes GHSA-927q-g9w9-pm54?
Is mp3-metadata affected?
What CWE is associated with GHSA-927q-g9w9-pm54?
How can I check crates.io dependencies for GHSA-927q-g9w9-pm54?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-927q-g9w9-pm54",
"modified" : "2025-04-30T17:41:17Z",
"published" : "2025-04-30T17:41:16Z",
"aliases" : [ ],
"summary" : "Panic in mp3-metadata due to the lack of bounds checking",
"details" : "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.\n\nFixed in [Fix index error](https://github.com/GuillaumeGomez/mp3-metadata/pull/37), released as part of 0.4.0.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "mp3-metadata"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/GuillaumeGomez/mp3-metadata/issues/36"
}, {
"type" : "WEB",
"url" : "https://github.com/GuillaumeGomez/mp3-metadata/pull/37"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/GuillaumeGomez/mp3-metadata"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2025-0027.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-30T17:41:16Z",
"nvd_published_at" : null
}
}