Ray
Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.54.0, < 2.55.0
Fixed in 2.55.0
Mitigation
Upgrade ray to 2.55.0 or later.
References
- Vendor advisory github.com/ray-project/ray/security/advisories…
- Patch github.com/ray-project/ray/pull/62056
- Patch github.com/ray-project/ray/commit/c02bd31ae319…
1 more
- Release notes github.com/ray-project/ray/releases/tag/ray-2.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.