CVE-2025-62593
Ray is vulnerable to RCE via Safari & Firefox Browsers through DNS Rebinding Attack
Description
Ray is an AI compute engine. Prior to version 2.52.0, developers working with Ray as a development tool can be exploited via a critical RCE vulnerability exploitable via Firefox and Safari. This vulnerability is due to an insufficient guard against browser-based attacks, as the current defense uses the User-Agent header starting with the string "Mozilla" as a defense mechanism. This defense is insufficient as the fetch specification allows the User-Agent header to be modified. Combined with a DNS rebinding attack against the browser, and this vulnerability is exploitable against a developer running Ray who inadvertently visits a malicious website, or is served a malicious advertisement (malvertising). This issue has been patched in version 2.52.0.
In plain language
AI Act nowRay (an AI/developer tool) lets an attacker run arbitrary code on your computer through a malicious website using browser DNS tricks; if your Ray is reachable from a browser and you use an unpatched Ray version, you should act now.
CVE-2025-62593 is an unauthenticated remote code execution vulnerability in Ray (fixed in 2.52.0) caused by weak browser-request identification and missing protections against DNS rebinding; attackers can trigger command execution by getting a developer to visit a malicious page (Safari/Firefox) while Ray is network-reachable to that browser.
What to do now
- Check your Ray version on the machines where you develop or run Ray (look for whether it is below 2.52.0).
- If your Ray is below 2.52.0, upgrade it to ray 2.52.0 or later.
- If you cannot upgrade immediately, reduce exposure by ensuring Ray is not reachable from the wider internet (restrict network access to only trusted machines).
- After upgrading, review access/logs around the Ray service for any suspicious browser-initiated activity from unknown domains.
pip install "ray>=2.52.0"CVSS Vector Breakdown
AV:NAttack VectorAC:LAttack ComplexityPR:NPrivileges RequiredUI:RUser InteractionS:UScopeC:HConfidentialityI:HIntegrityA:HAvailabilityWeaknesses
Affected Products
Exploitability
Required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Attack Graph
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
3 techniquesReferences
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-62593 and every CVE in our database. Create a free account — no credit card required.
Create Free Account