Summary
The SeaweedFS SFTP server before version 4.46 accepts an empty password for accounts configured without one, such as public-key-only or certificate-only users. The issue has a CVSS 3.1 score of 9.1 (critical) and is fixed in version 4.46.
What happened
In SeaweedFS, the FileStore.ValidatePassword function of the SFTP server does not reject zero-length secrets before comparing them. As a result, an empty password matches any account configured without a password, for example users that rely only on a public key or only on a certificate. Because password authentication is enabled by default, a remote attacker who knows a valid username can log in without a key or secret and obtain an SFTP session with that user's home directory and path permissions. The associated weaknesses are CWE-287 and CWE-1284. The score is CVSS 3.1 9.1 (vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N), assigned by CNA:GitHub_M.
Why it matters
It allows authentication to be bypassed on the SFTP service over the network, without credentials or user interaction, with high confidentiality and integrity impact according to the published score. The access gained is limited to the affected user's home directory and path permissions. Based on the available information, CISA's KEV catalog does not list this vulnerability as actively exploited, and the source does not indicate that it is a zero-day.
Affected products and versions
seaweedfs (vendor: seaweedfs): versions prior to 4.46 (< 4.46).
| Product | Versions | Fixed in |
|---|---|---|
| seaweedfs seaweedfs | < 4.46 | — |
Action recommended by the source
The vendor states the issue is fixed in version 4.46. The vendor reference is the GitHub advisory GHSA-q9rj-8p2j-whg4 (https://github.com/seaweedfs/seaweedfs/security/advisories/GHSA-q9rj-8p2j-whg4) and the fix is in commit 3cdfe648eb14e20fa5383b52076b38af94dbbc8c. The source does not state any other mitigations.
Sources and references
- https://github.com/seaweedfs/seaweedfs/security/advisories/GHSA-q9rj-8p2j-whg4 — CVE Program
- https://github.com/seaweedfs/seaweedfs/commit/3cdfe648eb14e20fa5383b52076b38af94dbbc8c — CVE Program
Weaknesses (CWE): CWE-287, CWE-1284
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.