CVE-2026-41486: CWE-94: Improper Control of Generation of Code ('Code Injection') in ray-project ray
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.
AI Analysis
Technical Summary
Ray versions from 2.54.0 to before 2.55.0 register custom Arrow extension types globally in PyArrow. When PyArrow reads a Parquet file containing these extensions, it invokes __arrow_ext_deserialize__ on the metadata bytes. Ray's implementation directly passes these bytes to cloudpickle.loads(), enabling arbitrary code execution during schema parsing. This vulnerability is classified under CWE-94 (Improper Control of Generation of Code) and CWE-502 (Deserialization of Untrusted Data). The issue is patched in Ray version 2.55.0.
Potential Impact
An attacker who can supply a crafted Parquet file containing malicious metadata can achieve arbitrary code execution on the system running the vulnerable Ray version during schema parsing. This occurs before any row data is read, potentially allowing early compromise of the environment processing the data. The vulnerability is rated high severity with a CVSS 4.0 score of 8.9.
Mitigation Recommendations
Upgrade Ray to version 2.55.0 or later, where this vulnerability is patched. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in version 2.55.0.
CVE-2026-41486: CWE-94: Improper Control of Generation of Code ('Code Injection') in ray-project ray
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.
CVSS v4.0
Score 8.9high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Ray versions from 2.54.0 to before 2.55.0 register custom Arrow extension types globally in PyArrow. When PyArrow reads a Parquet file containing these extensions, it invokes __arrow_ext_deserialize__ on the metadata bytes. Ray's implementation directly passes these bytes to cloudpickle.loads(), enabling arbitrary code execution during schema parsing. This vulnerability is classified under CWE-94 (Improper Control of Generation of Code) and CWE-502 (Deserialization of Untrusted Data). The issue is patched in Ray version 2.55.0.
Potential Impact
An attacker who can supply a crafted Parquet file containing malicious metadata can achieve arbitrary code execution on the system running the vulnerable Ray version during schema parsing. This occurs before any row data is read, potentially allowing early compromise of the environment processing the data. The vulnerability is rated high severity with a CVSS 4.0 score of 8.9.
Mitigation Recommendations
Upgrade Ray to version 2.55.0 or later, where this vulnerability is patched. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in version 2.55.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T16:14:19.007Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fe5e60cbff5d8610336e6d
Added to database: 05/08/2026, 22:06:24 UTC
Last enriched: 05/16/2026, 10:16:27 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 102
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.