Skip to content
HighVulnerability

CVE-2026-31251: CosyVoice insecure deserialization in gRPC server model loading

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

Summary

CosyVoice, through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21), has an insecure deserialization flaw (CWE-502) in its gRPC server component. On startup, the server loads the speech synthesis model from a user-specified directory with torch.load() without weights_only=True, so pickle can deserialize arbitrary Python objects. An attacker who places malicious model files in a directory that a victim points the server to gains arbitrary code execution during server initialization.

Mitigation

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