CVE-2026-40884: goshs - Authentication Bypass
- Cve: CVE-2026-40884
- Name: goshs - Authentication Bypass
- 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.
- Impact: Unauthenticated attackers can access files via SFTP without a password, leading to unauthorized file access.
- Remediation: Upgrade to version 2.0.0-beta.6 or later.
- Vulnerability type: broken_authentication
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00497
- Epss percentile: 0.4345
- Assignee: [email protected]
- Published at: 2026-04-21T20:17:02Z
- Age in days: 217
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40884
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-306 | Missing Authentication for Critical Functionality |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/patrickhener/goshs/security/advisories/GHSA-c29w-qq4m-2gcv | nvd | 2026-04-21 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/patrickhener/goshs/security/advisories/GHSA-c29w-qq4m-2gcv | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| goshs:goshs | = 2.0.0 beta5, = 2.0.0 beta4, = 2.0.0 beta3, < 2.0.0, = 2.0.0 beta1, = 2.0.0 beta2 | no | nvd | /v1/products/goshs/goshs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| patrickhener/goshs | package, security_advisory | yes | /v1/repositories/patrickhener/goshs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-21
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts