CVE-2026-31232: n/a
The CosyVoice project thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its model loading process. When loading model files (.pt) from a user-specified directory (via the --model_dir argument), the code uses torch.load() without 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 maliciously crafted model directory containing .pt files with embedded pickle payloads. When a victim loads this directory using CosyVoice's web interface, the malicious payload is executed, leading to remote code execution on the victim's system.
AI Analysis
Technical Summary
The CosyVoice project contains an insecure deserialization vulnerability (CWE-502) in its model loading mechanism. Specifically, when loading model files from a directory specified by the user via the --model_dir argument, the code calls torch.load() without the weights_only=True parameter. This omission allows arbitrary Python objects to be deserialized through the Pickle module embedded in .pt files. An attacker can exploit this by supplying a malicious model directory with crafted .pt files. When these files are loaded through the CosyVoice web interface, the embedded pickle payload executes, leading to remote code execution on the victim's machine. The vulnerability was introduced in a commit dated 2025-30-21 and was published on 2026-05-12. There is no CVSS score or vendor advisory available, and no patch or mitigation has been confirmed.
Potential Impact
Successful exploitation results in remote code execution on the victim's system when malicious model files are loaded. This can lead to full compromise of the affected system. There are no known exploits in the wild at this time. The vulnerability affects all versions of CosyVoice that use the vulnerable model loading code and accept user-supplied model directories.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading model files from untrusted or user-supplied directories. Restricting access to the model loading functionality or disabling the --model_dir argument may reduce risk. Monitoring vendor channels for updates is recommended.
CVE-2026-31232: n/a
Description
The CosyVoice project thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its model loading process. When loading model files (.pt) from a user-specified directory (via the --model_dir argument), the code uses torch.load() without 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 maliciously crafted model directory containing .pt files with embedded pickle payloads. When a victim loads this directory using CosyVoice's web interface, the malicious payload is executed, leading to remote code execution on the victim's system.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The CosyVoice project contains an insecure deserialization vulnerability (CWE-502) in its model loading mechanism. Specifically, when loading model files from a directory specified by the user via the --model_dir argument, the code calls torch.load() without the weights_only=True parameter. This omission allows arbitrary Python objects to be deserialized through the Pickle module embedded in .pt files. An attacker can exploit this by supplying a malicious model directory with crafted .pt files. When these files are loaded through the CosyVoice web interface, the embedded pickle payload executes, leading to remote code execution on the victim's machine. The vulnerability was introduced in a commit dated 2025-30-21 and was published on 2026-05-12. There is no CVSS score or vendor advisory available, and no patch or mitigation has been confirmed.
Potential Impact
Successful exploitation results in remote code execution on the victim's system when malicious model files are loaded. This can lead to full compromise of the affected system. There are no known exploits in the wild at this time. The vulnerability affects all versions of CosyVoice that use the vulnerable model loading code and accept user-supplied model directories.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading model files from untrusted or user-supplied directories. Restricting access to the model loading functionality or disabling the --model_dir argument may reduce risk. Monitoring vendor channels for updates is recommended.
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: 6a036531cbff5d861008c1ae
Added to database: 5/12/2026, 5:36:49 PM
Last enriched: 5/12/2026, 7:38:52 PM
Last updated: 5/13/2026, 4:29:10 AM
Views: 2
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.