All vulnerabilities

Servers and applications

GHSA-q9rj-8p2j-whg4

SFTP accepts an empty password for any user configured without a password (public-key-only users)

Severity
Critical 9.1
Published
23 Sept 2026
Last changed
23 Sept 2026
Added to UpHeron
22 Oct 2026
Weakness
Improper authentication (CWE-287)CWE-1284
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

The SeaweedFS SFTP server accepts an empty password as valid for any user whose stored password is empty — i.e. every user provisioned for public-key (or certificate) authentication only. Because password is in the default -sftp.authMethods list ("password,publickey"), a remote attacker who knows only a valid username can authenticate with a zero-length password and obtains a full SFTP session with that user's permissions and home-directory scope. No knowledge of any key or secret is required.

CWE: CWE-287 Improper Authentication (contributing: CWE-1284 improper validation of the length of the compared secret). Proposed CVSS 3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N = 9.1 Critical. Affected: <= 4.45 (github.com/seaweedfs/seaweedfs, Go). weed sftp, weed server -sftp, weed filer -sftp.

weed/sftpd/user/filestore.go:

subtle.ConstantTimeCompare returns 1 when both slices have equal length and content. For a public-key-only user user.Password == "", so when the client sends an empty…

From seaweedfs/seaweedfs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SeaweedFSServers and applications · github:seaweedfs/seaweedfs
  • Every version up to 4.45

About SeaweedFS

Fast distributed storage system for blobs, objects, files, and data lake, for billions of files. Blob store has O(1) disk seek, cloud tiering

From Wikidata, CC0 1.0.
Docker Hub pulls
42,221,853Docker Hub, 15 Nov 2026
GitHub stars
36,070GitHub, 15 Nov 2026
Forks
3,114GitHub, 15 Nov 2026
Latest release
4.53GitHub, 15 Nov 2026
Released
8 Nov 2026GitHub
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First released
21 Apr 2015Wikidata
First published on GitHub
14 Jul 2014GitHub

References