Ray's New Token Authentication is Disabled By Default
CriticalCVE-2025-34351 · Published Nov 27, 2025 · updated Sep 10, 2026
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| ray PyPI | <= 2.52.0 | No fix yet |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-1188, CWE-304
- Also known as
- CVE-2025-34351, PYSEC-2026-518
- github.com/JLLeitschuh/security-research/security/advisories/GHSA-w8vc-465m-jjw6
- nvd.nist.gov/vuln/detail/CVE-2025-34351
- docs.ray.io/en/latest/ray-security/token-auth.html
- github.com/ray-project/ray
- github.com/ray-project/ray/releases/tag/ray-2.52.0
- www.cve.org/resourcessupport/allresources/cnarules#section_4-1_Vulnerability_Determination
- www.linkedin.com/posts/jonathan-leitschuh_the-latest-piece-of-mind-bending-research-activity-7396976425997606912-qizE
- www.oligo.security/blog/shadowray-2-0-attackers-turn-ai-against-itself-in-global-campaign-that-hijacks-ai-into-self-propagating-botnet
- www.oligo.security/blog/shadowray-attack-ai-workloads-actively-exploited-in-the-wild
- www.vulncheck.com/advisories/anyscale-ray-token-authentication-disabled-by-default-insecure-configuration
More Ray advisories
All Ray| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jul 24 | Ray: unsafe deserialization | High8.8 | 2.56.0 |
| Apr 24 | Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization | High | 2.55.0 |
| Mar 17 | Ray Dashboard is vulnerable to path traversal through its static file handling mechanism | High7.5 | 2.8.1 |
| Feb 20 | Ray dashboard DELETE endpoints allow unauthenticated browser-triggered DoS (Serve shutdown / job deletion) | Medium5.9 | 2.54.0 |
| Nov 262025 | Ray is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding Attack | Critical | 2.52.0 |
| Mar 62025 | ray vulnerable to Insertion of Sensitive Information into Log File | Medium6.4 | 2.43.0 |