goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-306.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| goshs-labs | goshs | 2.1.3 to before 2.1.4 | 2.1.4 | Patch available | CNA |
| — | github.com/patrickhener/goshs/v2 (Go) | 2.1.3 to before 2.1.4 | 2.1.4 | Patch available | GHSA-rjrw-mjq6-hpmm |
| — | goshs.de/goshs/v2 (Go) | 2.1.3 to before 2.1.4 | 2.1.4 | Patch available | GHSA-rjrw-mjq6-hpmm |
- goshs Vendorgoshs-labs Affected 2.1.3 to before 2.1.4 Fixed in 2.1.4 Patch available CNA
- github.com/patrickhener/goshs/v2 (Go) Vendor— Affected 2.1.3 to before 2.1.4 Fixed in 2.1.4 Patch available GHSA-rjrw-mjq6-hpmm
- goshs.de/goshs/v2 (Go) Vendor— Affected 2.1.3 to before 2.1.4 Fixed in 2.1.4 Patch available GHSA-rjrw-mjq6-hpmm
Remediation
- Fix · CNA goshs (goshs-labs) Fixed in 2.1.4
- Fix · GHSA-rjrw-mjq6-hpmm github.com/patrickhener/goshs/v2 (Go) Fixed in 2.1.4 Advisory →
- Fix · GHSA-rjrw-mjq6-hpmm goshs.de/goshs/v2 (Go) Fixed in 2.1.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-62325
- 2026-10-03 Alias added: GHSA-rjrw-mjq6-hpmm
References
More goshs-labs vulnerabilities
- TI-2026-46372 goshs --no-delete WebDAV MOVE bypass allows file deletion/overwrite CVSS 3.1CRITICAL 9.1
- TI-2026-39533 Missing authorization in goshs-labs goshs CVSS 3.1HIGH 7.5
- TI-2026-47040 goshs has a Path Traversal issue CVSS 3.1MEDIUM 6.5
- TI-2026-47041 goshs has ACL Bypass & Path Traversal CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-62325 · CVE Program
- CVE-2026-62325 · NVD
- FIRST EPSS
- GHSA-rjrw-mjq6-hpmm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences