OpenSSH 10.6p2 Closes Alpine's Long-Password Login Flaw
On affected Alpine cloud images, a successful SSH login as the default alpine user could lead to root access through passwordless doas. That requires several conditions to line up, but it makes the flaw more than a quirk involving an unusually long password.
OpenSSH 10.6p2 fixes the issue. Alpine published its advisory on 5 November 2026, the same day the OpenSSH project released the update. The vulnerability, nicknamed *sshole by researcher Özgün Kültekin of Wakefield, affects OpenSSH on Alpine and other musl-based systems in specific configurations. The Alpine security advisory says an attacker who can reach an affected SSH service can authenticate without knowing the target account's password.
How the authentication check fails
In /etc/shadow, an asterisk marks an account with no valid password. This can include system accounts and users who log in only with SSH keys. Directory services can manage such accounts, too. Passwords themselves are stored as hashes rather than clear text.
When OpenSSH runs without PAM, it uses the C library's crypt() function to calculate a password hash and compare it with the stored field. On musl, SHA-512 hashing refuses inputs longer than 256 bytes and returns the one-character string *. For an account whose shadow field is also *, the comparison succeeds. Alpine specifies the triggering input as 257 to 1,024 bytes. The attempt can succeed on a single connection, without retries or brute force. Published tests found that arbitrary passwords in that range could trigger the match on the first attempt.
The issue requires all four conditions: Alpine's openssh-server package without PAM, or openssh-server-pam configured with UsePAM no; PasswordAuthentication enabled; an account with * in its password field; and another local account with a $5$ or $6$ hash. Alpine reports that the affected path is the non-PAM password-authentication check. Systems using PAM for that decision do not use this path.
The final condition helps explain why the path can go unnoticed. For a nonexistent user, sshd borrows a salt from another account, a defense added in 2016 to reduce timing-based user enumeration. Without a real hash to borrow, this faulty path does not trigger.
Where the risk applies
Alpine says PermitRootLogin prohibit-password prevents root password logins unless the configuration overrides that setting. Other key-only accounts still matter. Official Alpine cloud images from 3.18.11 to 3.24.3 also included a default alpine user with passwordless doas. If a $6$ hash exists on the system, a login as alpine can become root with a single command.
Debian and Ubuntu are not exposed in their default installations: they use glibc and build OpenSSH with PAM. The reported scope is not a general OpenSSH failure across operating systems. The affected configuration uses musl and does not use PAM for the relevant password check. OpenWrt uses musl but defaults to Dropbear, which is not affected; the risk applies there only if OpenSSH was installed. Buildroot and Yocto builds using OpenSSH without PAM are also in scope. A container that does not run sshd is not reachable through this flaw. In his technical account for Heise, OpenSSH developer Damien Miller urged administrators of affected systems to disable password-based login or disable SSH.
Linux software updates can carry less obvious access implications. An earlier launcher fix addressed a locked system keyring that could prevent Epic's Linux launcher from opening or sign users out.
Why the behavior went unnoticed
The musl behavior dates to August 2012. One change made crypt() return * instead of NULL on error, although POSIX calls for NULL; a later change that month imposed the 256-byte limit. The sshd salt-borrowing mechanism arrived in 2016. Discussions on the libc-alpha list and a Debian bug numbered 714219 examined crypt() failures in 2013, while a late-December 2024 musl-list thread revisited the length limit. The sshhole.com timeline says neither discussion connected the behavior to sshd.
Alpine has locked root with * since version 3.16 in 2022. It chose that marker because, without PAM, an exclamation mark also blocked key-based access. The change followed the CVE-2019-5021 case involving passwordless root accounts in Docker images.
The OpenSSH 10.6p2 release notes place the root cause outside sshd while acknowledging that sshd can avoid the failure. Alpine thanked OpenSSH contributors Damien Miller and Darren Tucker, along with maintainers Timo Teräs and Natanael Copa. No CVE had been assigned as of 5 November 2026. Alpine reported affected releases from 3.16 through 3.24 and edge, including older branches 3.16 through 3.20 as well as currently maintained lines.
Update and check Alpine systems
- Check the installed OpenSSH version, PAM setting, password authentication setting, and accounts marked with an asterisk.
- Run apk upgrade -U -a to install the fixed package, then restart the server with rc-service sshd restart. The running sshd keeps its old code until restarted; installing the package alone does not restart the daemon.
- If an update is not possible, set PasswordAuthentication no in a file under /etc/ssh/sshd_config.d/, supported by Alpine 3.19 and later. Test key-based access first and keep the current session open.
- Review /var/log/messages for Accepted password for entries involving accounts without a password, then check doas use, new users, and authorized keys. Treat the machine as compromised if unauthorized access cannot be ruled out.
apk info -v openssh
grep -i '^UsePAM' /etc/ssh/sshd_config
grep -i '^PasswordAuthentication' /etc/ssh/sshd_config
awk -F: '$2=="*"{print $1}' /etc/shadowThe first command reports the installed package version. For the configuration checks, no UsePAM line means PAM is not enabled for this check; password authentication defaults to enabled. The final command lists accounts whose shadow field is an asterisk. If patching must wait, Alpine's mitigation is to disable password authentication and restart sshd.
Alpine's advisory lists these fixed package versions:
Alpine branchFixed openssh packageedge | 10.6_p2-r0
3.24 | 10.3_p1-r2
3.23 | 10.2_p1-r1
3.22 | 10.0_p1-r11
3.21 | 9.9_p2-r1
The advisory also lists updated packages for unsupported branches 3.16 through 3.20. Point releases 3.21.10, 3.22.8, 3.23.8, and 3.24.4 include the fix. Docker images built before the fix remain vulnerable until rebuilt, so check images and test machines that run sshd.