Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-62325 EUVD-2026-50079GHSA-rjrw-mjq6-hpmmGO-2026-6132

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

Published Jul 28, 2026 · Updated Jul 29, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
goshs-labs goshs >= 2.1.3, < 2.1.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/patrickhener/goshs/v2 >= 2.1.3, < 2.1.4 2.1.4 GHSA-rjrw-mjq6-hpmm
Go goshs.de/goshs all versions — GO-2026-6132
Go goshs.de/goshs/v2 >= 2.1.3, < 2.1.4 2.1.4 GHSA-rjrw-mjq6-hpmm

Advisories 2

References