{"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-2026-57516 exists.","fix":"Upgrade ray to 2.56.0 or later.","what":"CVE-2026-57516 is a high-severity unsafe deserialization vulnerability in Anyscale, Inc Ray, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-57516 and fix it if it is affected.\n\nWhat it is: CVE-2026-57516 is a high-severity unsafe deserialization vulnerability in Anyscale, Inc Ray, published on 1 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-57516 exists.\n\nAffected packages and fixed versions:\n- ray (PyPI): affected all versions; fixed in 2.56.0\n- ray (PyPI): affected all versions; fixed in 2.56.0\n- ray (PyPI): affected all versions; fixed in 2.56.0\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-2026-57516/ (Markdown: https://insights.sbomify.com/CVE-2026-57516/index.md)","id":"CVE-2026-57516","markdown":"https://insights.sbomify.com/CVE-2026-57516/index.md","name":"CVE-2026-57516","record":{"aliases":["ECHO-d8c2-64e4-5430","GHSA-hhrp-gw25-jr43","MINI-5jcp-mc9j-7799","MINI-f4wf-33fg-rvv4","PYSEC-2026-2273"],"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 achieve remote code execution in Ray workers by supplying a malicious tar archive to the WebDataset reader due to unsafe deserialization.","user_interaction":"required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[{"product":"ray","vendor":"anyscale"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Ray prior to 2.56.0 contains an unsafe deserialization vulnerability in the WebDataset reader that allows attackers to achieve remote code execution by supplying a malicious tar archive to the read_webdataset() function. The _default_decoder() function in webdataset_datasource.py unconditionally calls pickle.loads() on tar entries with .pkl/.pickle extensions and torch.load() with weights_only=False on .pt/.pth entries, executing arbitrary code inside Ray remote workers on every worker that processes the malicious archive.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Ray \u003c 2.56.0 Unsafe Deserialization RCE via WebDataset Reader","id":"CVE-2026-57516","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2026"},"n_packages":3,"n_references":5,"next":{"headline":"Control Web Panel \u003c 0.9.8.1225 Blind SQL Injection via userRes Parameter","id":"CVE-2026-57517"},"packages":[{"ecosystem":"PyPI","fixed":["2.56.0"],"introduced":["0"],"last_affected":[],"package":"ray","purl":null,"source":"GHSA-hhrp-gw25-jr43"},{"ecosystem":"PyPI","fixed":["2.56.0"],"introduced":["0"],"last_affected":[],"package":"ray","purl":"pkg:pypi/ray","source":"GHSA-hhrp-gw25-jr43"},{"ecosystem":"PyPI","fixed":["2.56.0"],"introduced":["0"],"last_affected":[],"package":"ray","purl":"pkg:pypi/ray","source":"PYSEC-2026-2273"}],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2026-57515"},"products":["Ray"],"published":"2026-07-01","related":[{"cvss_score":9.4,"headline":"Ray-Project Ray Code Injection","id":"CVE-2025-62593","kev_date_added":"2026-08-17","published":"2025-11-26"},{"cvss_score":9.8,"headline":"Ray has arbitrary code execution via jobs submission API","id":"CVE-2023-48022","kev_date_added":null,"published":"2023-11-28"},{"cvss_score":9.1,"headline":"Server-side request forgery in n/a","id":"CVE-2023-48023","kev_date_added":null,"published":"2023-11-28"},{"cvss_score":8.9,"headline":"Ray: Remote Code Execution via Parquet Arrow Extension Type Deserialization","id":"CVE-2026-41486","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":8.7,"headline":"Ray Dashboard \u003c= 2.8.0 Path Traversal Leading to Local File Disclosure","id":"CVE-2026-32981","kev_date_added":null,"published":"2026-03-17"},{"cvss_score":5.9,"headline":"Ray: Dashboard DELETE endpoints allow unauthenticated browser-triggered DoS (Serve shutdown / job deletion)","id":"CVE-2026-27482","kev_date_added":null,"published":"2026-02-21"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["Anyscale, Inc"]},"summary":"Attackers can achieve remote code execution in Ray workers by supplying a malicious tar archive to the WebDataset reader due to unsafe deserialization.","url":"https://insights.sbomify.com/CVE-2026-57516/"}