siyuan-note/siyuan · Security
SiYuan has an SSTI via /api/template/renderSprig
- GHSA ID
- GHSA-4pjc-pwgq-q9jp
- CVE ID
- CVE-2024-55660
- Severity
- medium
- Published
- Updated
- CVSS v4
- 6.9 · 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
Description
Summary
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
Impact
Information leakage
CWEs
- CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
References
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4pjc-pwgq-q9jp ↗
- https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2024-55660 ↗
- https://pkg.go.dev/vuln/GO-2024-3324 ↗
- https://github.com/advisories/GHSA-4pjc-pwgq-q9jp ↗