{"id":"CVE-2024-55660","aliases":["CVE-2024-55660","GHSA-4pjc-pwgq-q9jp","GO-2024-3324"],"related":[],"kind":"vulnerability","state":"published","title":"SiYuan has an SSTI via /api/template/renderSprig","summary":"SiYuan is a personal knowledge management system. Prior to version 3.1.16, SiYuan's `/api/template/renderSprig` endpoint is vulnerable to Server-Side Template Injection (SSTI) through the Sprig template engine. Although the engine has limitations, it allows attackers to access environment variables. 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, SiYuan's `/api/template/renderSprig` endpoint is vulnerable to Server-Side Template Injection (SSTI) through the Sprig template engine. Although the engine has limitations, it allows attackers to access environment variables. Version 3.1.16 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\nSiyuan's /api/template/renderSprig endpoint is vulnerable to Server-Side Template Injection (SSTI) through the Sprig template engine. Although the engine has limitations, it allows attackers to access environment variables\n\n### Impact\n\nInformation leakage","format":"markdown","source":"ghsa"},{"lang":"en","text":"SiYuan has an SSTI via /api/template/renderSprig 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/template/renderSprig` de SiYuan era vulnerable a Server-Side Template Injection (SSTI) a través del motor de plantillas Sprig. Aunque el motor tiene limitaciones, permite a los atacantes acceder a las variables del entorno. La versión 3.1.16 contiene un parche para el problema.","source":"nvd"}],"published":"2024-12-11T18:44:47.000Z","modified":"2026-06-17T08:11:21.747Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94","CWE-1336"],"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-4pjc-pwgq-q9jp","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-55660","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/siyuan-note/siyuan","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3324","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-12T16:29:04.165Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-55660","url":"https://www.cve.org/CVERecord?id=CVE-2024-55660","licence":"CVE Terms of Use","modified":"2024-12-12T16:29:14.433Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4pjc-pwgq-q9jp","url":"https://github.com/advisories/GHSA-4pjc-pwgq-q9jp","licence":"CC-BY-4.0","modified":"2024-12-12T19:20:33.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3324","url":"https://pkg.go.dev/vuln/GO-2024-3324","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:07.731Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-55660","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55660","licence":"Public domain","modified":"2026-06-17T08:11:21.747Z"}],"updatedAt":"2026-11-25T22:58:50.024Z","epss":{"score":0.00624,"percentile":0.51291,"date":"2026-12-01T12:00:22.000Z"}}