Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconUpload malicious pickle file
-
DeliveryApplication passes file path to ludwig.predict()
-
ExploitFramework detects .pkl format
-
Installpandas.read_pickle() deserializes payload
-
C2Malicious __reduce__ method executes
-
ExecuteArbitrary code runs as application user
-
ImpactEstablish 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-29560
GHSA-wcr3-gm9f-f87q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB