Advisory

GHSA-4pjc-pwgq-q9jp

Also known as: CVE-2024-55660, GO-2024-3324

Summary

SiYuan has an SSTI via /api/template/renderSprig

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-12-11 18:44 UTC
Modified
2024-12-12 19:20 UTC

Affected packages and fixes

github.com/siyuan-note/siyuan/kernel

Go · All systems

Affected

  • introduced 0, last affected 0.0.0-20241210012039-5129ad926a21 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences