# CVE-2026-57516: Ray < 2.56.0 Unsafe Deserialization RCE via WebDataset Reader

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-01T16:36:55.765Z
- Modified: 2026-11-08T14:06:30.686Z
- Also known as: GHSA-hhrp-gw25-jr43, PYSEC-2026-2273
- Weaknesses: CWE-94, CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- Anyscale, Inc Ray: before 2.56.0
- ray (PyPI): before 2.56.0
- anyscale ray: before 2.56.0

## Every score

- VulnCheck: CVSS: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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43> (exploit, fix, mitigation, patch, vendor-advisory, web)
- <https://github.com/ray-project/ray/releases/tag/ray-2.56.0> (advisory, product, release-notes, web)
- <https://github.com/ray-project/ray/pull/63469> (fix, issue-tracking, patch, web)
- <https://github.com/ray-project/ray/pull/63470> (fix, issue-tracking, patch, web)
- <https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader> (advisory, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2026-57516](https://www.cve.org/CVERecord?id=CVE-2026-57516), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-hhrp-gw25-jr43](https://github.com/advisories/GHSA-hhrp-gw25-jr43), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-57516](https://nvd.nist.gov/vuln/detail/CVE-2026-57516), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2273](https://osv.dev/vulnerability/PYSEC-2026-2273), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-57516 · Whole record: https://cve.day/CVE-2026-57516.json · Rebuilt by cve.day 2026-11-25T22:59:26.939Z
