---
id: CVE-2025-34351
aliases:
  - GHSA-gx77-xgc2-4888
  - PYSEC-2026-518
title: Ray's New Token Authentication is Disabled By Default
summary: Ray's New Token Authentication is Disabled By Default
severity: critical
vendor: ray
product: ray
ecosystem: pip
affected:
  - ray <= 2.52.0
published: '2025-11-27'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:31.048877822Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-gx77-xgc2-4888'
references:
  - url: >-
      https://github.com/JLLeitschuh/security-research/security/advisories/GHSA-w8vc-465m-jjw6
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-34351'
  - url: 'https://docs.ray.io/en/latest/ray-security/token-auth.html'
  - url: 'https://github.com/ray-project/ray'
  - url: 'https://github.com/ray-project/ray/releases/tag/ray-2.52.0'
  - url: >-
      https://www.cve.org/resourcessupport/allresources/cnarules#section_4-1_Vulnerability_Determination
  - url: >-
      https://www.linkedin.com/posts/jonathan-leitschuh_the-latest-piece-of-mind-bending-research-activity-7396976425997606912-qizE
  - url: >-
      https://www.oligo.security/blog/shadowray-2-0-attackers-turn-ai-against-itself-in-global-campaign-that-hijacks-ai-into-self-propagating-botnet
  - url: >-
      https://www.oligo.security/blog/shadowray-attack-ai-workloads-actively-exploited-in-the-wild
  - url: >-
      https://www.vulncheck.com/advisories/anyscale-ray-token-authentication-disabled-by-default-insecure-configuration
tags:
  - osv
  - pip
ingestedAt: '2026-09-12T03:13:01.697Z'
---

## Overview

Anyscale Ray 2.52.0 contains an insecure default configuration in which token-based authentication for Ray management interfaces (including the dashboard and Jobs API) is disabled unless explicitly enabled by setting RAY_AUTH_MODE=token. In the default unauthenticated state, a remote attacker with network access to these interfaces can submit jobs and execute arbitrary code on the Ray cluster. NOTE: The vendor plans to enable token authentication by default in a future release. They recommend enabling token authentication to protect your cluster from unauthorized access.

## Affected packages

- `ray <= 2.52.0`

## Remediation

Refer to the advisory for the patched release.
