# CVE-2026-31238: Ludwig framework is vulnerable to insecure deserialization in its model serving component

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-05-12T00:00:00.000Z
- Modified: 2026-11-16T15:30:03.455Z
- Also known as: GHSA-xp5q-5q7g-q26r, PYSEC-2026-405
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ludwig (PyPI): up to 0.10.4

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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> (package, web)
- <https://github.com/advisories/GHSA-xp5q-5q7g-q26r> (advisory)

## Sources

- CVE List: [CVE-2026-31238](https://www.cve.org/CVERecord?id=CVE-2026-31238), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-xp5q-5q7g-q26r](https://github.com/advisories/GHSA-xp5q-5q7g-q26r), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-31238](https://nvd.nist.gov/vuln/detail/CVE-2026-31238), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-405](https://osv.dev/vulnerability/PYSEC-2026-405), CC-BY-4.0, modified 2026-07-01

---

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