CVE-2026-57516
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 · uneditedRay 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 confidenceRay'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.
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< 2.56.0CVSS 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 checksWork through these to decide whether this CVE applies to you.
-
Check installed Ray versionRun `ray.__version__` in Python or execute `ray --version` from command lineAffected if Version is lower than 2.56.0
-
Identify WebDataset usage in codeSearch source code for imports of `webdataset` or usage of `WebDataset` class, and grep for `webdataset_datasource.py` in the Ray installation directoryAffected if WebDataset reader is imported or used in any Python scripts or configuration files
-
Verify _default_decoder function implementationLocate 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() callsAffected if The function contains unconditional pickle.loads() on .pkl/.pickle files or torch.load() with weights_only=False on .pt/.pth files
-
Check for untrusted tar archive processingAudit data pipelines that use Ray Data's WebDataset to identify if they process .tar archives from untrusted or external sourcesAffected 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.
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 · scoped2.56.0
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.
Ray 2.56.0
- Upgrade Ray to version 2.56.0 or later by running: pip install ray>=2.56.0
- After upgrade, verify the version with: python -c 'import ray; print(ray.__version__)'
- Ensure all Ray workers are restarted to pick up the updated version
- 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.
- Consultation4.0 h
- Implementation8.0 h
- Testing12.0 h
- Review / QA4.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-57516 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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