CVE-2026-40884: goshs is a SimpleHTTPServer written in Go
CVE-2026-40884 is a critical-severity flaw (CVSS 9.8) affecting goshs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 vulnerabili
Why this priority
- Critical severity
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.5% (top 59%) |
| CISA exploited list | No |
| Weakness | CWE-306 |
| Published | 2026-04-21 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40884?
goshs: upgrade to 2.0.0. Exact commands for each OS are on this page.
Is CVE-2026-40884 being exploited?
CVE-2026-40884 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40884 affect?
CVE-2026-40884 affects goshs. Severity is critical (CVSS 9.8). 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
How urgent is CVE-2026-40884?
Priority 58/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-40189 CRITICAL 9.8 UPGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40876 HIGH 8.8 UPGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40885 HIGH 8.8 DOWNGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40903 CRITICAL 9.1 UPGRADE goshs is a SimpleHTTPServer written in Go
- CVE-2026-40188 HIGH 7.7 UPGRADE goshs is a SimpleHTTPServer written in Go