LUDWIG · CVE-2026-31238 · Package
NO FIX YET · SEE WHAT TO DO
Ludwig through 0.10.4 loads model weight files with torch.load() without weights_only=True when running the ludwig serve command. A crafted PyTorch model file can run arbitrary Python code on the server hosting the model.
first public May 12, 2026 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams that run the ludwig serve command to host Ludwig models and load weight files that could come from an untrusted source. Applications that only train models locally or never serve weight files from outside the team are less exposed. The sources do not say whether the server itself must be reachable from the internet.
Not affected if no-ludwig-serve, trusted-model-files-only
Who cares ludwig, ml-serving, python
pip show ludwig and compare it to 0.10.4.ludwig serve that load model files from paths or sources outside your control.The Ludwig framework thru 0.10.4 is vulnerable to insecure deserialization (CWE-502) in its model serving component. When starting a model server with the ludwig serve command, the framework loads model weight files using torch.load() without enabling the security-restrictive weights_only=True parameter. This default behavior allows the deserialization of arbitrary Python objects via the pickle module. An attacker can exploit this by providing a maliciously crafted PyTorch model file, leading to arbitrary code execution on the system hosting the Ludwig model server.
This page as .md · .json · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.