Skip to content
HighVulnerability

CVE-2026-31252: CosyVoice insecure deserialization in model loading via torch.load

Identifier
CVE-2026-31252
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.1%

Summary

CosyVoice, through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21), has an insecure deserialization flaw (CWE-502) in its model loading component. The framework calls torch.load() on model weight files such as llm.pt, flow.pt and hift.pt without weights_only=True, so arbitrary Python objects can be deserialized through the pickle module. When a victim starts the CosyVoice Web UI pointing at a malicious model directory, arbitrary code runs on their system during model loading.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.