# CVE-2026-31252: CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in…

- Severity: Medium 5.7 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-11T00:00:00.000Z
- Modified: 2026-06-17T10:33:32.673Z
- Weaknesses: CWE-94, CWE-915
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf11e (2025-30-21) contains an insecure deserialization vulnerability (CWE-502) in its model loading component. The framework uses torch.load() to load model weight files (e.g., llm.pt, flow.pt, hift.pt) without enabling the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a malicious model directory containing specially crafted model files. When a victim starts the CosyVoice Web UI pointing to this directory, arbitrary code is executed on the victim's system during the model loading process.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/FunAudioLLM/CosyVoice>
- <https://www.notion.so/CVE-2026-31252-35d1e139318881ef8acfcd877a432569>

## Sources

- CVE List: [CVE-2026-31252](https://www.cve.org/CVERecord?id=CVE-2026-31252), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2026-31252](https://nvd.nist.gov/vuln/detail/CVE-2026-31252), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31252 · Whole record: https://cve.day/CVE-2026-31252.json · Rebuilt by cve.day 2026-11-25T22:59:21.212Z
