Summary
Ludwig versions up to 0.10.4 are vulnerable to insecure deserialization (CWE-502) when a model server is started with "ludwig serve", which can lead to arbitrary code execution. Severity is critical, with a CVSS 3.1 score of 9.8.
What happened
When a model server is started with the "ludwig serve" command, the framework loads model weight files using torch.load() without enabling the restrictive weights_only=True parameter. This default behavior allows arbitrary Python objects to be deserialized through the pickle module. An attacker who gets a maliciously crafted PyTorch model file loaded could achieve arbitrary code execution on the system hosting the Ludwig model server. The weakness is classified as CWE-502.
Why it matters
The source (GHSA) rates this as critical severity with a CVSS 3.1 score of 9.8 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), meaning high impact on confidentiality, integrity and availability. CISA's KEV catalog does not list this vulnerability as exploited, and the source does not state any evidence of active exploitation.
Affected products and versions
Package ludwig (PyPI ecosystem): versions <= 0.10.4.
| Product | Versions | Fixed in |
|---|---|---|
| ludwig | <= 0.10.4 | — |
Action recommended by the source
The source does not state a fixed version or a vendor mitigation. Readers are advised to check the GitHub advisory (GHSA-xp5q-5q7g-q26r), the NVD entry for the CVE and the PyPI package page for updates.
Sources and references
- https://github.com/advisories/GHSA-xp5q-5q7g-q26r — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-31238 — GHSA
- https://www.notion.so/CVE-2026-31238-35d1e1393188819ea77ee98ca85a2878 — GHSA
- https://github.com/pypa/advisory-database/tree/main/vulns/ludwig/PYSEC-2026-405.yaml — GHSA
- https://pypi.org/project/ludwig — GHSA
Weaknesses (CWE): CWE-502
Relevant change history
Published
Advisory published.