CVE-2026-41486: Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization
Ray 2.49.0 through 2.54.0 runs attacker code when it reads a crafted Parquet file. Ray Data's tensor extension types pass file metadata to cloudpickle.loads() during schema parsing. Upgrade to Ray 2.55.0. Any Python process that imports Ray Data and reads Parquet is exposed.
Published Apr 24, 2026 · Updated May 13, 2026 · Analysis Oct 29, 2026
What an attacker can do
Ray Data registers three Arrow extension types in PyArrow: ray.data.arrow_tensor, ray.data.arrow_tensor_v2 and ray.data.arrow_variable_shaped_tensor. When PyArrow reads a Parquet file with a column of one of those types, it calls __arrow_ext_deserialize__ on the field's metadata bytes. Ray's version of that method, via _deserialize_with_fallback, handed the bytes straight to cloudpickle.loads(). Pickle runs code on load, and this happens while the schema is parsed, before any row is read.
The types are registered globally, so the exposure is wider than ray.data.read_parquet(). Calls to pyarrow.parquet.read_table() and pandas.read_parquet() in the same process also trigger it.
The attacker needs no cluster access or authentication. They only need to place a crafted Parquet file where a Ray Data pipeline will read it, for example in a shared bucket, a dataset download or an upload directory. The result is code execution as the Ray worker, with its cloud credentials and data access. The bug is a regression. Ray fixed a similar issue in May 2024, and a July 2025 change reintroduced pickle loading in the replacement types.
Who is affected
Ray from 2.49.0 up to but not including 2.55.0 is affected. The vulnerable code first shipped in 2.49.0. Check each environment, including worker images:
pip show rayAny Python process that imports Ray Data and reads Parquet is affected, not only Ray cluster nodes.
ray
- Ecosystem
- PyPI
- Affected
- >= 2.49.0, < 2.55.0
- Fixed in
- 2.55.0
- Check
pip show ray
How to fix it
Upgrade to Ray 2.55.0:
pip install --upgrade ray==2.55.0The fix reads the extension metadata as JSON by default and only falls back to cloudpickle when an environment variable explicitly enables it. Malicious payloads should raise ValueError instead of running. Files written by Ray 2.49 to 2.54 with cloudpickle metadata will not load by default after the upgrade. Turning on the opt-in restores the unsafe path, so enable it only for files you trust. The advisory gives no other workaround. Until you upgrade, read Parquet only from sources you control.
How to tell if you were hit
Find Parquet files from untrusted sources that contain the extension type names ray.data.arrow_tensor, ray.data.arrow_tensor_v2 or ray.data.arrow_variable_shaped_tensor in the schema metadata, in data you did not write with Ray. Check Ray worker logs and process trees for unexpected child processes, outbound connections or file writes at the time a Parquet read began. On a patched version, a ValueError at schema parsing from such a file points to an attempted attack.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Ray Data registers custom Arrow extension types (ray.data.arrow_tensor, ray.data.arrow_tensor_v2, ray.data.arrow_variable_shaped_tensor) globally in PyArrow. When PyArrow reads a Parquet file containing one of these extension types, it calls __arrow_ext_deserialize__ on the field's metadata bytes. Ray's implementation passes these bytes directly to cloudpickle.loads(), achieving arbitrary code execution during schema parsing, before any row data is read.
In May 2024, Ray fixed a related vulnerability in PyExtensionType-based extension types (issue #41314, PR #45084). In July 2025, PR #54831 introduced cloudpickle.loads() into the replacement extension types' deserialization path, reintroducing the same class of vulnerability.
Impact
- Affected versions: Ray 2.49.0 through 2.54.0 (latest release as of March 2026). The vulnerable
_deserialize_with_fallbackfunction withcloudpickle.loads()was introduced in commitf6d21db1a4(PR #54831, July 2025), first released in Ray 2.49.0. - Affected configurations: Any process that uses Ray Data and reads Parquet files. The extension types are registered globally in PyArrow, so all Parquet reads in the process are affected, including
ray.data.read_parquet(),pyarrow.parquet.read_table(),pandas.read_parquet(), etc. - Attacker prerequisites: The attacker must place a crafted Parquet file where a Ray Data pipeline reads it. No authentication or cluster access is required. The Parquet file must contain a column with a
ray.data.arrow_tensor(or v2, or variable-shaped) extension type name, which makes this a targeted attack against Ray Data users.
Credited to shakevsky.
Questions
- Does CVE-2026-41486 only affect ray.data.read_parquet()?
No. The extension types register globally in PyArrow, so pyarrow.parquet.read_table() and pandas.read_parquet() in a process that imported Ray Data are affected too.
- Does the attacker need access to my Ray cluster?
No. They only need to get a crafted Parquet file in front of a Ray Data pipeline. The file needs a column with one of the three Ray tensor extension type names.
- Which Ray version fixes it?
Ray 2.55.0. Versions 2.49.0 through 2.54.0 are affected. Older Parquet files with pickled tensor metadata need an explicit opt-in to load after the fix.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Ray vulnerabilities
All Ray entriesCVE-2026-57516
Ray: Arbitrary code execution via ray.data.read_webdataset default decoder: pickle.loads(value) and torch.load(weights_only=False)
high8.8Jul 24, 2026CVE-2026-32981
Ray Dashboard is vulnerable to path traversal through its static file handling mechanism
high7.5Mar 17, 2026CVE-2026-27482
Ray dashboard DELETE endpoints allow unauthenticated browser-triggered DoS (Serve shutdown / job deletion)
medium5.9Feb 20, 2026CVE-2025-34351
Ray's New Token Authentication is Disabled By Default
critical9.3No fixNov 27, 2025CVE-2025-62593
Ray is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding Attack
critical9.4ExploitedNov 26, 2025CVE-2025-1979
ray vulnerable to Insertion of Sensitive Information into Log File
medium6.4Mar 6, 2025
