---
id: "CVE-2026-31237"
page: "https://infrastack.ai/live/CVE-2026-31237"
kind: "vulnerability"
aliases: ["CVE-2026-31237", "GHSA-wcr3-gm9f-f87q"]
title: "Ludwig framework is vulnerable to insecure deserialization through its predict() method."
severity: "critical"
cvss: 9.8
epss: 0.006
exploited: false
status: "open"
category: "package"
products: [{"name": "ludwig", "fixed": [], "affected": "<= 0.10.4", "ecosystem": "pypi"}]
ecosystems: ["pypi"]
tags: ["cwe-502", "ludwig", "machine-learning", "package", "python"]
not_affected_if: ["no-predict-on-external-files", "trusted-input-only"]
published_at: "2026-05-12T18:16:52+00:00"
first_seen_at: "2026-11-16T15:32:33+00:00"
updated_at: "2026-11-16T15:37:59+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-wcr3-gm9f-f87q", "first_seen_at": "2026-11-16T15:32:33+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31237", "first_seen_at": "2026-11-16T15:37:59+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.006, "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31237"}]
---

# Ludwig framework is vulnerable to insecure deserialization through its predict() method.

Link for people: https://infrastack.ai/live/CVE-2026-31237 (this .md is for agents)

Ludwig, a Python machine learning framework, loads a dataset passed to its predict() method with pandas.read_pickle() when the file ends in .pkl, with no validation. An attacker who supplies a malicious pickle file can run arbitrary Python code on the machine running the prediction.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:ludwig affected <= 0.10.4 fixed no fixed version listed

## How to check

- Check the installed version with `pip show ludwig` and treat anything at or below `0.10.4` as affected.
- Search your code and pipelines for calls to `predict()` that take a dataset path or file that could come from outside your control.

## Fix

- Ludwig: unknown; the sources give no fixed version.

## Timeline

- 2026-11-16T15:32:33+00:00 ghsa https://github.com/advisories/GHSA-wcr3-gm9f-f87q
- 2026-11-16T15:37:59+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-31237

## From the sources

The Ludwig framework thru 0.10.4 is vulnerable to insecure deserialization (CWE-502) through its predict() method. When a user provides a dataset file path to the predict() method, the framework automatically determines the file format. If the file is a pickle (.pkl) file, it is loaded using pandas.read_pickle() without any validation or security restrictions. This allows the deserialization of arbitrary Python objects via the unsafe pickle module. A remote attacker can exploit this by providing a maliciously crafted pickle file, leading to arbitrary code execution on the system running the Ludwig prediction.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
