Arbitrary Code Injection Affecting ray package, versions [,2.52.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-RAY-14129882
  • published27 Nov 2025
  • disclosed26 Nov 2025
  • creditJonathan Leitschuh, Avi Lumelsky

Introduced: 26 Nov 2025

NewCVE-2025-62593  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade ray to version 2.52.0 or higher.

Overview

ray is an A system for parallel and distributed Python that unifies the ML ecosystem.

Affected versions of this package are vulnerable to Arbitrary Code Injection via insufficient validation of the User-Agent header in browser requests. An attacker can execute arbitrary code on the host system by leveraging a DNS rebinding attack when a developer visits a malicious website or is exposed to malvertising while running the application in a vulnerable browser.

References

CVSS Base Scores

version 4.0
version 3.1