On November 5, Alpine Linux published a security advisory that does not allow for a relaxed read: in certain sshd configurations, anyone who can reach the SSH port can get in without knowing any password. According to Alpine, a single connection is enough, it works every time, and it needs no retries. There are fixed packages for every branch, from 3.16 to edge, but updating is not enough: you have to restart sshd, because the daemon that's already running is still the old one. If you have any Alpine box with SSH exposed, this comes before your coffee.
What exactly happens
According to the advisory, the attacker needs three things: the name of an account whose password field in /etc/shadow is * (normal for accounts that only log in with a key), at least one other account on the same machine with a $5$ or $6$ hash, and a very long password sent over, 257 to 1024 bytes. A single account with a password is enough to leave exposed all the ones that don't have one.
Alpine's explanation is almost poetic in how absurd it is. When sshd is compiled without PAM, it verifies the password by running it through crypt() and comparing the result with what's stored. If the account doesn't have a salted hash, sshd borrows the salt from another account. The problem: crypt() in musl, Alpine's C library, returns the string * as an error signal when the key goes over 256 bytes. And * is exactly what the field of any account without a password holds. The "hash" matches and the door opens.
The OpenSSH project released version 10.6p2 the same day with a change in sshd that avoids the flaw. In their notes they describe it as a "critical security workaround" for Linux systems with musl and PAM disabled, and they make clear that they consider the root cause to be outside sshd, although it is exploited through it. At the time the advisory was published there was no CVE; it was reported by Özgün Kültekin, of Wakefield.

Who is affected
Alpine says you are vulnerable if all of this is true:
- You use the
openssh-serverpackage, which ships without PAM, oropenssh-server-pamwithUsePAM no. PasswordAuthenticationis set toyes, which is OpenSSH's default value.- There is an account with
*as its password:root(which comes that way in the base image since roughly 3.16), users created withadduserwithout a password, directory users via musl-nscd, or thealpineuser of the tiny-cloud images. - At least one local account exists with a
$5$or$6$hash.
root is protected by the default PermitRootLogin prohibit-password, but that doesn't help if another exploitable account can become root with doas. That's exactly the case with the official tiny-cloud images (qcow2, VHD and AMI) from 3.18.11 to 3.24.3: they ship an alpine user with * and passwordless doas. They are safe at boot, but as soon as someone sets a console password for any user, they are open all the way to root.
Affected, according to Alpine: all the versions they checked, from 3.16 to 3.24 and edge. Not affected are containers that don't run sshd, systems with PasswordAuthentication no, openssh-server-pam with UsePAM yes, accounts locked with !, and images configured with cloud-init, which already writes PasswordAuthentication no.
What to do today
First, update and restart:
apk upgrade -U -a
rc-service sshd restart
Versions 3.21.10, 3.22.8, 3.23.8 and 3.24.4 already ship the fixed package, according to the release announcement. These are the openssh versions with the fix, by branch:
| Branch | Fixed openssh |
|---|---|
| edge | 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 |
| 3.20 to 3.16 | patches published although they no longer have regular support |
If you can't update right now, turn off password login: PasswordAuthentication no in the sshd configuration, validate with sshd -t and restart. Alpine asks you to check beforehand that your key works and not to close your current session until you've tested a fresh login. The advisory includes a ready-made script that backs up the original file; use it from the source.
To find out whether you've already had visitors, Alpine recommends searching /var/log/messages for sshd lines with Accepted password for on accounts that have no password (alpine, root or key-only users) and checking doas, users and recently authorized keys. If you can't rule out an intrusion, treat the machine as compromised.
My take
What's unsettling isn't that the bug exists, but how common the conditions are: OpenSSH's default value, a root without a password as it comes from the factory, and any ordinary user with a password. Many people felt safe because "it only takes keys," but all it took was having password login turned on, even if nobody used it.
The practical lesson works for any distro: if your servers only accept keys, tell sshd explicitly with PasswordAuthentication no. And watch out for something OpenSSH's own notes mention: they are getting lots of security reports, several found with the help of AI models, and they are going to put out releases more often instead of bundling up the fixes. It's worth having SSH updates on automatic or, at the very least, on your radar.