CVE-2024-55660
JSON

6.9medium

SiYuan has an SSTI via /api/template/renderSprig

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4pjc-pwgq-q9jpGO-2024-3324

Description

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.

Affected

Product or packageVersionsReported by
siyuan-note siyuan< 3.1.16CVE List
github.com/siyuan-note/siyuan/kernel (Go)up to 0.0.0-20241210012039-5129ad926a21, all versionsGitHub Advisory Database, Go Vulnerability Database
b3log siyuan3.1.15NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-1336

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
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

Go Vulnerability Database

SiYuan has an SSTI via /api/template/renderSprig in github.com/siyuan-note/siyuan/kernel

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-55660 changed 2024-12-12CVE Terms of Use
GitHub Advisory DatabaseGHSA-4pjc-pwgq-q9jp changed 2024-12-12CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3324 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-55660 changed 2026-06-17Public domain