9.8

CVE-2026-40884: goshs: Empty-username SFTP password authentication bypass in goshs

Analyzed
AliasesGHSA-c29w-qq4m-2gcvGO-2026-5303
Published 21-04-2026Last modified 22-04-2026

Vulnerability summary

CVE-2026-40884 is a critical (CVSS 9.8) vulnerability in goshs. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 50.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)
EPSS score
0.65%
0%100%
Low · +0.17 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 21-04-2026
    PublishedVulnerability first disclosed.
  2. 22-04-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.65%

Chance of exploitation in the next 30 days

Percentile

50%

Versus all other CVEs

30-day change

Increase +0.17 pp

From 0.48% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Goshs

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Github.com/patrickhener1 product
  • goshs≤ 1.1.4 | All versions (No fix recorded)
Github.com/patrickhener/goshs1 product
  • v2< 2.0.0
Goshs1 product
  • goshs< 2.0.0 | 2.0.0:beta1 | 2.0.0:beta2 | 2.0.0:beta3 | 2.0.0:beta4 | 2.0.0:beta5
Patrickhener1 product

4 vendors · 4 products

References

3 links