GHSA-927q-g9w9-pm54: Mp3 metadata Panic Vulnerability

MODERATE
CWE-119
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-927q-g9w9-pm54
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Mp3 metadata
Package Ecosystem crates.io
Published Date
Last Updated

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.

mp3-metadata fixed: 0.4.0
Upgrade mp3-metadata to 0.4.0
Verify Direct and Transitive Dependencies

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

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.

GHSA-927q-g9w9-pm54 Affected Mp3 metadata Versions

1 component(s)
Fixed Versions:
0.4.0
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?
GHSA-927q-g9w9-pm54 is a security vulnerability in Mp3 metadata involving Panic in mp3-metadata due to the lack of bounds checking under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Mp3 metadata versions are affected?
Affected versions include releases prior to 0.4.0 across affected packages: mp3-metadata.
What version fixes GHSA-927q-g9w9-pm54?
Upgrading to 0.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mp3-metadata affected?
Yes, mp3-metadata is affected in releases prior to 0.4.0. Upgrade your dependency to 0.4.0 or later.
What CWE is associated with GHSA-927q-g9w9-pm54?
GHSA-927q-g9w9-pm54 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (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.).
How can I check crates.io dependencies for GHSA-927q-g9w9-pm54?
Run the dependency tree command: 'inspect dependencies for mp3-metadata'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}