CVE-2023-6021: Ray Path Traversal vulnerability
Ray before 2.8.1 has a path traversal in the log API endpoint of its dashboard. An unauthenticated attacker can read any file on the server that the Ray process can read. Upgrade to Ray 2.8.1.
Published Nov 16, 2023 · Updated Jan 9, 2025 · Analysis Nov 2, 2026
What an attacker can do
The log API endpoint takes a file name and returns that log. It does not keep the resolved path inside the log directory, so .. sequences (CWE-22, CWE-29) reach files elsewhere on the system. No credentials are needed.
The attacker only needs to send requests to the dashboard, port 8265 by default. They cannot change files through this flaw. The CVSS 3.0 vector shows high confidentiality impact, low integrity impact and changed scope.
The payoff depends on what the Ray user can read: configuration, SSH keys, cloud credentials, API tokens in environment files and /proc data. That often leads to access to other systems. This is a sibling of the /static/ file read, CVE-2023-6020, which is another route to the same result through a different endpoint. Anyscale's blog says the fix ships in Ray 2.8.1, and it does not describe the endpoint in more detail.
Who is affected
The pip package ray below 2.8.1, with a dashboard that untrusted hosts can reach. Check your version:
pip show rayDashboards bound to all interfaces, or exposed by a Kubernetes service, are the main exposure.
ray
- Ecosystem
- PyPI
- Affected
- < 2.8.1
- Fixed in
- 2.8.1
- Check
pip show ray
How to fix it
Upgrade to Ray 2.8.1.
pip install -U "ray>=2.8.1"The sources list no workaround. Until you upgrade, restrict port 8265 with a firewall or security group and bind the dashboard to a trusted interface only. Rotate any credentials stored where the Ray user can read them.
How to tell if you were hit
Search dashboard and proxy logs for log API requests whose file name parameter holds .., encoded dots or an absolute path such as /etc/passwd, and for log requests from unfamiliar addresses. If a vulnerable dashboard was reachable from the internet, assume files were read and rotate the secrets they held.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
LFI in Ray's log API endpoint allows attackers to read any file on the server without authentication. The issue is fixed in version 2.8.1+. Ray maintainers response can be found here: https://www.anyscale.com/blog/update-on-ray-cves-cve-2023-6019-cve-2023-6020-cve-2023-6021-cve-2023-48022-cve-2023-48023
Credited to cpropps-sysdig.
Questions
- How does this differ from CVE-2023-6020?
Both are unauthenticated file reads in the Ray dashboard fixed in 2.8.1. This one is in the log API endpoint and uses path traversal. The other is in the
/static/directory.- Which version fixes CVE-2023-6021?
Ray 2.8.1 and later. Versions below 2.8.1 are affected, so upgrade the pip package ray and restart the cluster.
- Can the attacker modify files?
The advisory describes arbitrary file reads. The CVSS vector shows only a low integrity impact.
- Is it exploited in the wild?
No source I read says so for this CVE, and the entry has no CISA KEV data.
References
Read for this analysis:
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Ray vulnerabilities
All Ray entriesCVE-2026-57516
Ray: Arbitrary code execution via ray.data.read_webdataset default decoder: pickle.loads(value) and torch.load(weights_only=False)
high8.8Jul 24, 2026CVE-2026-41486
Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization
high8.9Apr 24, 2026CVE-2026-32981
Ray Dashboard is vulnerable to path traversal through its static file handling mechanism
high7.5Mar 17, 2026CVE-2026-27482
Ray dashboard DELETE endpoints allow unauthenticated browser-triggered DoS (Serve shutdown / job deletion)
medium5.9Feb 20, 2026CVE-2025-34351
Ray's New Token Authentication is Disabled By Default
critical9.3No fixNov 27, 2025CVE-2025-62593
Ray is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding Attack
critical9.4ExploitedNov 26, 2025
