CVE-2026-40884
published critical CVSS 3.1 · 9.8goshs: Empty-username SFTP password authentication bypass in goshs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patrickhener | — | goshs< 2.0.0-beta.6 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patrickhener | goshs | < 2.0.0-beta.6 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-306 CWE-306: Missing Authentication for Critical Function
References
1Provider assertions
2GitHub_M · cna
goshs: Empty-username SFTP password authentication bypass in goshs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2d04609b2459c99aee8e864f58d9e576d4c433a79a559066f45921a88cca09fd
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record