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

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code via the job submission API in Ray, requiring network isolation or token authentication for mitigation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-48022?

CVE-2023-48022 is a critical server-side request forgery vulnerability in n/a, published on 28 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Anyscale Ray 2.6.3 and 2.8.0 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. (Also, within that environment, customers at version 2.52.0 and later can choose to use token authentication.)

Weakness: CWE-918

Which versions are affected by CVE-2023-48022?

3 open source packages ship an affected version, including ray. It affects 1 product.

PackageAffectedFixed in
ray PyPIAll versions to 2.49.2None
ray PyPIAll versions to 2.49.2None
ray PyPIAll versions to 2.49.2None

Products include Anyscale Ray.

How do I fix CVE-2023-48022?

Change a configuration setting.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2023-48022 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-48022 exists.

Public exploit code: 1 Metasploit module, 1 Nuclei template and 2 proofs of concept on GitHub.

Sources

Also known as CVE-2024-57000, GHSA-6wgj-66m2-xxp2, MINI-272g-gqhc-wpg6, PYSEC-2026-517.

Is CVE-2023-48022 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free