Vulnerabilities in pkg:pypi/inspiremusic

PACKAGE
Advisory Identifier: GHSA-pgp9-g5q8-j3wp
Advisory Summary

CVE-2025-5148 is a MODERATE (CVSS 5.3) funaudiollm inspiremusic deserialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Inspiremusic libraries in the PyPI ecosystem. The issue involves funaudiollm inspiremusic deserialization vulnerability. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/inspiremusic

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/inspiremusic. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pgp9-g5q8-j3wp CVE-2025-5148 MODERATE FunAudioLLM InspireMusic deserialization vulnerability

CVE-2025-5148 at a Glance

CVE Identifier CVE-2025-5148
GHSA Identifier GHSA-pgp9-g5q8-j3wp
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Inspiremusic
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-5148

To remediate this vulnerability, upgrade all affected Inspiremusic dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

inspiremusic fixed: Latest secure release
pip install inspiremusic>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show inspiremusic

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-5148, inspect your installed packages using pip:

pip show inspiremusic

Analyze the terminal output to locate any version of Inspiremusic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show inspiremusic command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Inspiremusic, 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

A vulnerability was found in FunAudioLLM InspireMusic up to bf32364bcb0d136497ca69f9db622e9216b029dd. It has been classified as critical. Affected is the function load_state_dict of the file inspiremusic/cli/model.py of the component Pickle Data Handler. The manipulation leads to deserialization. An attack has to be approached locally. This product is using a rolling release to provide continious delivery. Therefore, no version details for affected nor updated releases are available. The name of the patch is 784cbf8dde2cf1456ff808aeba23177e1810e7a9. It is recommended to apply a patch to fix this issue.

CVE-2025-5148 Affected Inspiremusic Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
inspiremusic
PyPI
≤ 0.0.1.dev0

References

Frequently Asked Questions

What is CVE-2025-5148?
CVE-2025-5148 is a security vulnerability in Inspiremusic involving FunAudioLLM InspireMusic deserialization vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Inspiremusic versions are affected?
Affected versions include releases prior to current release patches across affected packages: inspiremusic.
What version fixes CVE-2025-5148?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is inspiremusic affected?
Yes, inspiremusic is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-5148?
CVE-2025-5148 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-5148?
CVE-2025-5148 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2025-5148?
Run the dependency tree command: 'pip show inspiremusic'. 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-pgp9-g5q8-j3wp",
  "modified" : "2025-05-27T19:48:29Z",
  "published" : "2025-05-25T12:30:24Z",
  "aliases" : [ "CVE-2025-5148" ],
  "summary" : "FunAudioLLM InspireMusic deserialization vulnerability",
  "details" : "A vulnerability was found in FunAudioLLM InspireMusic up to bf32364bcb0d136497ca69f9db622e9216b029dd. It has been classified as critical. Affected is the function load_state_dict of the file inspiremusic/cli/model.py of the component Pickle Data Handler. The manipulation leads to deserialization. An attack has to be approached locally. This product is using a rolling release to provide continious delivery. Therefore, no version details for affected nor updated releases are available. The name of the patch is 784cbf8dde2cf1456ff808aeba23177e1810e7a9. It is recommended to apply a patch to fix this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "inspiremusic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.0.1.dev0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5148"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FunAudioLLM/InspireMusic/issues/53"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FunAudioLLM/InspireMusic/issues/53#issuecomment-2866688220"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FunAudioLLM/InspireMusic/commit/784cbf8dde2cf1456ff808aeba23177e1810e7a9"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FunAudioLLM/InspireMusic"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.310236"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.310236"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.573800"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-27T19:48:29Z",
    "nvd_published_at" : "2025-05-25T12:15:20Z"
  }
}