Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2397+ Articles
159+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2025-62593: Ray Project Code Injection — DNS Rebinding Enables Unauthenticated RCE
CVE-2025-62593: Ray Project Code Injection — DNS Rebinding Enables Unauthenticated RCE

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2025-62593

CVE-2025-62593: Ray Project Code Injection — DNS Rebinding Enables Unauthenticated RCE

Critical RCE in Anyscale Ray via DNS rebinding attack bypasses User-Agent checks, exposing developer dashboards to unauthenticated job submission.

Dylan H.

Security Team

August 17, 2026
4 min read

Affected Products

  • Anyscale Ray < 2.52.0

Executive Summary

A critical remote code execution (RCE) vulnerability in Anyscale Ray — the widely deployed AI compute framework — allows an unauthenticated attacker to submit arbitrary jobs to a Ray cluster by chaining a DNS rebinding attack with a trivially bypassable User-Agent header guard. Tracked as CVE-2025-62593, the flaw affects all Ray versions prior to 2.52.0, which ships the fix.

A public proof-of-concept (PoC) exploit is available, making rapid patching critical for any organization running Ray in developer or shared environments.

AttributeValue
CVE IDCVE-2025-62593
SeverityCritical
CWECWE-94 (Code Injection), CWE-352 (CSRF)
Affected VersionsRay < 2.52.0
Fixed InRay 2.52.0
Public PoCYes
Authentication RequiredNone

Vulnerability Overview

Root Cause: Intentional No-Auth + Trivial Guard

Ray's development dashboard deliberately exposes unauthenticated API endpoints — including /api/jobs and /api/job_agent/jobs/ — by design. The Ray team's intended stance is that the dashboard should only be reachable on trusted networks.

The only protection in place was a User-Agent header check requiring the value to begin with "Mozilla". This check is trivially bypassable because the Fetch API specification allows modification of the User-Agent header.

Attack Chain

When combined with a DNS rebinding attack, an attacker can trick a developer's browser (particularly Firefox or Safari) into issuing cross-origin requests to the local Ray dashboard:

1. Developer visits malicious website or clicks malvertising
2. Attacker's domain initially resolves to attacker's server
3. DNS TTL expires; domain rebinds to 127.0.0.1 (Ray dashboard)
4. Browser's same-origin policy no longer blocks cross-origin requests
5. Attacker's JavaScript submits crafted job to /api/jobs with "Mozilla" User-Agent
6. Ray executes the job in the context of the Ray worker process
7. RCE achieved — arbitrary code runs on the developer's machine or cluster

This attack is especially dangerous because AI/ML engineers routinely run Ray locally or on shared developer clusters, where the dashboard is accessible on internal networks — exactly the environment an attacker can reach via DNS rebinding.


Technical Details

Vulnerable Endpoints

EndpointPurposeAuth
/api/jobsSubmit and list jobsNone
/api/job_agent/jobs/Job agent APINone

User-Agent Bypass

The sole protection was a server-side check for:

User-Agent: Mozilla*

The Fetch API spec permits setting this header, making the bypass a single line:

fetch('http://localhost:8265/api/jobs', {
  method: 'POST',
  headers: { 'User-Agent': 'Mozilla/5.0', 'Content-Type': 'application/json' },
  body: JSON.stringify({ entrypoint: 'python -c "import os; os.system(\'malicious_command\')"' })
});

Fix in Ray 2.52.0

The fix commit (70e7c72780bdec075dba6cad1afe0832772bfe09) removes the User-Agent guard and implements proper origin validation to prevent DNS rebinding, alongside additional authentication controls on the job submission API.


Remediation

Immediate Actions

  1. Upgrade to Ray 2.52.0 — the only complete fix
  2. Network isolation — Ray dashboards should never be accessible from untrusted networks; enforce this at the firewall level
  3. Audit running clusters — check for unauthorized job submissions in Ray logs
  4. Browser-level mitigation — Chrome's planned DNS rebinding protection mitigates this partially, but do not rely on client-side controls

If Immediate Patching Is Not Possible

  • Block external access to Ray dashboard ports (default: 8265) at the network perimeter
  • Use a VPN or zero-trust access proxy to gate all Ray dashboard access
  • Disable Ray dashboard entirely if not needed: ray start --no-redirect-output --disable-usage-stats

Who Is Affected

Ray is used extensively in AI/ML infrastructure by organizations training and serving large-scale models. Common deployment patterns that are at risk include:

  • Developer laptops running ray start locally with open dashboard
  • Shared GPU clusters with the Ray dashboard on an internal network
  • Kubernetes deployments where the dashboard service is accessible within the cluster network
  • Jupyter/notebook environments where users open the Ray dashboard in a browser while on shared Wi-Fi

The availability of a public PoC on GitHub (B1ack4sh/Blackash-CVE-2025-62593) means opportunistic exploitation is now feasible for any attacker who can reach a Ray instance.


Key Takeaways

  1. Upgrade to Ray 2.52.0 immediately — no authentication workaround exists in prior versions
  2. DNS rebinding + trivial User-Agent bypass = no-auth RCE for any attacker reachable from a developer's browser
  3. AI/ML infrastructure is increasingly targeted — Ray, MLflow, and similar frameworks often run with permissive access assumptions
  4. Network isolation is not sufficient alone — DNS rebinding attacks cross network boundaries via the browser

References

  • GitHub Advisory GHSA-q279-jhrf-cc6v
  • Ray 2.52.0 Release Notes
  • Fix Commit 70e7c72
  • Public PoC — Blackash-CVE-2025-62593
#Ray#Python#AI/ML#RCE#DNS Rebinding#Code Injection#CVE-2025-62593

Related Articles

CVE-2026-9198: IBM Langflow Code Injection Vulnerability

A critical unauthenticated code injection flaw in Langflow 1.0.0–1.10.0 allows attackers to chain two API endpoints to obtain a SUPERUSER token and execute arbitrary Python via exec(), achieving full RCE on AI pipeline servers.

5 min read

CVE-2026-17561: Critical Code Injection in Logsign SIEM

A critical code injection vulnerability in Logsign SIEM (CVSS 9.8) allows unauthenticated remote code execution on affected systems running versions prior to 6.4.108. Organizations using Logsign should patch immediately.

5 min read

CVE-2026-68770: sentence-transformers Security Control Bypass Enables RCE

A critical logic flaw in sentence-transformers' import_module_class helper allows attackers to bypass trust_remote_code=False and achieve arbitrary code execution by placing malicious files in a model directory on disk. CVSS 9.8.

4 min read
Back to all Security Alerts