CVE-2026-40884
Last modified
CVE-2026-40884 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.48% chance of exploitation in the next 30 days.
Description
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 without a password. This vulnerability is fixed in 2.0.0-beta.6.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Goshs | Goshs | < 2.0.0 | — |
| Goshs | Goshs | 2.0.0 | Beta1 |
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-c29w-qq4m-2gcvExploit, Vendor Advisory
- https://github.com/patrickhener/goshs/security/advisories/GHSA-c29w-qq4m-2gcvExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40884?
How severe is CVE-2026-40884?
How do I fix CVE-2026-40884?
Are you affected by CVE-2026-40884?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
