GHSA-p799-q2pr-6mxj

Suggest an improvement
Source
https://github.com/advisories/GHSA-p799-q2pr-6mxj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-p799-q2pr-6mxj/GHSA-p799-q2pr-6mxj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-p799-q2pr-6mxj
Aliases
Published
2025-03-29T00:08:44Z
Modified
2025-04-01T22:12:09.618005Z
Severity
  • 6.0 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
go.rgst.io/stencil/v2 vulnerable to Path Traversal
Details

Impact

The 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.

The 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".

Patches

Patched in 2.3.0 and above.

Workarounds

No workarounds are present.

References

https://github.com/jaredallard/archives/security/advisories/GHSA-j95m-rcjp-q69h

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-29T00:08:44Z"
}
References

Affected packages

Go / go.rgst.io/stencil/v2

Package

Name
go.rgst.io/stencil/v2
View open source insights on deps.dev
Purl
pkg:golang/go.rgst.io/stencil/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.0