{"id":"CVE-2024-55659","aliases":["CVE-2024-55659","GHSA-fqj6-whhx-47p7","GO-2024-3326"],"related":[],"kind":"vulnerability","state":"published","title":"SiYuan has an arbitrary file write in the host via /api/asset/upload","summary":"SiYuan is a personal knowledge management system. Prior to version 3.1.16, the `/api/asset/upload` endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored cross-site scripting (via the file write). Version 3.1.16 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SiYuan is a personal knowledge management system. Prior to version 3.1.16, the `/api/asset/upload` endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored cross-site scripting (via the file write). Version 3.1.16 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe /api/asset/upload endpoint in Siyuan is vulnerable to both arbitrary file write to the host and stored XSS (via the file write).\n\n### Impact\nArbitrary file write","format":"markdown","source":"ghsa"},{"lang":"en","text":"SiYuan has an arbitrary file write in the host via /api/asset/upload in github.com/siyuan-note/siyuan/kernel","format":"markdown","source":"go"},{"lang":"es","text":"SiYuan es un sistema de gestión de conocimiento personal. Antes de la versión 3.1.16, el endpoint `/api/asset/upload` en Siyuan era vulnerable tanto a la escritura arbitraria de archivos en el host como a Cross-Site Scripting almacenado (a través de la escritura de archivos). La versión 3.1.16 contiene un parche para solucionar el problema.","source":"nvd"}],"published":"2024-12-11T18:44:49.000Z","modified":"2026-06-17T08:11:21.627Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-79"],"affected":[{"ranges":[{"version":"< 3.1.16","status":"affected"}],"vendor":"siyuan-note","product":"siyuan","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.0.0-20241210012039-5129ad926a21"}],"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","source":"go"},{"ranges":[{"status":"affected","version":"3.1.15"}],"vendor":"b3log","product":"siyuan","cpe":"cpe:2.3:a:b3log:siyuan:3.1.15:-:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fqj6-whhx-47p7","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55659","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/siyuan-note/siyuan","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3326","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-12T16:29:34.872Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-55659","url":"https://www.cve.org/CVERecord?id=CVE-2024-55659","licence":"CVE Terms of Use","modified":"2024-12-12T16:29:46.007Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fqj6-whhx-47p7","url":"https://github.com/advisories/GHSA-fqj6-whhx-47p7","licence":"CC-BY-4.0","modified":"2024-12-12T19:20:10.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3326","url":"https://pkg.go.dev/vuln/GO-2024-3326","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:06.322Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-55659","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55659","licence":"Public domain","modified":"2026-06-17T08:11:21.627Z"}],"updatedAt":"2026-11-25T22:58:50.024Z","epss":{"score":0.00396,"percentile":0.35904,"date":"2026-12-01T12:00:22.000Z"}}