CVE-2026-62325
CRITICALgoshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/goshs-labs/goshs/security/advisories/GHSA-rjrw-mjq6-hpmm
X_Refsource_Misc x_refsource_misc
https://github.com/goshs-labs/goshs/commit/32f4a0e1790a709f722d0f3b2341f139d003180a
X_Refsource_Misc x_refsource_misc
https://github.com/goshs-labs/goshs/releases/tag/v2.1.4
Scores
CVSS v3
9.1
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Details
CWE
CWE-306
Status
published
Products (3)
goshs/v2
2.1.3 - 2.1.4Go
goshs-labs/goshs
>= 2.1.3, < 2.1.4
patrickhener/goshs
2.1.3 - 2.1.4Go
Published
Jul 28, 2026
Tracked Since
Jul 29, 2026