# CVE-2023-6021: PYSEC-2026-515 - Ray Path Traversal vulnerability

Source: https://junglewise.ai/threats/cve-2023-6021-ray-path-traversal-in-log-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-29. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2023-6021 · Severity: low · CVSS 3 · Published 2026-06-29

Ray is a distributed computing engine used for AI and machine learning workloads. An unauthenticated attacker can read arbitrary files on a Ray server through a path traversal vulnerability in the log API endpoint, potentially exposing sensitive configuration files, credentials, or application data without any authentication required.

Technologies: [ray (PyPI)](https://junglewise.ai/threats/technologies/ray). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-6021 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-6021 being exploited in the wild.

**How severe is CVE-2023-6021?** Low severity, with a CVSS score of 3, published 29 June 2026.

**Which products and versions are affected?** ray (PyPI) ECOSYSTEM:introduced=0,fixed=2.8.1.

**Is there a fix for CVE-2023-6021?** Yes. ray (PyPI): upgrade to 2.8.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2023-6021 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2023-6021?** Check whether you run ray (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- ray (PyPI): upgrade to 2.8.1 or later

  ```sh
  pip install "ray>=2.8.1"
  ```


## Technical details

The vulnerability is a local file inclusion (LFI) in Ray's log API endpoint caused by improper path validation (CWE-22: Improper Limitation of a Pathname to a Restricted Directory, and CWE-29: Path Traversal). The vulnerable endpoint does not properly sanitize user-supplied file path parameters, allowing attackers to traverse directories using sequences like `../` to access files outside the intended log directory. The attack requires only network access to the Ray API endpoint and no authentication; an attacker can directly read arbitrary files on the host system. The vulnerability affects all versions prior to 2.8.1, which contains the fix.

## Affected products

- Ray Ray prior to 2.8.1

## Identifiers

- CVE-2023-6021
- GHSA-3pww-qvr8-6mhp
- PYSEC-2026-515

## Timeline

- 2023-11-16: disclosed
- 2023-11-16: patched: Fix released in Ray 2.8.1

## References

- [https://github.com/ray-project/ray](https://github.com/ray-project/ray)

## Related threats

- [Ray unsafe deserialization in WebDataset and Parquet readers](https://junglewise.ai/threats/cve-2026-57516-ray-unsafe-deserialization-in-webdataset-and-parquet-readers)
- [PYSEC-2026-517 - Ray has arbitrary code execution via jobs submission API](https://junglewise.ai/threats/cve-2023-48022-ray-has-arbitrary-code-execution-via-jobs-submission-api)
- [PYSEC-2026-516 - Ray Missing Authorization vulnerability](https://junglewise.ai/threats/cve-2023-6020-ray-missing-authorization-vulnerability)
- [PYSEC-2026-519 - Ray OS Command Injection vulnerability](https://junglewise.ai/threats/cve-2023-6019-ray-os-command-injection-vulnerability)
- [Ray Ray Data remote code execution via Parquet deserialization](https://junglewise.ai/threats/cve-2026-41486-ray-ray-data-remote-code-execution-via-parquet-deserialization)
