CVE-2023-6021 Ray Log File Local File Include
Attackers can read arbitrary files on the server via the Ray log API endpoint without authentication, exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-6021?
CVE-2023-6021 is a high-severity path traversal vulnerability in ray-project/ray, published on 16 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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
Which versions are affected by CVE-2023-6021?
3 open source packages ship an affected version, including ray. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ray PyPI | All versions | 2.8.1 |
ray PyPI | All versions | 2.8.1 |
ray PyPI | All versions | 2.8.1 |
Products include Ray Project Ray.
How do I fix CVE-2023-6021?
Upgrade ray to 2.8.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-6021 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-6021 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in ray-project/ray
Sources
Also known as GHSA-3pww-qvr8-6mhp, PYSEC-2026-515.