Skip to content
HighVulnerability

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

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

Summary

CVE-2026-31232 affects the CosyVoice project through commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) and is classified as CWE-502. The model loading process calls torch.load() without weights_only=True when reading .pt files from a directory passed via --model_dir, so arbitrary Python objects can be deserialized through Pickle. An attacker who supplies a crafted model directory can trigger remote code execution on a victim who loads it through the CosyVoice web interface.

Mitigation

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