Skip to main content
← All vulnerabilities
CVE-2026-62325GO-2026-6132GHSA-RJRW-MJQ6-HPMM

goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != "" && Password != "", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • goshs-labs goshs

    From 2.1.3 · fixed in 2.1.4

  • goshs.de/goshsGo

    All versions

  • goshs.de/goshs/v2Go

    From 2.1.3 · fixed in 2.1.4

  • github.com/patrickhener/goshs/v2Go

    From 2.1.3 · fixed in 2.1.4

  • goshs.de/goshs/v2Go

    From 2.1.3 · fixed in 2.1.4

References 3

GitHub · goshs-labs/goshs