CVE-2026-31252
Last modified
CVE-2026-31252 is a medium-severity vulnerability rated 5.7/10 on the CVSS scale. 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. EPSS estimates a 0.11% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-31252?
How severe is CVE-2026-31252?
How do I fix CVE-2026-31252?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31247Docling's JATS XML backend is vulnerable to XML Entity Expan…7.5
- CVE-2026-31248Docling's METS GBS backend is vulnerable to XML Entity Expan…7.5
- CVE-2026-31249CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf1…7.3
- CVE-2026-3125A Server-Side Request Forgery (SSRF) vulnerability was ident…6.5
- CVE-2026-31250CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf1…7.3
- CVE-2026-31251CosyVoice thru commit 6e01309e01bc93bbeb83bdd996b1182a81aaf1…7.3
- CVE-2026-31253The flash-attention training framework thru commit e724e2588…7.3
- CVE-2026-31254The flash-attention project thru commit e724e2588cbe754beb97…7.3
- CVE-2026-31255A command injection vulnerability exists in Tenda AC18 V15.0…9.8
- CVE-2026-31256A null pointer dereference vulnerability exists in the RTSP …7.5
- CVE-2026-3126Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-31262Cross Site Scripting vulnerability in Altenar Sportsbook Sof…6.1
Are you affected by CVE-2026-31252?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
