CVE-2026-31252: n/a
CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its model loading component. The framework uses torch.load() to load model weight files (e.g., llm.pt, flow.pt, hift.pt) without enabling the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a malicious model directory containing specially crafted model files. When a victim starts the CosyVoice Web UI pointing to this directory, arbitrary code is executed on the victim's system during the model loading process.
AI Analysis
Technical Summary
CosyVoice through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e contains an insecure deserialization vulnerability (CWE-502) in its model loading component. The framework uses torch.load() to load model weight files without enabling the weights_only=True parameter, which restricts deserialization to tensor weights only. This omission allows deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a malicious model directory containing specially crafted model files. When the victim starts the CosyVoice Web UI pointing to this directory, arbitrary code execution occurs during model loading. The CVSS 3.1 vector is AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L, indicating local attack vector, low attack complexity, low privileges required, user interaction required, scope changed, and low impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim's system during the model loading process, potentially compromising confidentiality, integrity, and availability to a limited extent. The attack requires local access and user interaction to load the malicious model directory. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid loading model files from untrusted or unauthenticated sources. Consider manually inspecting or sandboxing model loading operations to mitigate risk.
CVE-2026-31252: n/a
Description
CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its model loading component. The framework uses torch.load() to load model weight files (e.g., llm.pt, flow.pt, hift.pt) without enabling the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a malicious model directory containing specially crafted model files. When a victim starts the CosyVoice Web UI pointing to this directory, arbitrary code is executed on the victim's system during the model loading process.
CVSS v3.1
Score 5.7medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CosyVoice through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e contains an insecure deserialization vulnerability (CWE-502) in its model loading component. The framework uses torch.load() to load model weight files without enabling the weights_only=True parameter, which restricts deserialization to tensor weights only. This omission allows deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a malicious model directory containing specially crafted model files. When the victim starts the CosyVoice Web UI pointing to this directory, arbitrary code execution occurs during model loading. The CVSS 3.1 vector is AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L, indicating local attack vector, low attack complexity, low privileges required, user interaction required, scope changed, and low impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim's system during the model loading process, potentially compromising confidentiality, integrity, and availability to a limited extent. The attack requires local access and user interaction to load the malicious model directory. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid loading model files from untrusted or unauthenticated sources. Consider manually inspecting or sandboxing model loading operations to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-03-09T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a028781cbff5d86108b8f70
Added to database: 05/12/2026, 01:50:57 UTC
Last enriched: 05/19/2026, 10:28:23 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 90
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.