PatchSiren cyber security CVE debrief
CVE-2026-31238 ludwig CVE debrief
The Ludwig framework through version 0.10.4 is vulnerable to insecure deserialization in its model serving component. This occurs because the framework loads model weight files using torch.load() without enabling the security-restrictive weights_only=True parameter, allowing the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a maliciously crafted PyTorch model file, potentially leading to arbitrary code execution on the system hosting the Ludwig model server.
- Vendor
- ludwig
- Product
- ludwig
- CVSS
- CRITICAL 9.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-12
- Original CVE updated
- 2026-11-16
- Advisory published
- 2026-05-12
- Advisory updated
- 2026-11-16
Who should care
Defenders responsible for machine learning systems, particularly those using the Ludwig framework for model serving, should assess their exposure and take steps to secure their systems.
Why it matters
The Ludwig framework's insecure deserialization vulnerability in its model serving component poses a critical risk of arbitrary code execution. Defenders should prioritize verifying model file integrity, restricting access to model serving components, and monitoring for suspicious activity. Updating to a secure version of the framework is crucial.
- Potential for arbitrary code execution on systems hosting the Ludwig model server
- Risk of exploitation through maliciously crafted PyTorch model files
- Need for verification of model file integrity before loading
- Importance of updating the Ludwig framework to a secure version if available
Technical summary
The Ludwig framework through version 0.10.4 is vulnerable to insecure deserialization (CWE-502) in its model serving component. The framework loads model weight files using torch.load() without enabling the security-restrictive weights_only=True parameter, allowing the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a maliciously crafted PyTorch model file.
Defensive priority
Defenders should prioritize verifying the integrity of model files and updating the Ludwig framework to a secure version if available.
Recommended defensive actions
- Verify the integrity of model files used with the Ludwig framework
- Restrict access to model serving components to trusted users and systems
- Monitor for suspicious activity related to model loading and deserialization
- Consider implementing additional security measures such as validating model files before loading
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The vulnerability is confirmed in Ludwig framework versions up to 0.10.4. The insecure deserialization occurs in the model serving component when loading model weight files using torch.load() without the weights_only=True parameter.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-31238 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-31238
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-31238 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-31238
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Ludwig framework is vulnerable to insecure deserialization in its model serving component
Unverified legacy reference
URL: https://github.com/advisories/GHSA-xp5q-5q7g-q26r
github_advisory_database
-
Source reference
Unverified legacy reference
URL: https://www.notion.so/CVE-2026-31238-35d1e1393188819ea77ee98ca85a2878
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/pypa/advisory-database/tree/main/vulns/ludwig/PYSEC-2026-405.yaml
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://pypi.org/project/ludwig
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.