CVE-2026-31250 Deserialization in n/a
An attacker can execute arbitrary code on a victim's system by providing malicious PyTorch checkpoint files to the CosyVoice model averaging tool.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-31250?
CVE-2026-31250 is a high-severity unsafe deserialization vulnerability in n/a, published on 11 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its average_model.py model averaging tool. The script loads PyTorch checkpoint files (epoch_*.pt) for model averaging using torch.load() without enabling the weights_only=True security parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing malicious checkpoint files within a directory. When a victim uses the tool to average models from this directory, arbitrary code is executed on the victim's system.
Weakness: CWE-502
Which versions are affected by CVE-2026-31250?
How do I fix CVE-2026-31250?
No fix has been published for CVE-2026-31250 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2026-31250 being exploited?
There is no known exploitation of CVE-2026-31250 in the wild and no public exploit code.
Sources
Also known as GHSA-jf74-gj4g-6qpg.