{"id":"CVE-2026-57516","summary":"Ray \u003c 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.","aliases":["GHSA-hhrp-gw25-jr43","PYSEC-2026-2273"],"modified":"2026-08-05T03:32:21.445459915Z","published":"2026-07-01T16:36:55.765Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57516.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-502"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57516.json"},{"type":"ADVISORY","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":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57516"},{"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":"PACKAGE","url":"https://github.com/ray-project/ray"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ray-project/ray","events":[{"introduced":"0"},{"fixed":"637fd062205393b9e1929996bfe1d49bd3f8469d"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:anyscale:ray:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.56.0"}]}}],"versions":["ray-0.7.0","ray-0.6.5","ray-0.6.4","ray-0.6.3","ray-0.6.2","ray-0.6.1","ray-0.6.0","ray-0.5.3","ray-0.5.2","ray-0.5.1","ray-0.5.0","ray-0.4.0","ray-0.3.1","ray-0.3.0","ray-0.2.2","ray-0.2.1","ray-0.2.0","ray-0.1.2","ray-0.1.1","ray-0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57516.json"}}],"schema_version":"1.8.0","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"}]}