OpenSSH 10.6p2 closes "sshhole", a password bypass that only bites Alpine-shaped systems
On 5 November 2026 OpenSSH released 10.6p2, an emergency point release for a bug that has been in sshd for roughly a decade. If you run Alpine Linux — or any musl-based system where sshd checks passwords itself instead of handing them to PAM — and password authentication is enabled, upgrading is not optional.
The flaw is now tracked as CVE-2026-123158, with a CVSS 3.1 score of 8.1 from MITRE. OpenSSH's own advisory rates it critical. The researcher who found it, Özgün Kültekin of Wakefield, nicknamed it sshhole.
How it works
Unix password files mark accounts that cannot log in with a password by storing an asterisk in the password field — root:*, for example, which is how Alpine has shipped root since about 3.16. The intent is that no string can ever match. On a build without PAM, sshd performs the comparison itself, and a length-checking bug means that any password between 257 and 1024 bytes matches such an entry instead of failing.
Four conditions have to line up for a host to be exposed, and Alpine's advisory lists them plainly:
You are affected if all of these are true
- The system uses musl libc and
sshdis built without PAM, so it verifies passwords itself. PasswordAuthenticationisyes, which is the OpenSSH default.- An account exists whose password field is
*— typically root, or any service account created with-p '*'. - At least one other account has a real password. That single account is what makes the bypass reachable in the first place.
Root itself is usually protected by the default PermitRootLogin prohibit-password, so the practical exposure is service accounts that were deliberately locked out of password login. On a container image that ships a locked alpine user alongside one account with a password, an attacker who can reach port 22 gets a shell as that locked account — and from there, whatever the container's privileges allow.
The fix and the workaround
OpenSSH 10.6p2 refuses a match when the stored password value is shorter than four characters, which closes the path without changing the on-disk format. Alpine committed fixed packages within about two hours of the release and shipped them across every branch back to 3.16:
| Branch | Fixed openssh |
|---|---|
| edge | 10.6_p2-r0 |
| 3.24 | 3.24.4 release |
| 3.23 | 3.23.8 release |
| 3.22 | 3.22.8 release |
| 3.21 | 3.21.10 release |
apk upgrade -U -a apk info -v | grep openssh rc-service sshd restart
That last line is the one people skip. Upgrading the package replaces the binary on disk; the running daemon keeps the old code until it is restarted. Alpine's advisory is explicit about it: upgrading the package alone does not replace sshd.
If you must defer the update, set PasswordAuthentication no and move to keys. That removes one of the four conditions and is the correct configuration for most internet-facing hosts regardless.
Why this one matters beyond Alpine
Alpine is the base image behind a very large share of container builds, so the affected population is much wider than the number of Alpine servers. The good news is that most container images never run sshd at all, and most hosts that do use key-only authentication. The bad news is that the combination that is affected — an Alpine host with password logins on and a locked service account present — is common in exactly the places nobody audits: jump boxes, appliances, CI runners and long-lived virtual machines built from a template years ago.
The disclosure timeline is also worth noting. The researcher found the flaw by running roughly 17,600 unusual logins against sshd builds across glibc and musl, with and without PAM, using AI agents to drive the matrix. Vendor notification to public release took about a day. As with the kernel bugs disclosed the same week, the constraint is no longer whether someone will find the bug — it is how quickly the fix reaches a running daemon.
Is this being exploited in the wild?
No attacks had been reported as of the advisories, and CVE-2026-123158 is not in CISA's Known Exploited Vulnerabilities catalog. Public proof-of-concept code exists, which usually shortens the gap to exploitation considerably.
Does this affect Ubuntu, Debian or RHEL?
Those systems build sshd with PAM, so the vulnerable code path is not used and the bypass does not apply. Check your distribution's advisory rather than assuming, particularly on minimal or custom builds.
How do I know whether my host is exposed?
Check three things: whether the binary is linked against PAM, whether PasswordAuthentication is on, and whether any account has * in its password field. If all three are true on a musl system, treat the host as exposed until it is patched and restarted.