CVE-2026-41486: Ray Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-mw35-8rx3-xf9r
CWE-502 CWE-94
Published
Advisory Summary

CVE-2026-41486 is a HIGH remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Ray libraries in the PyPI ecosystem. The issue involves remote code execution via parquet arrow extension type deserialization. Remediation is available by upgrading affected packages to version 2.55.0.

CVE-2026-41486 at a Glance

CVE Identifier CVE-2026-41486
GHSA Identifier GHSA-mw35-8rx3-xf9r
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Ray
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-41486

To remediate this vulnerability, upgrade all affected Ray dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ray fixed: 2.55.0
pip install ray>=2.55.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show ray

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-41486, inspect your installed packages using pip:

pip show ray

Analyze the terminal output to locate any version of Ray in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.55.0), your application is affected.

Note: The pip show ray command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Ray, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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](https://github.com/ray-project/ray/issues/41314), [PR #45084](https://github.com/ray-project/ray/pull/45084)). In July 2025, [PR #54831](https://github.com/ray-project/ray/pull/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](https://github.com/ray-project/ray/pull/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.

CVE-2026-41486 Affected Ray Versions

1 component(s)
Fixed Versions:
2.55.0
Product / Package Ecosystem Affected Versions Fixed Version
ray
PyPI
≥ 2.49.0
< 2.55.0
2.55.0

References

Frequently Asked Questions

What is CVE-2026-41486?
CVE-2026-41486 is a security vulnerability in Ray involving Remote Code Execution via Parquet Arrow Extension Type Deserialization under CWE-502: Deserialization of Untrusted Data.
Which Ray versions are affected?
Affected versions include releases prior to 2.55.0 across affected packages: ray.
What version fixes CVE-2026-41486?
Upgrading to 2.55.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ray affected?
Yes, ray is affected in releases prior to 2.55.0. Upgrade your dependency to 2.55.0 or later.
What CWE is associated with CVE-2026-41486?
CVE-2026-41486 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2026-41486?
Run the dependency tree command: 'pip show ray'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mw35-8rx3-xf9r",
  "modified" : "2026-05-13T13:37:51Z",
  "published" : "2026-04-24T16:15:00Z",
  "aliases" : [ "CVE-2026-41486" ],
  "summary" : "Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization",
  "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.\n\nIn May 2024, Ray fixed a related vulnerability in `PyExtensionType`-based extension types ([issue #41314](https://github.com/ray-project/ray/issues/41314), [PR #45084](https://github.com/ray-project/ray/pull/45084)). In July 2025, [PR #54831](https://github.com/ray-project/ray/pull/54831) introduced `cloudpickle.loads()` into the replacement extension types' deserialization path, reintroducing the same class of vulnerability.\n\n## Impact\n\n- **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](https://github.com/ray-project/ray/pull/54831), July 2025), first released in Ray 2.49.0.\n- **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.\n- **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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ray"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.49.0"
      }, {
        "fixed" : "2.55.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ray-project/ray/security/advisories/GHSA-mw35-8rx3-xf9r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41486"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ray-project/ray/pull/54831"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ray-project/ray/pull/62056"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ray-project/ray/commit/c02bd31ae31996805868baa446a131a8d304525f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ray-project/ray"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ray-project/ray/releases/tag/ray-2.55.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502", "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-24T16:15:00Z",
    "nvd_published_at" : "2026-05-08T22:16:29Z"
  }
}