CVE-2026-31250: n/a
CVE-2026-31250 is an insecure deserialization vulnerability in CosyVoice's average_model. py tool used for PyTorch model averaging. The vulnerability arises because the tool uses torch. load() without the weights_only=True parameter, allowing arbitrary Python objects to be deserialized via pickle. An attacker can exploit this by placing malicious checkpoint files in a directory, leading to arbitrary code execution when the victim averages models from that directory. No patch or official remediation guidance is currently available. There are no known exploits in the wild at this time.
AI Analysis
Technical Summary
CosyVoice through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e contains an insecure deserialization vulnerability (CWE-502) in its average_model.py script. The tool loads PyTorch checkpoint files (epoch_*.pt) using torch.load() without the weights_only=True parameter, which is necessary to prevent deserialization of arbitrary Python objects. This flaw allows an attacker to craft malicious checkpoint files that, when loaded by the averaging tool, execute arbitrary code on the victim's system. The vulnerability affects the model averaging process and requires the victim to use the compromised checkpoint files.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim's system during the model averaging process. This can lead to full system compromise depending on the privileges of the user running the tool. The vulnerability is triggered by loading malicious checkpoint files, which can be introduced by an attacker with write access to the directory containing the model files. There are no reports of exploitation in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid loading untrusted or unauthenticated PyTorch checkpoint files with the average_model.py tool. Using torch.load() with the weights_only=True parameter or other secure deserialization methods is recommended once a patch or update is provided.
CVE-2026-31250: n/a
Description
CVE-2026-31250 is an insecure deserialization vulnerability in CosyVoice's average_model. py tool used for PyTorch model averaging. The vulnerability arises because the tool uses torch. load() without the weights_only=True parameter, allowing arbitrary Python objects to be deserialized via pickle. An attacker can exploit this by placing malicious checkpoint files in a directory, leading to arbitrary code execution when the victim averages models from that directory. No patch or official remediation guidance is currently available. There are no known exploits in the wild at this time.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CosyVoice through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e contains an insecure deserialization vulnerability (CWE-502) in its average_model.py script. The tool loads PyTorch checkpoint files (epoch_*.pt) using torch.load() without the weights_only=True parameter, which is necessary to prevent deserialization of arbitrary Python objects. This flaw allows an attacker to craft malicious checkpoint files that, when loaded by the averaging tool, execute arbitrary code on the victim's system. The vulnerability affects the model averaging process and requires the victim to use the compromised checkpoint files.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the victim's system during the model averaging process. This can lead to full system compromise depending on the privileges of the user running the tool. The vulnerability is triggered by loading malicious checkpoint files, which can be introduced by an attacker with write access to the directory containing the model files. There are no reports of exploitation in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid loading untrusted or unauthenticated PyTorch checkpoint files with the average_model.py tool. Using torch.load() with the weights_only=True parameter or other secure deserialization methods is recommended once a patch or update is provided.
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: 6a028781cbff5d86108b8f68
Added to database: 5/12/2026, 1:50:57 AM
Last enriched: 5/12/2026, 2:11:06 AM
Last updated: 5/12/2026, 3:45:13 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.