This guide covers a Long Password Opens Locked SSH Accounts.

An account with no password is supposed to be an account a password cannot open. On Alpine Linux and other musl-based systems running OpenSSH, that assumption just broke: send a password that is too long — between 257 and 1,024 bytes — and you can log in to an account that has no password at all. OpenSSH shipped an emergency fix, version 10.6p2, on November 5. The flaw, nicknamed “sshhole” and tracked as CVE-2026-123158, is rated critical by OpenSSH itself; the CVE record, assigned the same day, carries a secondary CVSS 3.1 score of 8.1 (High). No attacks using the flaw have been reported, and it is not in CISA’s Known Exploited Vulnerabilities catalog — which makes this the window to patch in, not a reason to wait.
What happened
The bypass lives in a specific, common shape of system: Linux built on the musl C library, where sshd checks passwords itself instead of through PAM. Alpine Linux’s standard openssh-server package is exactly that shape — built without PAM, with password logins on by default.
On an exposed server, an attacker who can reach the SSH port and knows an account name can log in to an account that has no password — a key-only user, a directory-service user, root as shipped in Alpine’s base image since about version 3.16, or the alpine user on Alpine’s tiny-cloud images — by sending any password between 257 and 1,024 bytes long. Alpine’s advisory, as quoted by The Hacker News, states the attack succeeds on every try with a single connection.
The mechanism, in plain terms: a no-password account stores a single * as its password field. To check an attempt, sshd borrows a real account’s salt to hash it — a 2016 change that fixed the CVE-2016-6210 username-enumeration flaw. But musl’s crypt() refuses passwords over 256 bytes for the $5$/$6$ hash types and returns * as its error value. That * matches the stored *, so sshd accepts the login. Researcher Özgün Kültekin of Wakefield, who documented the flaw at sshhole.com, says the problem has existed since 2016.
Exposure needs all four conditions at once: a musl sshd without PAM (or UsePAM no), PasswordAuthentication yes (the default), an account with * as its password field, and at least one other local account holding a $5$ or $6$ hash. One such account exposes every no-password account on the box.
Not affected: non-Linux systems; glibc systems (Debian, Ubuntu, RHEL and derivatives in their normal builds); anything checking passwords through PAM; Dropbear; containers that do not run sshd; systems with PasswordAuthentication no; and accounts locked with !. Root is also shielded by the default PermitRootLogin prohibit-password unless PermitRootLogin yes is set — but that does not help where an exposed account can become root: the tiny-cloud images from 3.18.11 through 3.24.3 give the alpine user passwordless doas, and they become open to attack once any $6$ hash exists on the machine, for example after an admin sets a console password.
The flaw is not limited to Alpine. Kültekin’s write-up also names OpenWrt, Buildroot and Yocto as musl-based systems to check — on OpenWrt it matters only where an admin installed the OpenSSH server; Dropbear, OpenWrt’s default, is not affected.

Who is affected
Anyone running sshd on Alpine Linux — every release from 3.16 onward is listed as affected in its default openssh-server configuration — or on another musl-based system with OpenSSH installed. That covers a large share of container base images, small VPS builds, appliances and embedded systems. The public write-up and the reproduction labs referenced in the CVE record mean the method is effectively public: it needs no exploit code at all, just one over-long password.
The protective move
- Update now, then restart sshd. On Alpine:
apk upgrade -U -afollowed byrc-service sshd restart. Upgrading the package alone does not replace the running daemon. Alpine point releases 3.21.10, 3.22.8, 3.23.8 and 3.24.4 already include the fixed package, and fixed packages were published for every branch back to 3.16. Anyone building OpenSSH themselves needs 10.6p2. Note: the patched Alpine package may still show an older OpenSSH version number — check the package revision, not the banner. - If you cannot update immediately, do what OpenSSH’s Damien Miller told operators to do “IMMEDIATELY”: set
PasswordAuthentication no, or disable SSH. First confirm your key login works, and keep your current session open until a new login succeeds. - Hunt before you trust the box. Alpine’s advisory suggests checking
/var/log/messagesfor sshd lines readingAccepted password foran account that has no password (such asalpine,rootor a key-only user), and reviewingdoasuse, recently created users, files and authorized keys. In the advisory’s words: “If you cannot rule out a login, treat the machine as compromised.” - Check your shape before spending the night on it. glibc and PAM systems need no emergency action for this flaw.
The bottom line
A nine-year-old interaction between a username-enumeration fix and musl’s error handling turned “this account has no password” into “any long password works.” The fix is out, the method is public, and no exploitation has been reported yet. Patch to OpenSSH 10.6p2 or the fixed Alpine packages, restart sshd, and check the logs — in that order, today.
By Karl Amber
Sources
- The Hacker News, “OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux,” November 5, 2026 — https://thehackernews.com/ (reporting OpenSSH 10.6p2’s release notes, Alpine Linux’s security advisory, and Özgün Kültekin’s technical write-up at sshhole.com)
- BleepingComputer, “OpenSSH flaw lets attackers log into password-disabled Linux accounts,” November 5, 2026 — https://www.bleepingcomputer.com/
That is the complete picture on a Long Password Opens Locked SSH Accounts.
Featured image: Raoul Berthelé, Public domain, via Wikimedia Commons
