{"id":"CVE-2026-62325","published":"2026-07-28T21:52:05Z","modified":"2026-07-29T13:25:38Z","title":"goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)","vendor":"goshs-labs","product":"goshs","tier":"tail","description":{"text":"goshs is a feature-rich single-binary file server for red teamers and developers. From 2.1.3 until 2.1.4, the sftpserver/sftpserver.go password handler used Username != \"\" && Password != \"\", so running goshs with -b 'admin:' -sftp and no -fkf left both SFTP authentication handlers unset and allowed unauthenticated file access. This issue is fixed in version 2.1.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00426,"percentile":0.37762,"provenance":"source"},"cwes":[{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-rjrw-mjq6-hpmm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/goshs-labs/goshs/commit/32f4a0e1790a709f722d0f3b2341f139d003180a","tags":["x_refsource_MISC"]},{"url":"https://github.com/goshs-labs/goshs/releases/tag/v2.1.4","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":7.55},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"goshs-labs","affectedVersions":[{"vendor":"goshs-labs","product":"goshs","versions":[">= 2.1.3, < 2.1.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-29T13:22:29.049499Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/patrickhener/goshs/v2","vulnerableRanges":[">=2.1.3, <2.1.4"],"patched":["2.1.4"],"from":["GHSA-rjrw-mjq6-hpmm"],"provenance":"source"},{"ecosystem":"Go","package":"goshs.de/goshs/v2","vulnerableRanges":[">=2.1.3, <2.1.4"],"patched":["2.1.4"],"from":["GHSA-rjrw-mjq6-hpmm","GO-2026-6132"],"provenance":"source"},{"ecosystem":"Go","package":"goshs.de/goshs","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-6132"],"provenance":"source"}],"summary":{"text":"The goshs file server's SFTP password handler in sftpserver/sftpserver.go, in versions 2.1.3 through 2.1.4, checks Username != \"\" && Password != \"\" incorrectly, so an SFTP server started with the basic-auth setting \"admin:\" and no key file leaves both SFTP authentication handlers unset. An unauthenticated remote attacker with network access to the SFTP service can read and modify files, with no user interaction or prior credentials required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:20Z"},"euvd":{"id":"EUVD-2026-50079","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"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},{"cve":"CVE-2026-64863","published":"2026-07-28","fixed":"2.1.4","kev":false},{"cve":"CVE-2026-66063","published":"2026-07-28","fixed":"2.1.5-0.20260727065949-f3ef599e4091","kev":false,"link":{"from":"CVE-2026-62325","to":"CVE-2026-66063","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs/v2","fromFixed":"2.1.4","toFixed":"2.1.5-0.20260727065949-f3ef599e4091","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:goshs.de/goshs/v2","fromFixed":"2.1.4","toFixed":"2.1.5-0.20260727065949-f3ef599e4091","daysApart":0}]}},{"cve":"CVE-2026-66064","published":"2026-07-28","fixed":"2.1.5-0.20260727065949-f3ef599e4091","kev":false,"link":{"from":"CVE-2026-62325","to":"CVE-2026-66064","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs/v2","fromFixed":"2.1.4","toFixed":"2.1.5-0.20260727065949-f3ef599e4091","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:goshs.de/goshs/v2","fromFixed":"2.1.4","toFixed":"2.1.5-0.20260727065949-f3ef599e4091","daysApart":0}]}}],"package":"Go:github.com/patrickhener/goshs/v2"}}