CVE-2026-57516
HIGH 8.6CVSS 4.0Ray: Arbitrary code execution via ray.data.read_webdataset default decoder: pickle.loads(value) and torch.load(weights_only=False)
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.
- Published
- 1 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-502CWE-94
- Also known as
- GHSA-hhrp-gw25-jr43PYSEC-2026-2273
- Sources
- NVDJSONOSV GHSA-hhrp-gw25-jr43JSONOSV PYSEC-2026-2273JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.6 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anyscale | raycpe:2.3:a:anyscale:ray:*:*:*:*:*:*:*:* |
< 2.56.0 | 2.56.0 |
| OSV | PyPI | ray | < 2.56.0 | 2.56.0 |
References
- https://github.com/ray-project/ray/pull/63469 · Issue Tracking, Patch, WEB, FIX
- https://github.com/ray-project/ray/pull/63470 · Issue Tracking, Patch, WEB, FIX
- https://github.com/ray-project/ray/releases/tag/ray-2.56.0 · Product, Release Notes, WEB, ADVISORY
- https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43 · Exploit, Mitigation, Patch, Vendor Advisory, WEB, FIX
- https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-57516 · ADVISORY
- https://github.com/ray-project/ray/commit/41443a18f9e6403a072de69098a279c23e2d943c · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2026-2273.yaml · WEB
- https://github.com/ray-project/ray · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 1 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jul 2026)