NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Ray

CVE-2023-6019: Ray OS Command Injection vulnerability

criticalCVSS 3.1 9.8GHSA-h3xg-wv58-5p43

Ray before 2.8.1 has an OS command injection in the `cpu_profile` URL parameter of the Ray dashboard. A remote attacker needs no authentication to run commands on the host running the dashboard. Upgrade to Ray 2.8.1.

Published Nov 16, 2023 · Updated Jan 9, 2025 · Analysis Nov 2, 2026

What an attacker can do

The dashboard builds a profiling command from the cpu_profile URL parameter without neutralizing special characters (CWE-78). A request to the dashboard with shell metacharacters in that parameter runs commands as the account that runs Ray. No login is required and no user needs to click anything.

The attacker needs network access to the dashboard, which listens on port 8265 by default. Ray documents that it is meant to run inside a strictly controlled network, but many clusters bind the dashboard to all interfaces. On such a host the attacker gets command execution with high impact on confidentiality, integrity and availability, which is the CVSS 9.8 rating. From there they can read credentials on the node, reach cloud metadata and move to other workers.

Anyscale's response blog says the fixes for this CVE and three related ones are in master and ship in Ray 2.8.1. It gives no per-CVE detail, so I cannot say more about the vulnerable code path. It also notes that a malformed URL query sent to the dashboard could run arbitrary code, without linking that example to one CVE.

Who is affected

The pip package ray below 2.8.1, where the dashboard is reachable by untrusted hosts. Check your version and whether the dashboard is exposed:

pip show ray
ss -ltnp | grep 8265

ray

Ecosystem
PyPI
Affected
< 2.8.1
Fixed in
2.8.1
Check
pip show ray

How to fix it

Upgrade to Ray 2.8.1.

pip install -U "ray>=2.8.1"

Anyscale also says it deployed a server-side fix for users running Ray on its platform. The sources list no other workaround. Until you upgrade, keep the dashboard off untrusted networks, bind it to a trusted interface, and firewall port 8265.

How to tell if you were hit

Search dashboard and proxy access logs for requests carrying a cpu_profile parameter, especially with shell characters such as ;, |, $( or backticks, or unusual values. Check the Ray head node for unexpected child processes of the dashboard, new files, reverse shells and miners, and unusual outbound connections.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A command injection exists in Ray's cpu_profile URL parameter allowing attackers to execute os commands on the system running the ray dashboard remotely without authentication.

Credited to cpropps-sysdig.

Questions

Which Ray version fixes CVE-2023-6019?

Ray 2.8.1. Anything below it is affected.

Does it need authentication?

No. The advisory says commands run remotely without authentication. Reaching the dashboard port is enough.

Is this the same as the Jobs API issue?

No. That one is CVE-2023-48022, where job submission is open by design and the vendor disputes it. CVE-2023-6019 is an injection bug in a URL parameter and is fixed in 2.8.1.

Is it exploited in the wild?

No source I read says so for this CVE, and the entry has no CISA KEV data. Its EPSS score is high, which is a prediction only.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Ray vulnerabilities

All Ray entries