8.9high
Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization
- Severity
- 8.9high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.70% (higher than 49% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mw35-8rx3-xf9rPYSEC-2026-2272PYSEC-2026-2296
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| ray-project ray | >= 2.54.0, < 2.55.0 | CVE List |
| ray (PyPI) | from 2.49.0 before 2.55.0, up to 2.54.0 | GitHub Advisory Database, PyPA Advisory Database |
| anyscale ray | 2.54.0 | NVD |
| ve-ray (PyPI) | up to 2.54.0 | PyPA Advisory Database |
All scores
| GitHub_M | 8.9high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Ray es un motor de cómputo de IA. Desde la versión 2.54.0 hasta antes de la versión 2.55.0, Ray Data registra tipos de extensión Arrow personalizados (ray.data.arrow_tensor, ray.data.arrow_tensor_v2, ray.data.arrow_variable_shaped_tensor) globalmente en PyArrow. Cuando PyArrow lee un archivo Parquet que contiene uno de estos tipos de extensión, llama a __arrow_ext_deserialize__ en los bytes de metadatos del campo. La implementación de Ray pasa estos bytes directamente a cloudpickle.loads(), logrando ejecución de código arbitrario durante el análisis del esquema, antes de que se lea cualquier dato de fila. Este problema ha sido parcheado en la versión 2.55.0.
References
| https://github.com/ray-project/ray/security/advisories/GHSA-mw35-8rx3-xf9r | advisory, vendor-advisory, web | |
| https://github.com/ray-project/ray/pull/62056 | fix, issue-tracking, patch, web | |
| https://github.com/ray-project/ray/commit/c02bd31ae31996805868baa446a131a8d304525f | fix, patch, web | |
| https://github.com/ray-project/ray/releases/tag/ray-2.55.0 | advisory, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-41486 | advisory | |
| https://github.com/ray-project/ray/pull/54831 | web | |
| https://github.com/ray-project/ray | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-41486 changed 2026-05-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mw35-8rx3-xf9r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-41486 changed 2026-11-11 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2272 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-2296 changed 2026-07-13 | CC-BY-4.0 |