CVE-2026-40884: Vulnerability in Goshs
Critical. goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.6, goshs contains an SFTP authentication bypass when the documented empty-username basic-auth syntax is used. If the server is started with -b ':pass' together with -sftp, goshs accepts that configuration but does not install any SFTP password handler. As a result, an unauthenticated network attacker can connect to the SFTP service and access files...
Go, CWE-306
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.5 % in 30 days
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-c29w-qq4m-2gcv
- EU ID
- EUVD-2026-24272
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-306
- Published
- 14 Apr 2026
- Last change
- 26 Oct 2026
- Likelihood rank
- Higher than 44 % of all rated vulnerabilities
- Analysis status
- Analyzed
- Ecosystem
- Go
Affected products
Affected versions and the first fixed release
- Goshs Before 2.0.0; Version 2.0.0. No fixed version recorded
Affected packages
Vulnerable version ranges and fixed releases
- github.com/patrickhener/goshs Go, Affected through 1.1.4. No fixed version recorded
- github.com/patrickhener/goshs/v2 Go, Affected before 2.0.0. Fixed in 2.0.0
Exploit code
Public exploits and proofs of concept, handle with care
Related
- Goshs vulnerabilities Recent advisories, watch this product