Security mailing lists by PureSourceCode

GHSA-p799-q2pr-6mxj

MEDIUM

go.rgst.io/stencil/v2 vulnerable to Path Traversal

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

Published
29 Mar 2025
Last modified
3 Mar 2026
Weakness
CWE-22
Also known as
GO-2025-3584
Sources
OSVJSONOSV GO-2025-3584JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go go.rgst.io/stencil/v2 < 2.3.0 2.3.0
OSV Go go.rgst.io/stencil all versions

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Apr 2025)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.