One long password, one connection, and you are logged in as an account that was never supposed to accept a password at all. That is the whole attack behind CVE-2026-123158, nicknamed SSHole, and the Alpine Linux team's own advisory says it "takes one connection, works every time, and needs no retries."
OpenSSH 10.6p2 shipped the fix on November 5. By the next day, threat intelligence firm Previdian told Help Net Security that its sensors had seen the first exploitation attempt less than nine hours after the CVE was published, and that it had confirmed root access on a honeypot running real Alpine Linux. If you run Alpine anywhere with sshd turned on, this is a today problem. If you run Debian or Ubuntu, you can close the tab with a clear conscience.
This post is a working checklist: who is really exposed, what to type, and how to read your logs afterwards. We haven't reproduced the bug ourselves. Everything here comes from the Alpine advisory, the OpenSSH release notes, the CVE record and the write-ups linked in the text.
Expand
Alpine Linux logo in blue on a white background
Image: GatoVerde95 via Wikimedia Commons, CC0
Why a long password gets you in
Without PAM, sshd checks a password by running it through the C library's crypt() function and comparing the result with the stored hash. Two old decisions collide here. In 2016, OpenSSH changed sshd so that when an account has no usable hash, it borrows the salt from another account and hashes the attempt anyway. That was a fix for username enumeration through timing (CVE-2016-6210). Separately, musl's crypt() returns the single character * when it fails, and its SHA-crypt code fails for any password over 256 bytes.
Accounts that must never accept a password, such as key-only deploy users or root on Alpine, have * in the password field of /etc/shadow. So the oversized attempt produces * as its "hash", the stored value is also *, they match, and sshd lets you in. The CVE record puts the window at passwords between 256 and 1024 characters.
Researcher Özgün Kültekin of Wakefield found it by building sshd in many combinations and throwing about 17,600 unusual login attempts at the builds. Only the musl build without PAM let in logins it should have refused. Per Help Net Security, the OpenSSH project's own wording is that the root cause sits outside sshd but is exploitable through it, which is why the fix landed in sshd.
Are you actually exposed?
Alpine lists the conditions, and every one of them has to be true. If any single line below is false for a host, that host is not exploitable this way.
- sshd runs on musl. Alpine's openssh-server package is built without PAM; openssh-server-pam is affected only when UsePAM is set to no.
- PasswordAuthentication is yes, which is the OpenSSH default unless someone changed it.
- The attacker knows the name of an account whose password field is *. That covers key-only users, users that come from a directory service through musl-nscd, and root.
- At least one other local account has a real $5$ or $6$ password hash. One user with a password is enough, and it makes every passwordless account reachable.
Root is a special case. It has shipped as root:* in the base image since about Alpine 3.16, but OpenSSH's default PermitRootLogin prohibit-password keeps it out of reach unless an admin changed that. The bigger worry is indirect: Alpine says the official tiny-cloud images from 3.18.11 through 3.24.3 ship an alpine user with a * password and passwordless doas. Those images are safe on first boot, then become exploitable as soon as any account gets a real password, for example when an admin sets a console password or user-data adds a user with a hashed password. The attacker gets a shell as alpine and uses doas to become root.
The table below turns those conditions into a quick triage by setup. It is built from the Alpine advisory and the researcher's write-up as reported by Help Net Security.
| Your setup | Exposed? | Reason given in the sources |
|---|---|---|
| Alpine host running openssh-server, password logins on, one account with a real hash | Yes | musl without PAM; the long-password trick works |
| Alpine openssh-server-pam with UsePAM yes | No | Passwords go through PAM |
| Alpine openssh-server-pam with UsePAM no | Yes | PAM is bypassed, so the same path is used |
| Debian, Ubuntu, Fedora, RHEL | No | They use glibc |
| Alpine container that does not run sshd | No | Nothing to attack |
| Host with PasswordAuthentication no | No | The password path is closed |
| OpenWrt with default Dropbear | No | Dropbear is not OpenSSH |
| OpenWrt, Buildroot or Yocto with OpenSSH on musl | Check | Named by the researcher as worth checking |
| Accounts locked with ! in /etc/shadow | No | They cannot log in by password or key |
The practical takeaway: your exposure is decided by a handful of lines in two files, so you can settle it in a few minutes per host instead of arguing about it.
Step 1: find the musl hosts that run sshd
Start with an inventory, because the awkward cases are not your main Alpine servers. Look for appliances built with Buildroot or Yocto, OpenWrt routers where someone installed OpenSSH in place of Dropbear, and any Alpine-based image that bundles sshd for CI, dev containers or Git hosting. The researcher's own list also mentions "a lot of the docker images you've pulled", so check images, not only running machines.
On each candidate, ask the system directly instead of trusting the config file:
- Check the effective settings with sshd -T | grep -Ei 'passwordauthentication|usepam'. Drop-in files and Match blocks can override the main file, so the output of sshd -T is the one to believe.
- List accounts with no password using awk -F: '$2=="*"{print $1}' /etc/shadow.
- List accounts with a real hash using awk -F: '$2 ~ /^$[56]$/{print $1}' /etc/shadow.
- If the first command shows password authentication on and PAM off, and both lists have entries, the host is exposed.
Expand
Sequence diagram of SSH password authentication between a client and server
Image: Unknown via Wikimedia Commons, CC BY 4.0
Step 2: patch, then restart
On Alpine the fix is one command, and the second one matters just as much: apk upgrade -U -a, then rc-service sshd restart. Alpine's advisory is blunt that upgrading the package does not replace the running daemon, so the old sshd keeps accepting connections until you restart it. SOCRadar, quoted by Help Net Security, makes the same reminder.
The fixed package versions are in the next table. They are from Alpine's advisory; the point releases that carry them are 3.21.10, 3.22.8, 3.23.8 and 3.24.4.
| Alpine branch | Fixed openssh package |
|---|---|
| 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 | 9.7_p1-r6 |
| 3.19 | 9.6_p1-r3 |
| 3.18 | 9.3_p2-r4 |
| 3.17 | 9.1_p1-r7 |
| 3.16 | 9.0_p1-r6 |
Note that Alpine 3.21 left regular support on November 1, yet it still got a fixed package, and so did every branch back to 3.16. If you build OpenSSH yourself, the upstream fix is 10.6p2. Rebuild any Alpine-based image that ships sshd, and redeploy cloud instances from a fixed point release or patch them in place. Images from earlier point releases do not include the fix.
Step 3: if you cannot patch today, close the password door
Turning off password authentication is Alpine's stated fallback, and OpenSSH developer Damien Miller urged affected users to do it "IMMEDIATELY" on Mastodon, according to Help Net Security. Before you start, confirm your key login works and keep one key-based session open until a fresh login succeeds.
Alpine's advisory gives the exact sequence. It creates a drop-in file at /etc/ssh/sshd_config.d/00-no-passwords.conf containing PasswordAuthentication no, runs a sed command that flips every PasswordAuthentication yes line in sshd_config (Match blocks included) and saves a .bak copy, then validates and restarts with sshd -t && rc-service sshd restart. Alpine's default config reads the drop-in directory from 3.19 onward; older releases ignore it, which is why the sed step is there. Afterwards, sshd -T | grep -i passwordauthentication should print passwordauthentication no. To undo, delete the drop-in file and copy the .bak file back.
One caveat: cloud images configured through cloud-init already write PasswordAuthentication no, which is why Alpine lists them among the safer cases.
Step 4: read the logs like someone was there
Exploit attempts use passwords of 257 to 1,024 bytes, but sshd does not log password contents. The signal is the successful login. On Alpine, search /var/log/messages for lines reading Accepted password for, then compare the account names with your list of * accounts. A hit on alpine, root or any key-only user is a red flag, because those accounts should never have taken a password.
On any hit, look at doas usage, newly created users, changed files and every ~/.ssh/authorized_keys. Alpine's advice is to treat the machine as compromised if you cannot rule out a login. That means rebuilding as well as patching.
Previdian reported eight attempts so far, all from one address in Japan and all caught by a single sensor, and it described the observed commands as reconnaissance: id, uname and hostname through non-interactive sessions. That is a small sample from one vendor's honeypot, so don't read it as the full scale of scanning. CISA had not listed the flaw in its Known Exploited Vulnerabilities catalog at the time of those reports, and proof-of-concept code has been posted publicly. Previdian cautions that the GitHub examples are unverified and could carry malware, so don't run them on anything you care about.
What I'd change after the patch
A bypass like this is a reminder that "locked by convention" is weaker than "locked on purpose". Accounts with * in the password field rely on every layer agreeing that * means no password. On a server that only ever needs key logins, PasswordAuthentication no is worth keeping permanently, well past the next advisory. Same for exposure: if sshd on a cloud box does not need to face the open internet, restrict it by firewall or a VPN first.
Also worth knowing is that no CVE had been assigned when Alpine published its advisory, and the CVE record only appeared the same day. Scanners may lag for a day or two, so check your own packages with apk version openssh against the table above instead of waiting for a dashboard to turn red.
Three loose ends
Does a Docker container running Alpine count? Only if it runs sshd. The usual case, an Alpine container with no sshd, is not affected.
Is root exposed? Not by default on Alpine, because PermitRootLogin prohibit-password blocks password logins for root. It becomes reachable if an admin changed that setting to yes, and indirectly through any other account that can escalate, such as the alpine user with doas.
What is the severity? The CVE record carries a CVSS 3.1 score of 8.1. Treat the number as a rough guide, since for a reachable host with the right conditions the attack is trivial.
Originally published on Mango Developer.

