CVE-2026-40884

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

Configuration 1 (hide)

OR cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta4:*:*:*:go:*:*
cpe:2.3:a:goshs:goshs:2.0.0:beta5:*:*:*:go:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) goshs es un SimpleHTTPServer escrito en Go. Anteriormente a la versión 2.0.0-beta.6, goshs contiene una omisión de autenticación SFTP cuando se utiliza la sintaxis de autenticación básica de nombre de usuario vacío documentada. Si el servidor se inicia con -b ’:pass’ junto con -sftp, goshs acepta esa configuración pero no instala ningún gestor de contraseñas SFTP. Como resultado, un atacante de red no autenticado puede conectarse al servicio SFTP y acceder a archivos sin una contraseña. Esta vulnerabilidad se corrige en la versión 2.0.0-beta.6.

Information

Published : 2026-04-21 20:17

Updated : 2026-10-26 21:10


NVD link : CVE-2026-40884

Mitre link : CVE-2026-40884

CVE.ORG link : CVE-2026-40884


JSON object : View

Products Affected

goshs

  • goshs
CWE
CWE-306

Missing Authentication for Critical Function