CVE-2026-62325: Vulnerability in github.com/patrickhener/goshs/v2

Critical. 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.

Go, CWE-306

Exploitation
None confirmed
Severity
9.1 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-rjrw-mjq6-hpmm
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness
CWE-306
Published
28 Jul 2026
Last change
23 Oct 2026
Ecosystem
Go

Affected packages

Vulnerable version ranges and fixed releases

  • github.com/patrickhener/goshs/v2 Go, Affected version 2.1.3. Fixed in 2.1.4
  • goshs.de/goshs/v2 Go, Affected version 2.1.3. Fixed in 2.1.4

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes