CVE-2026-40884: Goshs Auth Bypass

CVE-2026-40884

NVDCVSS scored by security-advisories@github.com

Vulnerability Summary

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.
Severity Level
CRITICAL(9.8)
Published Date
Apr 21, 2026
Last Modified
Oct 26, 2026
Exploitation Status
Public exploit available
EPSS Score (30-Day)
0.67%Probability
Root Weakness (CWE)
The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Goshs < 2.0.0
  • Goshs
  • patrickhener goshs < 2.0.0-beta.6
Patched Versions
  • Goshs 2.0.0

What to do

Prioritize this fix. Exploit code is public, so attacks can follow quickly.

  1. Check whether you run Goshs and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

Timeline

  • Apr 21, 2026Published
  • Oct 26, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Goshs CVEsYou are reading CVE-2026-40884. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 3, 2026 01:10 UTC