CVE-2026-40884: Goshs Sftp Empty Username Auth Bypass

SFTP startup validation accepts an empty-username basic-auth string (e.g., "-b ':pass'"). Because the SFTP password handler is only attached when both username and password are non-empty, an empty username causes no SSH authentication handler to be installed, and the gliderlabs/ssh server then defaults to admitting all clients without credentials. Reject con

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-40884-goshs-sftp-empty-username-auth-bypass --engine opengrep

Description

SFTP startup validation accepts an empty-username basic-auth string (e.g., "-b ':pass'"). Because the SFTP password handler is only attached when both username and password are non-empty, an empty username causes no SSH authentication handler to be installed, and the gliderlabs/ssh server then defaults to admitting all clients without credentials. Reject con