CVE-2026-31251: n/a
CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its gRPC server component. When the server starts, it loads the speech synthesis model from a user-specified directory using torch.load() without enabling the weights_only=True security parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing malicious model files within a directory. When a victim starts the gRPC server pointing to this directory, arbitrary code is executed on the victim's system during server initialization.
AI Analysis
Technical Summary
CosyVoice versions through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e contain an insecure deserialization vulnerability (CWE-502) in their gRPC server. The server loads speech synthesis models using torch.load() without restricting deserialization to weights only, enabling arbitrary code execution through crafted model files. This occurs during server initialization when the model is loaded from a user-specified directory. The vulnerability allows remote attackers to execute arbitrary code without authentication or user interaction.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim's system during server startup, potentially compromising confidentiality, integrity, and availability. The CVSS vector indicates network attack vector, low attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability at a low level.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid starting the gRPC server with model files from untrusted directories. Restrict access to directories used for model loading and monitor for suspicious files. Do not run the server with elevated privileges to limit potential impact.
CVE-2026-31251: n/a
Description
CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its gRPC server component. When the server starts, it loads the speech synthesis model from a user-specified directory using torch.load() without enabling the weights_only=True security parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing malicious model files within a directory. When a victim starts the gRPC server pointing to this directory, arbitrary code is executed on the victim's system during server initialization.
CVSS v3.1
Score 7.3high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CosyVoice versions through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e contain an insecure deserialization vulnerability (CWE-502) in their gRPC server. The server loads speech synthesis models using torch.load() without restricting deserialization to weights only, enabling arbitrary code execution through crafted model files. This occurs during server initialization when the model is loaded from a user-specified directory. The vulnerability allows remote attackers to execute arbitrary code without authentication or user interaction.
Potential Impact
Successful exploitation results in arbitrary code execution on the victim's system during server startup, potentially compromising confidentiality, integrity, and availability. The CVSS vector indicates network attack vector, low attack complexity, no privileges required, no user interaction, and impacts on confidentiality, integrity, and availability at a low level.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid starting the gRPC server with model files from untrusted directories. Restrict access to directories used for model loading and monitor for suspicious files. Do not run the server with elevated privileges to limit potential impact.
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: 6a028781cbff5d86108b8f6c
Added to database: 05/12/2026, 01:50:57 UTC
Last enriched: 05/19/2026, 10:28:59 UTC
Last updated: 07/01/2026, 22:05:25 UTC
Views: 77
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.