{"cve":"CVE-2026-57516","nvd":{"published":"2026-07-01T17:16:37.390","modified":"2026-10-25T17:10:00.197","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":8.6},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-502"],"references":["https://github.com/ray-project/ray/pull/63469","https://github.com/ray-project/ray/pull/63470","https://github.com/ray-project/ray/releases/tag/ray-2.56.0","https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43","https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader"],"products":["anyscale:ray"],"source":"nvd","synced_at":"2026-10-25T17:50:06.907763985+00:00"},"epss":{"cve":"CVE-2026-57516","score":0.00858,"percentile":0.58177,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-hhrp-gw25-jr43","url":"https://osv.dev/vulnerability/GHSA-hhrp-gw25-jr43","summary":"Ray: Arbitrary code execution via ray.data.read_webdataset default decoder: pickle.loads(value) and torch.load(weights_only=False)","modified":"2026-09-10T03:50:52.427940507Z","packages":[{"ecosystem":"PyPI","name":"ray","purl":"pkg:pypi/ray","ranges":["<2.56.0"],"fixed":["2.56.0"]}]},{"id":"PYSEC-2026-2273","url":"https://osv.dev/vulnerability/PYSEC-2026-2273","summary":"","modified":"2026-07-13T07:15:44.097966037Z","packages":[{"ecosystem":"PyPI","name":"ray","purl":"pkg:pypi/ray","ranges":["<2.56.0"],"fixed":["2.56.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}