OpenSSH SSHole Bug: Who Is Affected and What to Do
OpenSSH released 10.6p2 on November 5, 2026 to close a password authentication bypass nicknamed SSHole (CVE-2026-123158, CVSS 8.1). It is narrower than the headlines suggest: it hits sshd on Linux systems that use the musl C library with PAM disabled, which includes the default OpenSSH server setup on Alpine Linux. Debian and Ubuntu style systems are reported as not affected.
What the bug does
An unauthenticated attacker sends an oversized password, between 257 and 1,024 bytes, and gets logged in to an account that was deliberately set up with no usable password. Those accounts have a literal "*" in the password field, which is common for root and for key-only users. When the password hashing step fails on the long input, it returns "*", sshd compares that with the "*" stored for the account, and the comparison succeeds. THN traces the root cause to a 2016 patch for CVE-2016-6210.
The attacker gains the permissions of that account. It does not bypass accounts that have a real password hash.
Who is affected
Alpine's advisory lists every condition that has to be true at once:
- sshd runs without PAM (the standard
openssh-serverpackage, oropenssh-server-pamwithUsePAM no). PasswordAuthenticationisyes.- At least one account has
*in its password field, such as root, a key-only user, or thealpineuser on tiny-cloud images. - At least one other local account has a
$5$or$6$password hash.
Alpine says every release it checked is affected: 3.21 through 3.24 and edge, plus the unmaintained 3.16 to 3.20. SecurityWeek also names OpenWrt, Buildroot and Yocto as musl-based systems in scope, but I did not find advisories from those projects.
Not affected, per Alpine: openssh-server-pam with UsePAM yes, setups with PasswordAuthentication no, and accounts whose field is !. Help Net Security and SecurityWeek add that glibc distributions such as Debian, Ubuntu and Fedora are unaffected, along with Dropbear. I could not confirm this from Debian, Ubuntu or Red Hat advisories themselves.
If you only use Alpine as a container base image and never install openssh-server, this bug does not apply to you. Check VMs, routers, and embedded boxes first.
What to do
Update to OpenSSH 10.6p2 or your distribution's patched package, then restart sshd. On Alpine:
apk upgrade -U -a
rc-service sshd restart
Alpine stresses that upgrading the package does not replace the running daemon, so the restart is not optional. If you cannot update yet, set PasswordAuthentication no in your sshd configuration and restart sshd.
One thing to watch: Alpine's fixed package table lists 3.24 as 10.3_p1-r2 rather than a 10.6 build, while the text says 3.21.10, 3.22.8, 3.23.8 and 3.24.4 contain the fix. Compare your installed version against Alpine's table instead of assuming 10.6p2 is what you will get.
Has it been exploited?
Reports differ. Previdian, a threat intelligence firm, says it saw the first exploitation attempt less than nine hours after the CVE was published, gained root on an Alpine honeypot, and logged eight attempts from one IP address. That is one vendor's sensor, relayed by The Hacker News and Help Net Security. SecurityWeek, earlier on November 6, quoted Detectify saying it had seen no reports of exploitation yet, and quoted watchTowr expecting brute-forcers by the weekend. The bug is not listed in CISA's Known Exploited Vulnerabilities catalog as of Previdian's page. Treat exposed musl systems as a patch-today item either way, because the technique is public.
Check for a past login
Look for password logins on accounts that should never accept them. Alpine's advice is to search /var/log/messages for "Accepted password for" lines involving alpine, root, or any key-only user. Also review recently created users, new files and authorized keys. If you cannot rule out a login, treat the machine as compromised.
What is still unclear
- OpenSSH's release notes give no CVE ID and no affected version range, only the 10.6p2 fix. They do call it a security workaround for a root cause outside sshd.
- I could not read the NVD record itself, so the CVSS 8.1 score comes from press and Previdian.
- Sources disagree on the lower password length bound: 257 in press and Alpine, 256 in one CVE description.
Comments
Post a Comment