CVE-2024-55660
Homebrew vulnerability analysis and mitigation

Overview

SiYuan is a personal knowledge management system that was found to contain a Server-Side Template Injection (SSTI) vulnerability. Prior to version 3.1.16, SiYuan's /api/template/renderSprig endpoint was vulnerable to SSTI through the Sprig template engine. Although the engine has limitations, it allowed attackers to access environment variables. The vulnerability was discovered and disclosed on December 11, 2024 (GitHub Advisory).

Technical details

The vulnerability exists in the /api/template/renderSprig endpoint which uses the Sprig template engine. The issue allows for Server-Side Template Injection that could expose environment variables through template functions like 'env' and 'expandenv'. The vulnerability has been assigned a CVSS v4.0 Base Score of 6.9 (Medium) with the vector string 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 (NVD).

Impact

The primary impact of this vulnerability is information leakage through access to environment variables. While the Sprig template engine has certain limitations, successful exploitation could allow attackers to access sensitive configuration data stored in environment variables (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 3.1.16. The fix involves removing potentially dangerous functions from the template engine, specifically the 'env', 'expandenv', and 'getHostByName' functions (GitHub Commit). Users are advised to upgrade to version 3.1.16 or later to address this security issue.

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management