CVE-2026-41486
JSON

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 packageVersionsReported by
ray-project ray>= 2.54.0, < 2.55.0CVE List
ray (PyPI)from 2.49.0 before 2.55.0, up to 2.54.0GitHub Advisory Database, PyPA Advisory Database
anyscale ray2.54.0NVD
ve-ray (PyPI)up to 2.54.0PyPA Advisory Database

All scores

GitHub_M8.9high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-502

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

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_fallback function with cloudpickle.loads() was introduced in commit f6d21db1a4 (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

Sources

SourceRecordLicence
CVE ListCVE-2026-41486 changed 2026-05-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-mw35-8rx3-xf9r changed 2026-09-10CC-BY-4.0
NVDCVE-2026-41486 changed 2026-11-11Public domain
PyPA Advisory DatabasePYSEC-2026-2272 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-2296 changed 2026-07-13CC-BY-4.0