HIGH 8.8
PYSEC-2026-2272
Details
Ray is an AI compute engine. From version 2.54.0 to before version 2.55.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. This issue has been patched in version 2.55.0.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI / ray
Introduced in:
0 No fixed version published yet for ray (pip). Pin to a known-safe version or switch to an alternative.