Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/patrickhener/goshs/v2
  4. ›
  5. GHSA-5h6h-7rc9-3824

GHSA-5h6h-7rc9-3824: SFTP root escape via prefix-based path validation in goshs

April 14, 2026

goshs contains an SFTP root escape caused by prefix-based path validation. An authenticated SFTP user can read from and write to filesystem paths outside the configured SFTP root, which breaks the intended jail boundary and can expose or modify unrelated server files.

References

  • github.com/advisories/GHSA-5h6h-7rc9-3824
  • github.com/patrickhener/goshs
  • github.com/patrickhener/goshs/releases/tag/v2.0.0
  • github.com/patrickhener/goshs/security/advisories/GHSA-5h6h-7rc9-3824

Code Behaviors & Features

Detect and mitigate GHSA-5h6h-7rc9-3824 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/patrickhener/goshs/v2/GHSA-5h6h-7rc9-3824.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:10 +0000.