CVE-2025-62593: CWE-94: Improper Control of Generation of Code ('Code Injection') in ray-project ray
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.
AI Analysis
Technical Summary
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.
CVE-2025-62593: CWE-94: Improper Control of Generation of Code ('Code Injection') in ray-project 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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.