RayApplication · Anyscale

CVE-2026-57516

HIGH · 8.8 CVSS v3.1 Published 2026-07-01
Fix available
A fix is available. Upgrade to 2.56.0 or later.
See remediation →
95/100
Remediation priority · Urgent
Public exploit Remotely reachable No privileges Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Ray's WebDataset reader contains an unsafe deserialization vulnerability where the _default_decoder() function in webdataset_datasource.py unconditionally calls pickle.loads() on .pkl/.pickle files and torch.load() with weights_only=False on .pt/.pth files from tar archives, allowing remote code execution when processing malicious archives on Ray workers.

MitigationUpgrade Ray to version 2.56.0 or later, which contains the patched _default_decoder() with safe deserialization. If upgrading is not immediately feasible, restrict access to read_webdataset() and validate all input tar archives before processing.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
RayApplication
Affected:< 2.56.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed Ray version
    Run `ray.__version__` in Python or execute `ray --version` from command line
    Affected if Version is lower than 2.56.0
  2. Identify WebDataset usage in code
    Search source code for imports of `webdataset` or usage of `WebDataset` class, and grep for `webdataset_datasource.py` in the Ray installation directory
    Affected if WebDataset reader is imported or used in any Python scripts or configuration files
  3. Verify _default_decoder function implementation
    Locate the webdataset_datasource.py file in the Ray installation (typically in ray/data/datasource/) and inspect the _default_decoder() function for pickle.loads() and torch.load() calls
    Affected if The function contains unconditional pickle.loads() on .pkl/.pickle files or torch.load() with weights_only=False on .pt/.pth files
  4. Check for untrusted tar archive processing
    Audit data pipelines that use Ray Data's WebDataset to identify if they process .tar archives from untrusted or external sources
    Affected if Ray workers process .tar archives containing .pkl, .pickle, .pt, or .pth files from sources that are not explicitly trusted

You are affected if Ray version is below 2.56.0 AND your workloads use the WebDataset reader to process tar archives that could contain .pkl/.pickle/.pt/.pth files from untrusted sources.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 2.56.0 or later
Fixed in 2.56.0
Vendor patch github.com →
Interim mitigation

Upgrade Ray to version 2.56.0 or later, which contains the patched _default_decoder() with safe deserialization. If upgrading is not immediately feasible, restrict access to read_webdataset() and validate all input tar archives before processing.

Recommended fix High confidence

Ray 2.56.0

  1. Upgrade Ray to version 2.56.0 or later by running: pip install ray>=2.56.0
  2. After upgrade, verify the version with: python -c 'import ray; print(ray.__version__)'
  3. Ensure all Ray workers are restarted to pick up the updated version
  4. If using read_webdataset(), ensure your data sources are trusted as an additional defense-in-depth measure

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Ray Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing12.0 h
  • Review / QA4.0 h
28.0 hours of engineering $4,760
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,616.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-57516 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-57516 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data