{"id":"CVE-2026-40884","published":"2026-04-21T19:39:25Z","modified":"2026-04-22T13:44:15Z","title":"goshs: Empty-username SFTP password authentication bypass in goshs","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00497,"percentile":0.43511,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-c29w-qq4m-2gcv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":8.7},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"patrickhener","affectedVersions":[{"vendor":"patrickhener","product":"goshs","versions":["< 2.0.0-beta.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-22T13:43:56.178845Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/patrickhener/goshs","vulnerableRanges":["<=1.1.4","all versions"],"patched":[],"from":["GHSA-c29w-qq4m-2gcv","GO-2026-5303"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/patrickhener/goshs/v2","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-c29w-qq4m-2gcv","GO-2026-5303"],"provenance":"source"}],"summary":{"text":"goshs contains an SFTP authentication bypass in its handling of the empty-username basic-auth syntax: when started with -b ':pass' alongside -sftp, the server accepts the configuration but installs no SFTP password handler. An unauthenticated attacker with network access to the SFTP service can connect and access files without any password, requiring no user interaction or prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:14Z"},"euvd":{"id":"EUVD-2026-24272","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-40883","published":"2026-04-21","fixed":"2.0.0-beta.6","kev":false,"link":{"from":"CVE-2026-40883","to":"CVE-2026-40884","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs/v2","fromFixed":"2.0.0-beta.6","toFixed":"2.0.0","daysApart":0}]}},{"cve":"CVE-2026-40885","published":"2026-04-21","fixed":"2.0.0-beta.6","kev":false},{"cve":"CVE-2026-40876","published":"2026-04-21","fixed":"2.0.0","kev":false},{"cve":"CVE-2026-40884","published":"2026-04-21","fixed":"2.0.0","kev":false},{"cve":"CVE-2026-42091","published":"2026-05-04","fixed":"2.0.2","kev":false},{"cve":"CVE-2026-54719","published":"2026-07-28","fixed":"2.1.1","kev":false},{"cve":"CVE-2026-62325","published":"2026-07-28","fixed":"2.1.4","kev":false}],"package":"Go:github.com/patrickhener/goshs/v2"}}