ghsa-4pjc-pwgq-q9jp
Vulnerability from github
Published
2024-12-11 18:44
Modified
2024-12-12 19:20
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

Show details on source website


{
   affected: [
      {
         package: {
            ecosystem: "Go",
            name: "github.com/siyuan-note/siyuan/kernel",
         },
         ranges: [
            {
               events: [
                  {
                     introduced: "0",
                  },
                  {
                     last_affected: "0.0.0-20241210012039-5129ad926a21",
                  },
               ],
               type: "ECOSYSTEM",
            },
         ],
      },
   ],
   aliases: [
      "CVE-2024-55660",
   ],
   database_specific: {
      cwe_ids: [
         "CWE-1336",
      ],
      github_reviewed: true,
      github_reviewed_at: "2024-12-11T18:44:47Z",
      nvd_published_at: "2024-12-12T02:15:32Z",
      severity: "MODERATE",
   },
   details: "### 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",
   id: "GHSA-4pjc-pwgq-q9jp",
   modified: "2024-12-12T19:20:33Z",
   published: "2024-12-11T18:44:47Z",
   references: [
      {
         type: "WEB",
         url: "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4pjc-pwgq-q9jp",
      },
      {
         type: "ADVISORY",
         url: "https://nvd.nist.gov/vuln/detail/CVE-2024-55660",
      },
      {
         type: "WEB",
         url: "https://github.com/siyuan-note/siyuan/commit/e70ed57f6e4852e2bd702671aeb8eb3a47a36d71",
      },
      {
         type: "PACKAGE",
         url: "https://github.com/siyuan-note/siyuan",
      },
      {
         type: "WEB",
         url: "https://pkg.go.dev/vuln/GO-2024-3324",
      },
   ],
   schema_version: "1.4.0",
   severity: [
      {
         score: "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",
         type: "CVSS_V4",
      },
   ],
   summary: "SiYuan has an SSTI via /api/template/renderSprig",
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.