Live threats

All CVEs / Goshs

CVE-2026-40884Goshs

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Apr 21, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-306
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Goshs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/patrickhener/goshs ≤ 1.1.4 no fixed version —
Go github.com/patrickhener/goshs all no fixed version —
Go github.com/patrickhener/goshs/v2 < 2.0.0 2.0.0 go get github.com/patrickhener/goshs/v2@v2.0.0
Go github.com/patrickhener/goshs/v2 < 2.0.0 2.0.0 go get github.com/patrickhener/goshs/v2@v2.0.0

Per OSV / GitHub Advisories (GHSA-c29w-qq4m-2gcv, GO-2026-5303). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
goshsgoshs< 2.0.0
goshsgoshs2.0.0
goshsgoshs2.0.0
goshsgoshs2.0.0
goshsgoshs2.0.0
goshsgoshs2.0.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.