CVE-2023-6020 Ray Static File Local File Include
Attackers can read arbitrary files on the server via path traversal in Ray's static file directory without authentication.
- 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-6020?
CVE-2023-6020 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 /static/ directory allows attackers to read any file on the server without authentication.
Weakness: CWE-862
Which versions are affected by CVE-2023-6020?
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-6020?
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-6020 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-6020 exists.
Public exploit code: 1 Metasploit module and 1 Nuclei template.
Other vulnerabilities in ray-project/ray
Sources
Also known as GHSA-6cxr-8q3m-jwrr, PYSEC-2026-516.