CVE-2026-62325 goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
Attackers can bypass SFTP authentication and access files when specific command-line flags are used without a key file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-62325?
CVE-2026-62325 is a critical authentication bypass vulnerability in goshs-labs goshs, published on 28 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-306
Which versions are affected by CVE-2026-62325?
6 open source packages ship an affected version, including goshs.de/goshs/v2, github.com/patrickhener/goshs/v2 and goshs.de/goshs.
| Package | Affected | Fixed in |
|---|---|---|
goshs.de/goshs/v2 Go | From 2.1.3 | 2.1.4 |
goshs.de/goshs/v2 Go | From 2.1.3 | 2.1.4 |
goshs.de/goshs/v2 Go | From 2.1.3 | 2.1.4 |
github.com/patrickhener/goshs/v2 Go | From 2.1.3 | 2.1.4 |
github.com/patrickhener/goshs/v2 Go | From 2.1.3 | 2.1.4 |
goshs.de/goshs Go | All versions | None |
How do I fix CVE-2026-62325?
Upgrade goshs.de/goshs/v2 to 2.1.4 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2026-62325 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-62325 exists.
Sources
Also known as GHSA-rjrw-mjq6-hpmm, GO-2026-6132.