CVE-2026-57516
Ray < 2.56.0 Unsafe Deserialization RCE via WebDataset Reader
- State
- Published
- Severity
- 8.6 High
- Published
- Jul 1, 2026
- Updated
- Oct 8, 2026
- Reserved
- Jun 24, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.6 High | 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 | VulnCheck |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-502 Deserialization of Untrusted Data
Affected Products
| Product | Versions |
|---|---|
RayAnyscale, Inc |
|
References
- Release Notesrelease-notes
- GitHub Security Advisory (GHSA-hhrp-gw25-jr43)vendor-advisory
- Fix PR (1)patchissue-tracking
- Fix PR (2)patchissue-tracking
- https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-readerthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.