Patchfirst
CVE-2025-62593 KEVPublic exploit High · 8.8 EPSS 60.2%

Ray-Project Ray Code Injection Vulnerability

Ray-Project · Ray

Summary

Ray, an AI compute engine developed by Ray-Project, contains a critical code injection flaw in versions before 2.52.0, arising from a weak defense against browser-based attacks that relies on the User-Agent header beginning with "Mozilla". An attacker can achieve remote code execution on a developer's machine running Ray by luring them, via a malicious website or malvertising, to a page that uses DNS rebinding and a spoofed User-Agent, which requires the victim to visit the page in Firefox or Safari while Ray is running and involves no authentication.

Official description · NVD

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.

Breakdown
74.0 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 3 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 9 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+3 mo
  3. Added to CISA KEVEU database agrees+9 mo
  4. Public exploit codePoC-in-GitHub+9 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

7 fixes in ray over 3 years. The latest fix listed for ray is 2.56.0.

Fixes in rayPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 2.8.1CVE-2023-602116 Nov 2023
  2. 2.8.1CVE-2026-3298117 Mar 2026
  3. 2.43.0CVE-2025-19796 Mar 2025
  4. 2.52.0CVE-2025-6259326 Nov 2025KEV
  5. 2.54.0CVE-2026-2748221 Feb 2026
  6. 2.55.0CVE-2026-414868 May 2026
  7. 2.56.0CVE-2026-575161 Jul 2026Latest listed

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Drive-by Compromise T1189 Medium
AI mapping from the description · how it is exploited

Malicious website or malvertising drives browser-based exploitation

exploitable via Firefox and Safari
From the official description (NVD) Original (opens in a new tab) ↗

ExecutionTA0002

Command and Scripting Interpreter T1059 Medium
AI mapping from the description · primary impact

Achieves remote code execution on developer machine

critical RCE vulnerability exploitable via Firefox and Safari
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 98 general rules for its techniques

Rules for this CVE

0 that reference CVE-2025-62593 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: ray.

Upgrade to 2.52.0 or later

Fixes this CVE and 4 other known vulnerabilities in this package (CVE-2023-48022, CVE-2023-6019, +2).

pippip install "ray>=2.52.0"

The first fix for CVE-2025-62593.

Affected versions

If you runUpgrade to
All versions before 2.52.02.52.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 31 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close