From 9a56ee9f7d4651d55b988a8e147df00e556db7de Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Sat, 29 Mar 2025 00:10:35 +0000 Subject: [PATCH] Publish GHSA-p799-q2pr-6mxj --- .../GHSA-p799-q2pr-6mxj.json | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 advisories/github-reviewed/2025/03/GHSA-p799-q2pr-6mxj/GHSA-p799-q2pr-6mxj.json diff --git a/advisories/github-reviewed/2025/03/GHSA-p799-q2pr-6mxj/GHSA-p799-q2pr-6mxj.json b/advisories/github-reviewed/2025/03/GHSA-p799-q2pr-6mxj/GHSA-p799-q2pr-6mxj.json new file mode 100644 index 00000000000..f61bb46b073 --- /dev/null +++ b/advisories/github-reviewed/2025/03/GHSA-p799-q2pr-6mxj/GHSA-p799-q2pr-6mxj.json @@ -0,0 +1,67 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-p799-q2pr-6mxj", + "modified": "2025-03-29T00:08:44Z", + "published": "2025-03-29T00:08:44Z", + "aliases": [], + "summary": "go.rgst.io/stencil/v2 vulnerable to Path Traversal", + "details": "### Impact\n\nThe library used to extract archives (github.com/jaredallard/archives) was vulnerable to the \"zip slip\" vulnerability. This is used to extract native extension archives and repository source archives. A native extension or repository archive could be crafted in such a way where a remote code execution or modification/reading of a file is possible using the user who is running stencil.\n\nThe severity is marked as \"medium\" because native extensions have always considered to be \"unsafe\" to run when not trusted. Native extensions are arbitrary code being ran, which could always do this same exploit with less steps. The medium severity is to reflect that this could be done even when a user is _not_ using a native extension, for example a repository source archive. However, one would need to mutate the archives provided by Github or perform some hackery with links, which may not be possible. Thus, \"medium\" is used out of an abundance of caution where I would've labeled this as \"low\".\n\n### Patches\n\nPatched in 2.3.0 and above.\n\n### Workarounds\n\nNo workarounds are present.\n\n### References\n\nhttps://github.com/jaredallard/archives/security/advisories/GHSA-j95m-rcjp-q69h", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "go.rgst.io/stencil/v2" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.3.0" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/jaredallard/archives/security/advisories/GHSA-j95m-rcjp-q69h" + }, + { + "type": "WEB", + "url": "https://github.com/rgst-io/stencil/security/advisories/GHSA-p799-q2pr-6mxj" + }, + { + "type": "WEB", + "url": "https://github.com/rgst-io/stencil/pull/255" + }, + { + "type": "WEB", + "url": "https://github.com/rgst-io/stencil/commit/5482fcada0c6f77d903d13129bd656b7df80ac3a" + }, + { + "type": "PACKAGE", + "url": "https://github.com/rgst-io/stencil" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-22" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-03-29T00:08:44Z", + "nvd_published_at": null + } +} \ No newline at end of file