torch.load of Kubeflow pipeline model weights in ARTMITRE service request: 1988584
Status: RESERVED (pending a qualifying public reference per CNA Rules §5.3).
The Adversarial Robustness Toolbox (ART) thru 1.20.1 contains an insecure deserialization vulnerability (CWE-502) in its Kubeflow component’s model loading functionality. When loading model weights from a file (e.g., model.pt) during robustness evaluation, the code uses torch.load() without the security-restrictive weights_only=True parameter. This allows the deserialization of arbitrary Python objects via the Pickle module. An attacker can exploit this by uploading a maliciously crafted model file to an object storage location referenced by the pipeline, or by controlling the model_id parameter to point to such a file. When the pipeline loads the model, the malicious payload is executed, leading to remote code execution.
ART’s Kubeflow evaluation path downloads model.pt from attacker-influenced storage and calls torch.load with unsafe defaults. A poisoned checkpoint executes arbitrary pickle gadgets inside the evaluation worker.
model_id / COS object paths consumed by cos.fget_object before torch.load.torch.load(weights_filename, map_location=device) without weights_only=True.High for shared Kubeflow clusters with writable artifact stores.
torch.load(..., weights_only=True) where compatible; isolate evaluation pods.