---
id: CVE-2023-48022
aliases:
  - GHSA-6wgj-66m2-xxp2
  - PYSEC-2026-517
title: Ray has arbitrary code execution via jobs submission API
summary: Ray has arbitrary code execution via jobs submission API
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: ray
product: ray
ecosystem: pip
affected:
  - ray <= 2.49.2
published: '2023-11-28'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:04.195227955Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6wgj-66m2-xxp2'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-48022'
  - url: >-
      https://github.com/ray-project/ray/commit/978947083b1e192dba61ef653c863b11d56b0936
  - url: 'https://atlas.mitre.org/studies/AML.CS0023'
  - url: 'https://bishopfox.com/blog/ray-versions-2-6-3-2-8-0'
  - url: 'https://console.vulncheck.com/cve/CVE-2023-48022'
  - url: 'https://docs.ray.io/en/latest/ray-security/index.html'
  - url: 'https://docs.ray.io/en/latest/ray-security/token-auth.html'
  - url: 'https://github.com/advisories/GHSA-xg2h-7cxj-3gvh'
  - url: 'https://github.com/honysyang/Ray'
  - url: 'https://github.com/ray-project/ray'
  - url: >-
      https://www.anyscale.com/blog/update-on-ray-cve-2023-48022-new-verification-tooling-available
  - url: >-
      https://www.oligo.security/blog/shadowray-attack-ai-workloads-actively-exploited-in-the-wild
  - url: 'https://www.vicarius.io/vsociety/posts/shadowray-cve-2023-48022-exploit'
  - url: >-
      https://www.vicarius.io/vsociety/posts/the-story-of-shadowray-cve-2023-48022
  - url: 'https://www.vulncheck.com/blog/initial-access-intelligence-august-2024'
tags:
  - osv
  - pip
  - exploit-available
epss: 0.83942
epssPercentile: 0.9968
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/0x656565/CVE-2023-48022'
    - 'https://github.com/jakabakos/ShadowRay-RCE-PoC-CVE-2023-48022'
  metasploit:
    - exploit/linux/http/ray_agent_job_rce
  nuclei:
    - CVE-2023-48022
  checkedAt: '2026-09-23T07:13:26.098Z'
exploitAvailable: true
ingestedAt: '2026-09-12T03:13:01.668Z'
---

## Overview

Anyscale Ray allows a remote attacker to execute arbitrary code via the job submission API. NOTE: the vendor's position is that this report is irrelevant because Ray, as stated in its documentation, is not intended for use outside of a strictly controlled network environment.

## Affected packages

- `ray <= 2.49.2`

## Remediation

Refer to the advisory for the patched release.
