CVE-2026-31238: Ludwig framework is vulnerable to insecure deserialization in its model serving component
Affects ludwigSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 16 Nov 2026, 17:33 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 12 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIludwig | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should avoid loading untrusted PyTorch model files with Ludwig serve until a fix is available. Monitor the vendor's advisory channels for updates. Since this is a local deserialization vulnerability triggered by loading malicious model files, restricting model file sources to trusted origins is recommended as a temporary mitigation.
Description
The Ludwig framework versions up to 0.10.4 contain an insecure deserialization vulnerability in the model serving component. This occurs because the framework loads model weight files using torch.load() without the security-restrictive weights_only=True parameter, allowing arbitrary Python object deserialization via pickle. An attacker can exploit this by supplying a malicious PyTorch model file, potentially leading to arbitrary code execution on the host running the Ludwig model server.
References
- nvd.nist.gov/vuln/detail/CVE-2026-31238 (opens in a new tab)
- github.com/ludwig-ai/ludwig (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/ludwig/PYSEC-2026-405.yaml (opens in a new tab)
- pypi.org/project/ludwig (opens in a new tab)
- notion.so/CVE-2026-31238-35d1e1393188819ea77ee98ca85a2878 (opens in a new tab)