CVE-2023-6021: Ray Path Traversal vulnerability in ray
Summary
CVE-2023-6021: Ray Path Traversal vulnerability. Affects ray versions < 2.8.1. Fixed in 2.8.1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Ray is a Python library for distributed computing that provides a simple and efficient way to parallelize Python code. It is commonly used for high-performance computing and machine learning tasks. The vulnerability in Ray's log API endpoint allows attackers to exploit a local file inclusion (LFI) vulnerability, enabling them to read any file on the server without authentication.
Vulnerability Detail
The Ray Path Traversal vulnerability arises from a lack of proper input validation in the log API endpoint. By manipulating the input parameters, an attacker can traverse the file system and access sensitive files on the server. This can lead to unauthorized disclosure of sensitive information, such as configuration files, credentials, or other sensitive data stored on the server. The vulnerability has a CVSSv3 severity score of 9.3 (Critical).
How To Fix
Latest published version: 2.59.0 as of 23 Oct 2026
pip install --upgrade "ray==2.59.0"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.8.1
This is the first release that contains the fix.
pip install --upgrade "ray==2.8.1"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can disable or restrict access to the log API endpoint in their Ray deployments. This can be done by modifying the Ray configuration or firewall rules to block access to the vulnerable endpoint. However, applying the official patch by upgrading to a secure version is the recommended solution.
Conclusion
The Ray Path Traversal vulnerability in the log API endpoint can allow attackers to read sensitive files on the server without authentication. It is crucial to upgrade to a secure version of the Ray package (2.6.4 or later) to mitigate this vulnerability. Applying the official patch is the recommended solution. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for ray →
FAQ
Ray is a Python library for distributed computing that enables parallel execution of Python code.
The vulnerability allows attackers to read any file on the server without authentication, potentially leading to unauthorized access to sensitive information.
To fix the vulnerability, upgrade the Ray package to version 2.6.4 or later using the command 'pip install --upgrade ray'.
As a temporary workaround, users can disable or restrict access to the log API endpoint in their Ray deployments.
The vulnerability has a CVSSv3 severity score of 9.3 (Critical).
References
Related vulnerabilities
Recent vulnerabilities recorded for ray.