High

Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization

  • Disclosed: 24.04.2026
  • Updated: 11.10.2026 15:17

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) ray >= 2.49.0, < 2.55.0 2.55.0
Python (PyPI) ve-ray <= 2.54.0 no fix

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-502, CWE-94
Platform
Python (PyPI)
Package
ray, ve-ray
Disclosed
24.04.2026
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2272 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-2296 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-mw35-8rx3-xf9r - CC BY 4.0

Vulnerability history: ray

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (11) in the archive
Total entries
11
First → latest
11.2023 07.2026
Without a fix
2
Exploited in attacks
1

Severity breakdown

  • Critical 6
  • High 3
  • Medium 2

Disclosures per year

  1. 2023: 4
  2. 2024: 0
  3. 2025: 3
  4. 2026: 4
Severity:
  1. Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization this entry
    High CVE-2026-41486 >= 2.49.0, < 2.55.0 2.55.0
  2. Critical CVE-2025-34351 <= 2.52.0 no fix
  3. Critical Exploited in attacks CVE-2025-62593 < 2.52.0 2.52.0
  4. Critical · 9.8 CVE-2023-48022 <= 2.49.2 no fix
  5. Critical · 9.3 CVE-2023-6020 < 2.8.1 2.8.1
  6. Critical · 9.8 CVE-2023-6019 < 2.8.1 2.8.1
  7. Critical · 9.3 CVE-2023-6021 < 2.8.1 2.8.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.