Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2023-48022: ShadowRay: Unauthenticated Remote Code Execution in Ray Job Submission API

Published Nov 28, 2023 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS43.1%99th percentile
CISA KEVNoNot listed
In the wildReported190 exploitation records in Mallory
Vendor
Anyscale
IdentifiersCVE-2023-48022CWE-306

CVE-2023-48022 allows remote attackers to execute arbitrary code through Ray's unauthenticated job submission API, with versions 2.6.3 and 2.8.0 explicitly identified as affected. A client able to reach the job submission interface can submit a job whose entrypoint specifies an attacker-controlled command, which executes in the Ray worker's security context. Ray's maintainers dispute the vulnerability designation because the framework is intended to execute trusted code within a strictly controlled network environment. Ray 2.52.0 and later offer optional token authentication; this is a compensating control rather than a conventional patch for the disputed issue.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises the confidentiality, integrity, and availability of resources accessible to the Ray worker. Attackers can execute commands, steal available cloud credentials and service-account tokens, access mounted source code, models, datasets, and production data, and consume CPU and GPU capacity. Ray scheduling features can extend malicious execution across cluster nodes, including nodes not directly exposed to the internet. Observed exploitation includes cryptomining, reverse shells, backdoor deployment, data theft, self-propagation, and DDoS activity. Root access is not inherent to this vulnerability and depends on the worker's privileges or additional escalation.

Mitigation

If you can’t patch tonight, do this now.

Keep Ray clusters on private, tightly controlled network segments and restrict dashboard and job-agent access to trusted clients using firewall rules, cloud security groups, and ingress controls. Protect the dashboard, normally on TCP port 8265, with authentication and authorization, and ensure job-agent interfaces cannot bypass those controls. Enable optional token authentication on Ray 2.52.0 and later. Run workers with least privilege, minimize accessible credentials and mounted sensitive data, and monitor job submissions, unexpected subprocesses, persistence changes, outbound connections, and unexplained CPU or GPU usage. Use Ray's Open Ports Checker to identify accidental exposure.

Remediation

Patch, then assume compromise.

No conventional patch or fixed Ray version is identified for CVE-2023-48022, which remains disputed by the maintainers. Correct deployments that expose job submission interfaces to untrusted clients by enforcing Ray's strictly controlled network deployment model. For deployments adopting token-based access control, upgrade to Ray 2.52.0 or later and explicitly enable and configure token authentication; upgrading alone does not establish that authentication is enabled.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
ray_agent_job_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/http/ray_agent_job_rce.rb) that exploits a remote code execution (RCE) vulnerability in the Ray agent (CVE-2023-48022). The exploit targets the job submission HTTP API endpoints (/api/jobs/ and /api/job_agent/jobs/) on the default port 8265, which by default are unauthenticated. The module checks the Ray version via /api/version and only proceeds if the version is <= 2.6.3. It supports multiple Linux architectures and can deliver both direct command execution and staged payloads (such as Meterpreter reverse shells) using the CmdStager functionality. The exploit is weaponized, as it is part of the Metasploit framework and allows for flexible payload delivery. The main attack vector is network-based, requiring access to the Ray agent's HTTP API. The repository is well-structured, with clear separation of functionality for version checking, job submission, and payload delivery.Disclosed Nov 15, 2023 · Framework: metasploit · ruby · networkWeaponizedShadowRay-RCE-PoC-CVE-2023-48022This repository provides a weaponized exploit for CVE-2023-48022, a remote command execution vulnerability in the Ray framework (version 2.8.0). The exploit targets Ray's job submission API, which by default is unauthenticated and allows remote attackers to submit arbitrary jobs for execution. The repository contains two main exploit files: a Python script (exploit.py) for direct exploitation and a Metasploit module (ray_job_rce.rb) for integration with the Metasploit framework. The Python script allows users to specify a target Ray cluster and a command to execute, submitting the job via the Ray JobSubmissionClient. The Metasploit module automates exploitation, supporting both custom command execution and reverse shell payloads, and targets the '/api/jobs/' and '/api/job_agent/jobs/' endpoints. The README provides detailed usage instructions for both approaches. The exploit is operational and weaponized, enabling remote, unauthenticated code execution on vulnerable Ray clusters accessible over the network.jakabakos · Disclosed Mar 29, 2024 · Framework: metasploit · python · ruby · networkWeaponizedCVE-2023-48022The repository contains a standalone Python exploit client and a deliberately vulnerable Python HTTP mock illustrating CVE-2023-48022, described as missing authentication on Ray job submission. The seven files comprise two Python scripts, a Dockerfile, Docker Compose configuration, README, MIT license, and gitignore. No exploit framework is used. Repository URL, revision, and archive size were not supplied; blank strings and zero represent unavailable metadata. poc/poc.py submits the hardcoded command 'x; touch /tmp/<marker>; echo ' as the JSON entrypoint field to POST /api/jobs. mock/mock.py accepts JSON or form data without authentication and interpolates the entrypoint into "sh -c '{v}'", executed through subprocess.run with shell=True and a five-second timeout. This genuinely permits arbitrary shell command execution in the mock, although the provided client only creates a marker. Output is discarded. The mock is a simplified vulnerability model, not an actual Ray installation; successful exploitation of real Ray is not demonstrated. Verification uses GET /__lab_status, a laboratory-only endpoint listing filenames with the fixed cve-2023-48022 prefix. Custom markers lacking that prefix can therefore produce false negatives, while pre-existing marker files can produce false positives. The client does not validate submission success before checking for markers. Its local-address safeguard uses string prefixes rather than validated address ranges. The container uses Python 3.12 Alpine, an unprivileged user, dropped capabilities, no-new-privileges, loopback-only host publishing, and a /tmp tmpfs. Despite a source comment claiming no network access, the supplied configuration does not disable container networking. There are no active external callbacks, credential theft, persistence mechanisms, or destructive payloads.krevetkqqq · Disclosed Oct 30, 2026 · python · network · webOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AnyscaleRayapplication
FAQ

Frequently asked questions

Is CVE-2023-48022 exploited in the wild?
Yes. As of Nov 25, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2023-48022?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2023-48022, the earliest disclosed Nov 15, 2023.
Is there a patch for CVE-2023-48022?
No conventional patch or fixed Ray version is identified for CVE-2023-48022, which remains disputed by the maintainers. Correct deployments that expose job submission interfaces to untrusted clients by enforcing Ray's strictly controlled network deployment model.
What products are affected by CVE-2023-48022?
Anyscale Ray.
How severe is CVE-2023-48022?
CVE-2023-48022 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 43.1% (99th percentile) as of Nov 25, 2026.
Activity feed

Recent activity

33 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
picus security blogNews · Nov 25, 2026What Are LLM Supply Chain Attacks (OWASP LLM04): Techniques, Examples, and DefensesRay's unauthenticated job submission API permits attackers to exploit exposed deployments. ShadowRay attacks targeted exposed dashboards, and ShadowRay 2.0 spread across clusters for GPU cryptocurrency mining and DDoS attacks.Read more ↗cysecurity newsNews · Nov 17, 2026New Linux Malware Uses Tor, Ethereum Blockchain, and Falsified GPU Data to Run Cryptomining Operations Undetected - CySecurity News - Latest Information Security and Hacking IncidentsA vulnerability in Ray exploited during the historical ShadowRay 2.0 campaign to submit malicious jobs and distribute cryptominers across cluster nodes. The article does not explicitly attribute the current SANSAR campaign to this CVE.Read more ↗chocapikkNews · Oct 17, 2026Xorbits Xoscar: Unauthenticated RCE via Cloudpickle Deserialization in the Actor Pool - Chocapikk's Cybersecurity BlogA Ray vulnerability cited as a comparison to the Xoscar flaw: an internal RPC surface that deserializes attacker-controlled bytes and becomes network-exposed in distributed deployments. This reference provides no specific exploitation, patch, or mitigation status for the Ray vulnerability.Read more ↗vulncheck blogNews · Oct 15, 2026Xorbits Xoscar: Unauthenticated RCE via Cloudpickle Deserialization in the Actor Pool | Blog | VulnCheckA Ray vulnerability cited only as a comparison to the Xoscar issue: an internal RPC surface accepts attacker-controlled serialized data and becomes network-accessible in distributed deployments. The content does not provide specific exploitation, patch, or mitigation information for this CVE.Read more ↗
+16 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware15Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity12Community discussion across Reddit, Mastodon, and other social sources.