CVE-2026-57516
Ray prior to 2.56.0 contains an unsafe deserialization …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ray-project/ray/pull/63469
- github.com/ray-project/ray/pull/63470
- github.com/ray-project/ray/releases/tag/ray-2.56.0
- github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43
- www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader
- nvd.nist.gov/vuln/detail/CVE-2026-57516
- github.com/ray-project/ray/commit/41443a18f9e6403a072de69098a279c23e2d943c
- github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2026-2273.yaml
- nvd.nist.gov/vuln/detail/CVE-2026-57516
- cve.org/CVERecord?id=CVE-2026-57516
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.