Goshs-labs goshs
goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CNA · CWE-306
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
goshs-labs goshs
- >= 2.1.3, < 2.1.4
Fixed in 2.1.4
Mitigation
Upgrade goshs to 2.1.4 or later.
References
- Vendor advisory github.com/goshs-labs/goshs/security/advisorie…
- Patch github.com/goshs-labs/goshs/commit/32f4a0e1790…
- Release notes github.com/goshs-labs/goshs/releases/tag/v2.1.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.