Vulnerability · Published Jul 28, 2026 · Assigned by GitHub_M
CVE-2026-62325goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
Critical 9.1
In plain English
A critical-severity missing authentication in goshs from goshs-labs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/patrickhener/goshs/v2 | 2.1.4 | GHSA-rjrw-mjq6-hpmm |
| Go | goshs.de/goshs | no fix listed | GO-2026-6132 |
| Go | goshs.de/goshs/v2 | 2.1.4 | GHSA-rjrw-mjq6-hpmm |
| Go | goshs.de/goshs/v2 | 2.1.4 | GO-2026-6132 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| goshs-labs | goshs | >= 2.1.3, < 2.1.4 |
Weakness: CWE-306 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-rjrw-mjq6-hpmm x_refsource_CONFIRM
- https://github.com/goshs-labs/goshs/commit/32f4a0e1790a709f722d0f3b2341f139d003180a x_refsource_MISC
- https://github.com/goshs-labs/goshs/releases/tag/v2.1.4 x_refsource_MISC