{
  "id": "CVE-2025-21609",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21609",
  "published_at": "2025-01-03T16:26:36.42Z",
  "title": "SiYuan has an arbitrary file deletion vulnerability",
  "vendor": "siyuan-note",
  "product": "siyuan",
  "cvss": {
    "score": 9.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "SiYuan is self-hosted, open source personal knowledge management software. SiYuan Note version 3.1.18 has an arbitrary file deletion vulnerability. The vulnerability exists in the `POST /api/history/getDocHistoryContent` endpoint. An attacker can craft a payload to exploit this vulnerability, resulting in the deletion of arbitrary files on the server. Commit d9887aeec1b27073bec66299a9a4181dc42969f3 fixes this vulnerability and is expected to be available in version 3.1.19.",
  "cwe": "CWE-459",
  "cpes": [
    "cpe:2.3:a:b3log:siyuan:3.1.18:-:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.7,
    "nvd": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "siyuan-note",
        "product": "siyuan",
        "ranges": [
          "= 3.1.18"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "github.com/siyuan-note/siyuan/kernel",
        "ranges": [
          "\u003c 0.0.0-20250103014808-d9887aeec1b2"
        ],
        "fixed_in": null,
        "ecosystem": "Go",
        "advisory": "GHSA-8fx8-pffw-w498"
      }
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8fx8-pffw-w498"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/siyuan-note/siyuan/commit/d9887aeec1b27073bec66299a9a4181dc42969f3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
