---
id: "CVE-2023-6021"
page: "https://infrastack.ai/live/CVE-2023-6021"
kind: "vulnerability"
aliases: ["CVE-2023-6021", "GHSA-3pww-qvr8-6mhp"]
title: "Ray Path Traversal vulnerability"
severity: "critical"
cvss: 9.3
epss: 0.37076
exploited: false
status: "open"
category: "package"
products: [{"name": "ray", "fixed": ["2.8.1"], "affected": "< 2.8.1", "ecosystem": "pypi"}, {"name": "ray project ray", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["pypi", "vendor"]
tags: ["cwe-22", "cwe-29", "ml-infrastructure", "package", "python", "ray"]
not_affected_if: ["auth-required", "local-only"]
published_at: "2023-11-16T17:15:09+00:00"
first_seen_at: "2026-11-16T16:08:24+00:00"
updated_at: "2026-11-16T16:38:06+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-3pww-qvr8-6mhp", "first_seen_at": "2026-11-16T16:08:24+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-6021", "first_seen_at": "2026-11-16T16:38:06+00:00"}]
exploit_sources: [{"type": "poc", "url": "https://huntr.com/bounties/5039c045-f986-4cbc-81ac-370fe4b0d3f8"}, {"type": "epss", "score": 0.37076, "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-6021"}]
---

# Ray Path Traversal vulnerability

Link for people: https://infrastack.ai/live/CVE-2023-6021 (this .md is for agents)

Ray's log API endpoint accepts paths that escape its log directory, so a request can read any file the Ray process can access. No login is needed to make the request.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:ray affected < 2.8.1 fixed 2.8.1
- vendor:ray project ray affected range not listed fixed no fixed version listed

## How to check

- Check the installed version with `pip show ray` and compare it to `2.8.1`.
- Look for a Ray dashboard or log API reachable from untrusted networks.

## Fix

- Upgrade `ray` to `2.8.1` or later.

## Timeline

- 2026-11-16T16:08:24+00:00 ghsa https://github.com/advisories/GHSA-3pww-qvr8-6mhp
- 2026-11-16T16:38:06+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2023-6021

## Documents

- [fix] Release: github.com https://github.com/ray-project/ray/releases/tag/ray-2.8.1
- [poc] Exploit: huntr.com https://huntr.com/bounties/5039c045-f986-4cbc-81ac-370fe4b0d3f8

## From the sources

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

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
