CVE-2026-62325 goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
CriticalCVSS 9.1
EPSS 0.43%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
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.
Upgrade path
3 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| goshs.de/goshs/v2(Go) | = 2.1.3; >= 2.1.3, < 2.1.4; All versions | 2.1.4 | Partially fixed |
| patrickhener goshs(Go) | = 2.1.3; >= 2.1.3, < 2.1.4 | 2.1.4 | Fixed |
| goshs-labs goshs | = >= 2.1.3, < 2.1.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| patrickhener goshs(Go) | >= 2.1.3, < 2.1.4 | 2.1.4 |
| patrickhener goshs(Go) | = 2.1.3 | No fix listed |
| goshs.de/goshs/v2(Go) | >= 2.1.3, < 2.1.4 | 2.1.4 |
| goshs.de/goshs/v2(Go) | = 2.1.3 | No fix listed |
| goshs.de/goshs/v2(Go) | All versions | No fix listed |
| goshs-labs goshs | = >= 2.1.3, < 2.1.4 | No fix listed |