Vulnerability · Published Jul 28, 2026 · Assigned by GitHub_M

CVE-2026-62325goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)

Critical 9.1

In plain English

A critical-severity missing authentication in goshs from goshs-labs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.4%top 62.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/patrickhener/goshs/v22.1.4GHSA-rjrw-mjq6-hpmm
Gogoshs.de/goshsno fix listedGO-2026-6132
Gogoshs.de/goshs/v22.1.4GHSA-rjrw-mjq6-hpmm
Gogoshs.de/goshs/v22.1.4GO-2026-6132

Affected products (as reported)

VendorProductVersions
goshs-labs goshs >= 2.1.3, < 2.1.4

Weakness: CWE-306 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References