CVE-2026-31238
CRITICAL 9.8CVSS 3.1Ludwig framework is vulnerable to insecure deserialization in its model serving component
The Ludwig framework thru 0.10.4 is vulnerable to insecure deserialization (CWE-502) in its model serving component. When starting a model server with the ludwig serve command, the framework loads model weight files using torch.load() without enabling the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a maliciously crafted PyTorch model file, leading to arbitrary code execution on the system hosting the Ludwig model server.
- Published
- 12 May 2026
- Last modified
- 16 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-502
- Also known as
- GHSA-xp5q-5q7g-q26rPYSEC-2026-405
- Sources
- NVDJSONOSV GHSA-xp5q-5q7g-q26rJSONOSV PYSEC-2026-405JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | ludwig | <= 0.10.4 |
References
- https://github.com/ludwig-ai/ludwig · PACKAGE
- https://www.notion.so/CVE-2026-31238-35d1e1393188819ea77ee98ca85a2878 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31238 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/ludwig/PYSEC-2026-405.yaml · WEB
- https://pypi.org/project/ludwig · WEB, PACKAGE
- https://github.com/advisories/GHSA-xp5q-5q7g-q26r · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 May 2026)