Skip to main content
EPSS 16.9%top 3.1%

CVE-2025-62593: CWE-94: Improper Control of Generation of Code ('Code Injection') in ray-project ray

0
Critical
VulnerabilityCVE-2025-62593cvecve-2025-62593cwe-94cwe-352gcve
Published: 11/26/2025 (11/26/2025, 22:28:28 UTC)
Source: CVE Database V5
Vendor/Project: ray-project
Product: ray

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.

CVSS v4.0

Score 9.4critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Affected software

ray-project/ray
pkg:pypi/ray-project/ray
Affected versions
<2.52.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 16:22:53 UTC

Technical Analysis

CVE-2025-62593 is a critical remote code execution vulnerability in ray-project ray before version 2.52.0. The vulnerability stems from improper control of code generation (CWE-94) and insufficient browser-based defenses that rely on the User-Agent header starting with "Mozilla". Since the fetch specification permits modification of the User-Agent header, attackers can bypass this check. Exploitation requires a DNS rebinding attack combined with the victim developer using Firefox or Safari and visiting a malicious site or malvertising. This allows execution of arbitrary code remotely. The vulnerability has been fixed in ray version 2.52.0.

Potential Impact

Successful exploitation allows unauthenticated remote attackers to execute arbitrary code on the developer's system running ray. This can lead to full compromise of the affected environment. The attack vector involves browser-based exploitation via Firefox or Safari combined with DNS rebinding and malicious web content. The vulnerability is critical with a CVSS 4.0 score of 9.4, indicating high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Upgrade ray to version 2.52.0 or later, where this vulnerability is patched. No other mitigations are specified. Users running affected versions should avoid visiting untrusted websites or interacting with suspicious web content until patched.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-10-16T19:24:37.266Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 692781c3d322a87b22e508d0

Added to database: 11/26/2025, 22:40:03 UTC

Last enriched: 08/17/2026, 16:22:53 UTC

Last updated: 09/10/2026, 19:36:51 UTC

Views: 465

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses