Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/patrickhener/goshs/v2
  4. ›
  5. GHSA-c29w-qq4m-2gcv

GHSA-c29w-qq4m-2gcv: Empty-username SFTP password authentication bypass in goshs

April 14, 2026

goshs contains an SFTP authentication bypass when the documented empty-username basic-auth syntax is used. If the server is started with -b ':pass' together with -sftp, goshs accepts that configuration but does not install any SFTP password handler. As a result, an unauthenticated network attacker can connect to the SFTP service and access files without a password. I reproduced this on the latest release v2.0.0-beta.5.

References

  • github.com/advisories/GHSA-c29w-qq4m-2gcv
  • github.com/patrickhener/goshs
  • github.com/patrickhener/goshs/security/advisories/GHSA-c29w-qq4m-2gcv

Code Behaviors & Features

Detect and mitigate GHSA-c29w-qq4m-2gcv 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 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-306: Missing Authentication for Critical Function

Source file

go/github.com/patrickhener/goshs/v2/GHSA-c29w-qq4m-2gcv.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:17:58 +0000.