Skip to main content

Ludwig framework EUVDEUVD-2026-29560

| CVE-2026-31237 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-05-12 mitre GHSA-wcr3-gm9f-f87q
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Upload malicious pickle file
  2. Delivery
    Application passes file path to ludwig.predict()
  3. Exploit
    Framework detects .pkl format
  4. Install
    pandas.read_pickle() deserializes payload
  5. C2
    Malicious __reduce__ method executes
  6. Execute
    Arbitrary code runs as application user
  7. Impact
    Establish persistence or exfiltrate data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to expose Ludwig's predict() method to user-controlled file paths, allowing attackers to specify the location of a malicious .pkl file. The vulnerable code path activates when: (1) an application passes externally-provided file paths (from uploads, API parameters, or filesystem references) directly to predict() without filtering pickle formats, and (2) the provided path points to a file with .pkl extension or pickle format that triggers Ludwig's automatic format detection logic. Exploitation does NOT require: authenticated access (PR:N in CVSS confirms unauthenticated remote exploitation is possible if the application design allows it), user interaction beyond normal API usage (UI:N), or non-default Ludwig configuration. Limiting factors: Many production Ludwig deployments may use predict() only with server-controlled file paths or pre-validated datasets, not user-supplied paths. Applications that implement strict file type allowlisting (CSV/JSON only) or content validation before invoking Ludwig methods are not vulnerable. Risk is highest in multi-tenant ML platforms, data science notebooks-as-a-service, and APIs offering prediction-on-uploaded-data functionality.

Impact

CVSS 9.8 (AV:N/AC:L/PR:N/UI:N) indicates maximum severity with network attack vector, low complexity, and no authentication required. However, real-world risk requires nuanced assessment. EPSS 0.06% (19th percentile) suggests automated scanners and opportunistic attackers have not prioritized this vector, likely because exploitation requires the victim application to accept user-controlled file paths to predict() - not a universal deployment pattern. Attack complexity is genuinely low (AC:L is accurate) once the attacker controls the file path parameter, but the prerequisite is that the application must expose predict() to untrusted input, which depends on implementation choices by Ludwig users rather than default framework behavior. No CISA KEV listing or public POC identified, indicating no confirmed widespread or targeted exploitation. Primary risk is to ML/AI platforms and data science APIs that allow users to upload datasets for prediction, particularly multi-tenant SaaS environments. Organizations using Ludwig only with internally-generated or strongly validated file paths face substantially lower risk despite the high CVSS. This is a supply chain concern for applications built on Ludwig rather than a directly exploitable internet service in most deployments.

Exploit ScenarioDerived

An attacker identifies a web application that uses Ludwig for ML predictions and accepts user-uploaded datasets. The attacker crafts a malicious pickle file containing a payload with a __reduce__ method that executes system commands (e.g., reverse shell, data exfiltration script, or cryptominer installation). When the victim application calls ludwig.predict(user_uploaded_file_path), the framework detects the .pkl extension, invokes pandas.read_pickle(), and deserializes the malicious object, triggering arbitrary code execution with the privileges of the Ludwig process. No public POC is confirmed available, but pickle exploitation techniques are well-documented in security research, making weaponization straightforward for skilled attackers.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Arbitrary code execution in Ludwig framework ≤0.10.4 occurs when attackers supply malicious pickle files to the predict() method, which deserializes untrusted data without validation using pandas.read_pickle(). Remote unauthenticated attackers can achieve full system compromise by exploiting the automatic file format detection mechanism that processes .pkl files through Python's unsafe pickle module. EPSS score of 0.06% (19th percentile) suggests low current exploitation likelihood despite the critical CVSS 9.8 rating, though no public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Upgrade to Ludwig framework version 0.10.5 or later once a patched release becomes available, monitoring the official GitHub repository at https://github.com/ludwig-ai/ludwig for security updates. As of this analysis, no vendor-released patch version has been independently confirmed in the provided data. Immediate compensating controls include: (1) Implement strict allowlist validation of file extensions before passing paths to predict(), rejecting .pkl files entirely and accepting only safe formats like .csv, .json, or .parquet; (2) Use file content validation rather than relying on extensions, checking magic bytes to prevent .pkl.csv-style bypass attempts; (3) If pickle files are business-critical, deserialize them in isolated sandboxed processes with minimal privileges using containers or separate service accounts, though note that sophisticated pickle exploits can escape some sandboxes; (4) Never expose predict() directly to internet-facing APIs or user file uploads without a secure file processing layer that converts uploads to safe formats server-side. Trade-offs: Blocking pickle files eliminates a legitimate serialization format used in some ML workflows, requiring data pipeline changes. Sandboxing adds operational complexity and latency. Advisory reference: https://nvd.nist.gov/vuln/detail/CVE-2026-31237 and vendor notification page https://www.notion.so/CVE-2026-31237-35d1e139318881fb95a2ee7c5d0e17d8.

Affected VersionsENISA

n/a n/a

Affected Packages

pypi ludwig no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Ludwig is an open-source declarative machine learning framework built on TensorFlow. The vulnerability stems from CWE-502 (Deserialization of Untrusted Data) in the predict() method's file handling logic. When users invoke predict() with a dataset file path, Ludwig automatically detects file format and routes .pkl files to pandas.read_pickle(), which internally uses Python's pickle module. Pickle is a Python-native serialization protocol that can reconstruct arbitrary Python objects, including those with __reduce__ methods that execute code during deserialization. Unlike JSON or CSV parsers, pickle was explicitly designed for trusted data only and provides no sandboxing. The framework's automatic format detection creates an unsafe code path where external input directly controls which deserialization mechanism is invoked, violating the principle that untrusted data should never flow to pickle.load() or its wrappers.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from Vendor (mitre) · only source for this CVE.

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
May 14, 2026 - 20:22 NVD
9.8 (CRITICAL)
CVE Published
May 12, 2026 - 00:00 nvd
CRITICAL 9.8
CVE Published
May 12, 2026 - 00:00 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Ludwig framework versions 0.10.4 and earlier contain a critical arbitrary code execution vulnerability in the predict() method that allows unauthenticated remote attackers to achieve full system compromise by supplying malicious pickle files. Organizations using Ludwig for model inference face immediate risk of complete infrastructure takeover if the framework processes untrusted input files. Despite the critical severity rating, current exploitation likelihood remains low, but the absence of available patches creates an urgent need for compensating controls.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or isolate Ludwig predict() endpoints accepting external files; (2) Implement strict allowlist-based file type validation rejecting all .pkl extensions before framework processing; (3) Run Ludwig services in containerized environments with minimal privileges and read-only filesystems where feasible; (4) Monitor predict() method calls via application instrumentation; (5) Restrict network access to Ludwig services to authorized internal systems only; (6) Evaluate alternative libraries (e.g., scikit-learn with joblib using protocol limitations, or TensorFlow/PyTorch with native inference APIs) that do not rely on pickle deserialization.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy