---
id: CVE-2023-6021
aliases:
  - GHSA-3pww-qvr8-6mhp
  - PYSEC-2026-515
title: Ray Path Traversal vulnerability
summary: Ray Path Traversal vulnerability
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N'
vendor: ray
product: ray
ecosystem: pip
affected:
  - ray < 2.8.1
patched:
  - ray 2.8.1
published: '2023-11-16'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:03.998466042Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-3pww-qvr8-6mhp'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-6021'
  - url: 'https://github.com/ray-project/ray'
  - url: 'https://github.com/ray-project/ray/releases/tag/ray-2.8.1'
  - url: 'https://huntr.com/bounties/5039c045-f986-4cbc-81ac-370fe4b0d3f8'
  - url: >-
      https://www.anyscale.com/blog/update-on-ray-cves-cve-2023-6019-cve-2023-6020-cve-2023-6021-cve-2023-48022-cve-2023-48023
tags:
  - osv
  - pip
  - exploit-available
epss: 0.37076
epssPercentile: 0.98469
exploits:
  nuclei:
    - CVE-2023-6021
  checkedAt: '2026-09-27T10:33:29.484Z'
exploitAvailable: true
ingestedAt: '2026-09-12T03:13:01.647Z'
---

## Overview

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

## Affected packages

- `ray < 2.8.1`

## Remediation

Upgrade to a patched release:

- `ray 2.8.1`
