INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2026-41486

Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization

CVE-2026-41486 ยท 2026-04-24 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Code and command execution
Affected
ray (PyPI)
CVSS
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
EPSS
0.5% chance of exploitation in 30 days

How it works, in short

Ray passes the metadata of a Parquet extension type to cloudpickle.loads, so opening a crafted Parquet file runs code during schema parsing. (Our summary, written by a model. The source text is below.)

Details

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

References

Source: GitHub Advisory Database, used under CC BY 4.0.