{"answers":{"affected":"3 open source packages ship an affected version, including ray. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-6019 exists.","fix":"Upgrade ray to 2.8.1 or later.","what":"CVE-2023-6019 is a critical command injection vulnerability in ray-project/ray, published on 16 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-6019 and fix it if it is affected.\n\nWhat it is: CVE-2023-6019 is a critical command injection vulnerability in ray-project/ray, published on 16 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-6019 exists.\n\nAffected packages and fixed versions:\n- ray (PyPI): affected all versions; fixed in 2.8.1\n- ray (PyPI): affected all versions; fixed in 2.8.1\n- ray (PyPI): affected all versions; fixed in 2.8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-6019/ (Markdown: https://insights.sbomify.com/CVE-2023-6019/index.md)","id":"CVE-2023-6019","markdown":"https://insights.sbomify.com/CVE-2023-6019/index.md","name":"CVE-2023-6019","record":{"aliases":["GHSA-h3xg-wv58-5p43","PYSEC-2026-519"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ray distributed computing","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands remotely via the Ray dashboard's cpu_profile parameter without authentication.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"ray","vendor":"ray_project"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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","ecosystems":["PyPI"],"exploits":{"exploitdb":1,"first_seen":"2023-11-15","github_poc":4,"max_poc_stars":6,"metasploit":1,"nuclei":0,"refs":[{"date":"2026-06-19T19:08:58Z","kind":"github_poc","ref":"https://github.com/joaquinrrr/CVE-2023-6019","stars":6,"title":"PoC exploit for CVE-2023-6019 - Remote Code Execution via unauthenticated Ray Dashboard Jobs API."},{"date":"2024-04-21T14:30:28Z","kind":"github_poc","ref":"https://github.com/Clydeston/CVE-2023-6019","stars":2,"title":"Python POC for CVE-2023-6019 taken from https://huntr.com/bounties/d0290f3c-b302-4161-89f2-c13bb28b4cfe"},{"date":"2024-04-10T09:24:06Z","kind":"github_poc","ref":"https://github.com/FireWolfWang/CVE-2023-6019","stars":1,"title":"Ray OS Command Injection RCE(Unauthorized)"},{"date":"2023-11-15","kind":"metasploit","ref":"exploit/linux/http/ray_cpu_profile_cmd_injection_cve_2023_6019","stars":null,"title":"Ray cpu_profile command injection"},{"date":"2024-04-12","kind":"exploitdb","ref":"51978","stars":null,"title":"Ray OS v2.6.3 - Command Injection RCE(Unauthorized)"},{"date":"2025-10-28T20:04:02Z","kind":"github_poc","ref":"https://github.com/Zohaibkhan1472/cve-2023-6019","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Ray Command Injection in cpu_profile Parameter","id":"CVE-2023-6019","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":3,"n_references":1,"next":{"headline":"Ray Static File Local File Include","id":"CVE-2023-6020"},"packages":[{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["0"],"last_affected":[],"package":"ray","purl":null,"source":"GHSA-h3xg-wv58-5p43"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["0"],"last_affected":[],"package":"ray","purl":"pkg:pypi/ray","source":"GHSA-h3xg-wv58-5p43"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["0"],"last_affected":[],"package":"ray","purl":"pkg:pypi/ray","source":"PYSEC-2026-519"}],"prev":{"headline":"MLflow Arbitrary File Write","id":"CVE-2023-6018"},"products":["ray-project/ray"],"published":"2023-11-16","related":[{"cvss_score":7.5,"headline":"Ray Static File Local File Include","id":"CVE-2023-6020","kev_date_added":null,"published":"2023-11-16"},{"cvss_score":7.5,"headline":"Ray Log File Local File Include","id":"CVE-2023-6021","kev_date_added":null,"published":"2023-11-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["ray-project"]},"summary":"Attackers can execute arbitrary OS commands remotely via the Ray dashboard's cpu_profile parameter without authentication.","url":"https://insights.sbomify.com/CVE-2023-6019/"}