---
id: CVE-2026-57516
title: >-
  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
summary: >-
  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_dec…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
vendor: anyscale
product: ray
affected:
  - ray < 2.56.0
patched:
  - ray 2.56.0
published: '2026-07-01'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T16:17:22.863'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-57516'
references:
  - url: 'https://github.com/ray-project/ray/pull/63469'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ray-project/ray/pull/63470'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ray-project/ray/releases/tag/ray-2.56.0'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/ray-unsafe-deserialization-rce-via-webdataset-reader
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ray-project/ray/security/advisories/GHSA-hhrp-gw25-jr43'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57516.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-57516'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2496087'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-57516'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-57516'
  - url: 'https://access.redhat.com/errata/RHSA-2026:61627'
  - url: 'https://access.redhat.com/errata/RHSA-2026:68699'
  - url: 'https://access.redhat.com/errata/RHSA-2026:76041'
  - url: 'https://access.redhat.com/errata/RHSA-2026:76043'
  - url: >-
      https://github.com/ray-project/ray/commit/41443a18f9e6403a072de69098a279c23e2d943c
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/ray/PYSEC-2026-2273.yaml
  - url: 'https://github.com/ray-project/ray'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - osv
  - pip
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-07-01T17:53:01.380220Z'
epss: 0.00858
epssPercentile: 0.58251
aliases:
  - GHSA-hhrp-gw25-jr43
  - PYSEC-2026-2273
ecosystem: pip
ingestedAt: '2026-07-13T18:58:08.788Z'
---

## Overview

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.

## Affected

- `ray < 2.56.0`

## Remediation

Upgrade past the affected range:

- `ray 2.56.0`

## Package advisory (CVE-2026-57516)

Affected packages:

- `ray < 2.56.0`

Patched in:

- `ray 2.56.0`

Source: https://osv.dev/vulnerability/GHSA-hhrp-gw25-jr43

## Vendor advisories

- **RHSA-2026:61627** · Red Hat · fixed in: Red Hat AI Inference Server 3.2 · released 2026-08-31 · [advisory](https://access.redhat.com/errata/RHSA-2026:61627)
- **RHSA-2026:68699** · Red Hat · fixed in: Red Hat AI Inference Server 3.3 · released 2026-09-17 · [advisory](https://access.redhat.com/errata/RHSA-2026:68699)
- **RHSA-2026:76041** · Red Hat · fixed in: Red Hat Enterprise Linux AI 3.3 · released 2026-10-05 · [advisory](https://access.redhat.com/errata/RHSA-2026:76041)
- **RHSA-2026:76043** · Red Hat · fixed in: Red Hat Enterprise Linux AI 3.3 · released 2026-10-05 · [advisory](https://access.redhat.com/errata/RHSA-2026:76043)
- **Red Hat VEX** · Important · affected: Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI) · no fix planned: Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI) · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-57516.json)
