Skip to content
DayZeroHub
Critical CVSS 9.8GHSA-xp5q-5q7g-q26rCVE-2026-31238

Insecure deserialization in Ludwig's model serving component (CVE-2026-31238)

ludwig

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.

ProductVersionsFixed 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.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-502

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources