HighVulnerability
CVE-2026-31250: CosyVoice insecure deserialization in average_model.py checkpoint loading
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-31250
- Published
- Record updated
- 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), contains an insecure deserialization flaw (CWE-502) in its average_model.py model averaging tool. The script loads epoch_*.pt PyTorch checkpoints with torch.load() without weights_only=True, allowing arbitrary Python objects to be deserialized via pickle. An attacker who supplies a malicious checkpoint in a directory gains code execution on the victim's system when the victim averages models from that directory.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- InfoCVE-2026-123357: GROBID command execution through crafted PDF filename in Linux conversionSimilar attack · NVD/CVE Database
- MediumShai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI ToolsSimilar attack · Socket Blog
- MediumCPython flaw exposes AI inference servers to sandbox escape attacksSimilar attack · CSO Online
- HighCVE-2026-88981: Kubeflow Pipelines enables users to build and deploy portable, scalable machine learning workflows. Prior to 2.18.0…Similar attack · NVD/CVE Database
- MediumBinance heist is stark example of AI governance gaps and basic security failuresSimilar attack · CSO Online