Advisory

PYSEC-2026-2273

Also known as: CVE-2026-57516, GHSA-hhrp-gw25-jr43

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-07-01 17:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

ray

PyPI · All systems

Affected

  • introduced 0, fixed 2.56.0 (ecosystem)

Fixed versions

2.56.0

Fix

  • Fixed version 2.56.0
    pip install --upgrade ray==2.56.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences