CVE-2026-57516 Details
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.
A remote code execution vulnerability has been identified in the Ray library, specifically in versions prior to 2.56.0. The issue arises from unsafe deserialization in the WebDataset reader, where the default decoder unconditionally processes tar entries with certain file extensions using pickle and torch functions that execute arbitrary code. This vulnerability can be exploited by supplying a malicious tar archive to the read_webdataset() function, leading to code execution on Ray remote workers.
Users can upgrade to Ray version 2.56.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43 | CISA-ADP | ExploitMitigationPatchVendor Advisory |
| https://github.com/ray-project/ray/pull/63469 | [email protected] | Issue TrackingPatch |
| https://github.com/ray-project/ray/pull/63470 | [email protected] | Issue TrackingPatch |
| https://github.com/ray-project/ray/releases/tag/ray-2.56.0 | [email protected] | ProductRelease Notes |
| https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43 | [email protected] | ExploitMitigationPatchVendor Advisory |
| https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| anyscale ray | < 2.56.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jul 6, 2026 | Initial Analysis | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jul 1, 2026 | New CVE Received | [email protected] |