CVE-2025-5148
Python vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2025-5148) was discovered in FunAudioLLM InspireMusic up to version bf32364bcb0d136497ca69f9db622e9216b029dd. The vulnerability affects the loadstatedict function in the inspiremusic/cli/model.py file, specifically in the Pickle Data Handler component. The issue was disclosed on May 25, 2025, and has been classified as critical due to its potential for deserialization attacks (NVD).

Technical details

The vulnerability stems from the unsafe use of torch.load function without the weights_only=True parameter in the model loading process. This implementation could allow for arbitrary code execution during the deserialization of untrusted data. The vulnerability has received a CVSS v4.0 score of 4.8 (MEDIUM) with vector string 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, and a CVSS v3.1 score of 5.3 (MEDIUM) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L (NVD).

Impact

The vulnerability allows attackers to create malicious files containing crafted pickle data that, when loaded by the torch.load function, can execute arbitrary code during the deserialization process. This can result in unauthorized system access, data leakage, or modification of system settings (GitHub Issue).

Mitigation and workarounds

A patch has been released (commit 784cbf8dde2cf1456ff808aeba23177e1810e7a9) that adds the weights_only=True parameter to the torch.load function calls. Users are recommended to update their installations to include this security fix (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management