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

CVE-2023-48022: Ray has arbitrary code execution via jobs submission API

criticalCVSS 3.1 9.8GHSA-6wgj-66m2-xxp2

Ray's Jobs API has no authorization by default, so anyone who can reach the dashboard on port 8265 can submit a job that runs arbitrary code on the cluster. The vendor disputes the report: Ray is meant to run only in a controlled network. The pip entry lists ray 2.49.2 and earlier with no patched version. Ray 2.52.0 adds optional token authentication.

Published Nov 28, 2023 · Updated Nov 16, 2026 · Analysis Nov 2, 2026

What an attacker can do

The Jobs API behind the Ray dashboard accepts job submissions from any client that can connect. A job is arbitrary code, so reaching port 8265 is equivalent to a shell on the head node and, through scheduling, on workers. No credentials, no user interaction. Many deployment guides and Kubernetes configs bind the dashboard to 0.0.0.0, which put thousands of Ray servers on the internet.

This is not only theory. Oligo's ShadowRay research reports active exploitation, with the earliest activity on 5 September 2023, hundreds of clusters compromised and many companies affected. Attackers ran reconnaissance, reverse shells and crypto miners (XMRig, NBMiner, Zephyr). They stole database credentials, SSH keys, API tokens for OpenAI, HuggingFace, Stripe and Slack, cloud credentials for AWS, GCP and Azure, Kubernetes access and AI models and datasets. They sometimes used the public interactsh service to confirm execution.

The vendor's position, recorded in the advisory, is that Ray's documentation says security and isolation must be enforced outside the cluster. Your exposure therefore depends on network placement.

Who is affected

The pip package ray at 2.49.2 and earlier, per the advisory. The code path is by design, so exposure depends on whether the dashboard or Jobs API is reachable by untrusted hosts. Check your version and listening ports:

pip show ray
ss -ltnp | grep 8265

A dashboard bound to 0.0.0.0 or published through a Kubernetes service or load balancer is the high-risk case.

ray

Ecosystem
PyPI
Affected
<= 2.49.2
Fixed in
No patched version yet
Check
pip show ray

How to fix it

The advisory lists no patched version. Ray's documentation describes token authentication, available from Ray 2.52.0. Enable it by setting RAY_AUTH_MODE=token before starting the cluster and on every client, and generate a token with ray get-auth-token --generate. Ray reads it from RAY_AUTH_TOKEN, then the file in RAY_AUTH_TOKEN_PATH, then ~/.ray/auth_token. Ray 2.59 enables it by default for local clusters and 2.61 for all clusters. The token is sent as plaintext over unencrypted connections and does not expire, so add TLS, a VPN or an SSH tunnel.

Oligo's mitigations: firewall the dashboard, bind to a specific internal interface, never use 0.0.0.0, and put an authenticating proxy in front if it must be reachable.

How to tell if you were hit

Look for unexpected jobs in the Ray dashboard and job history, and for requests to the Jobs API from unknown addresses. Oligo lists these indicators: miners such as XMRig, NBMiner and Java-based Zephyr, connections to mining pools like bore.pub, kryptex.network, pool.hashvault.pro, zephyr.miningocean.org and rx.unmineable.com, reverse shell endpoints including an oast.fun subdomain, and base64-encoded payloads in job entrypoints. Watch for unusual outbound traffic and unexpected GPU load. If a cluster was reachable, rotate every credential stored on its nodes.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Anyscale Ray allows a remote attacker to execute arbitrary code via the job submission API. NOTE: the vendor's position is that this report is irrelevant because Ray, as stated in its documentation, is not intended for use outside of a strictly controlled network environment.

Credited to JLLeitschuh.

Questions

Is CVE-2023-48022 exploited in the wild?

Yes, per Oligo's ShadowRay research, which reports active attacks on exposed Ray clusters from 5 September 2023. The entry itself carries no CISA KEV data.

Why is there no patch?

The vendor treats the report as irrelevant because Ray is documented as not intended for use outside a strictly controlled network. Ray later added token authentication, available from 2.52.0.

Does enabling token auth fully protect me?

It adds a shared secret for external APIs and node traffic. It does not encrypt traffic, and the token never expires. Keep the cluster off public networks and use TLS or a VPN.

What should I check first?

Whether port 8265 is reachable from anywhere you do not trust. Then look for unknown jobs and miners, and rotate any secrets the cluster could read.

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