OpenSSH CVE-2026-123158: a long password bypasses login
On 5 November 2026, the OpenSSH project released version 10.6p2 with a fix it calls critical: on Linux systems that use the musl library and run sshd without PAM, an attacker can bypass password authentication. The flaw, nicknamed “*sshole” and tracked as CVE-2026-123158 (CVSS 8.1), is triggered by a very long password (roughly 257–1024 bytes) sent to an account that has no password set. Alpine Linux, whose default configuration is affected, published an advisory the same day.
It is not a memory flaw and it needs no sophisticated exploit: one connection, every time. It matters most in containers, cloud images and embedded devices built on Alpine or other musl distributions, where accounts without a password (root, key-only users) are normal. It is not in KEV, but one firm reports exploitation attempts within hours of the CVE’s publication. Below: what is confirmed, who is not affected and what to check.
What is confirmed
The OpenSSH 10.6p2 release notes (5 November) say the release contains a critical security workaround for Linux systems with musl libc and PAM disabled: sshd avoids a password authentication bypass that is exploitable through sshd on some Linux systems built and run without PAM support. The project considers the root cause to be outside sshd but says it can be avoided in sshd. The flaw was reported by Özgün Kültekin of Wakefield. The notes also say the OpenSSH team has received many security reports, some found with the help of AI models, and will, for now, make more frequent releases rather than batching them.
The CVE-2026-123158 record (published 5 November, assigned by MITRE) describes it as follows: sshd in OpenSSH before 10.6p2, on Linux with musl and without PAM, lacks a workaround for a password authentication bypass, related to misinterpreting whether a string is meant to be a password hash; for some account configurations, any password between 256 and 1024 characters succeeds. The score is CVSS 3.1 of 8.1 (AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:H), CWE-394. Alpine and sshhole.com give the range as 257–1024 bytes; the difference from “256” in the record is one of wording, and the practical threshold is “more than 256”.
The mechanism, per oss-security, Alpine and sshhole.com: for an account whose password field is “*” (no password set), a password longer than 256 bytes makes musl’s crypt() return “*”, and sshd compares that value with the “*” in the account field and accepts the login. The code fix checks a minimum hash length instead of relying on the “*” that musl’s crypt() returns by default. Alpine adds a condition: the machine must have at least one other account with a $5$ or $6$ password hash; a single user with a password makes every passwordless account reachable.
Who is affected
Alpine says you are affected if all of the conditions below are true. sshhole.com adds that on Alpine’s official AWS and Azure images the default “alpine” account has passwordless doas, so access to it means root.
- ▸You run Alpine’s openssh-server package (built without PAM) or openssh-server-pam with UsePAM no.
- ▸PasswordAuthentication is yes, the default.
- ▸An account with the password field “*” exists: root (shipped as root:* since about Alpine 3.16, protected by PermitRootLogin prohibit-password, but not protected if another account can become root, for example through doas), any key-only user created without a password, users from a directory service through musl-nscd, or the “alpine” user in tiny-cloud images.
- ▸At least one local account has a $5$ or $6$ password hash.
Who is not affected
Per Alpine: Docker and other containers that do not run sshd; systems with PasswordAuthentication no; openssh-server-pam with UsePAM yes; accounts locked with “!” in /etc/shadow; machines with no account that has a $-style hash; cloud images configured through cloud-init, which writes PasswordAuthentication no. Per sshhole.com and The Hacker News: glibc systems (Debian, Ubuntu, Fedora), systems that check passwords through PAM, Dropbear and OpenBSD are not affected.
Alpine checked every release from 3.21 to 3.24 and edge, plus 3.16–3.20, which no longer receive regular updates: all are affected. Other musl systems (sshhole.com mentions OpenWrt, Buildroot and Yocto as examples of musl distributions) are affected only if they run OpenSSH without PAM; check which sshd you use, because many embedded devices use Dropbear.
The official fix
The fix is OpenSSH 10.6p2 or your distribution’s patched package, followed by restarting sshd: Alpine warns that upgrading the package does not replace the running daemon. Alpine releases that contain the fix are 3.21.10, 3.22.8, 3.23.8 and 3.24.4; package versions are, by branch, 10.6_p2-r0 (edge), 10.3_p1-r2 (3.24), 10.2_p1-r1 (3.23), 10.0_p1-r11 (3.22), 9.9_p2-r1 (3.21), 9.7_p1-r6 (3.20), 9.6_p1-r3 (3.19), 9.3_p2-r4 (3.18), 9.1_p1-r7 (3.17) and 9.0_p1-r6 (3.16). If you cannot update right away, Alpine and the authors of sshhole.com recommend disabling password authentication (PasswordAuthentication no) and restarting sshd; either measure closes the flaw.
What is known about exploitation
The Hacker News (6 November) reports that the firm Previdian says it observed the first exploitation attempt less than nine hours after the CVE was published and confirmed root access on a honeypot running Alpine and OpenSSH; its data shows eight attempts from a single IP address, using oversized passwords followed by reconnaissance commands (id, uname, hostname) in non-interactive SSH sessions. This is one firm’s claim about a honeypot; we do not treat it as proof of real compromises. Neither Alpine nor OpenSSH says the flaw is exploited, and CVE-2026-123158 is not in the KEV feed (version 2026.11.06, downloaded on 9 November).
Safe Security, quoted by THN, notes that successful exploitation grants the compromised account’s existing permissions, so consequences depend on the account’s privileges: from access to deployment secrets to lateral movement.
What is not known
How many exposed systems exist is not known: we found no reliable figure for Alpine or musl servers with sshd reachable from the Internet. It is not known whether the attempts Previdian reports represent a wave or a single source. Alpine wrote, at publication, that no CVE had been assigned; the identifier appeared later in the MITRE record of 5 November. We tested nothing and did not analyse exploit code beyond the public descriptions.
What to do
- ▸Inventory where sshd runs on musl without PAM: Alpine servers and VMs, container images that include openssh-server, tiny-cloud cloud images, embedded devices with OpenSSH. Containers without sshd are not affected, so do not count them.
- ▸Update the openssh package to your branch’s fixed version or to OpenSSH 10.6p2, then restart sshd (rc-service sshd restart). Then check the value on the server with sshd -T | grep -i passwordauthentication.
- ▸If you cannot update now, set PasswordAuthentication no, after verifying that key login works and with your current session still open, and restart sshd.
- ▸Rebuild base images and container images that include sshd; updating the running machine does not fix the image in your registry.
- ▸Search /var/log/messages for “Accepted password for” lines for accounts that should not accept passwords (alpine, root or any key-only user). Review doas use, recently created users, files and authorized_keys. If you cannot rule out a login, Alpine says to treat the machine as compromised.
- ▸If you found a suspicious login, keep the logs before rebuilding and rotate the secrets that account could reach (our recommendation, because impact depends on the account’s privileges).
- ▸Long term, keep password SSH off on exposed servers and limit SSH to administration networks or a VPN (our recommendation; Alpine and sshhole.com recommend turning passwords off only as an emergency measure).
Close the alert with evidence
For each system, keep the operating system and the openssh package version before and after, confirmation that sshd was restarted, the PasswordAuthentication value, the list of accounts with “*” and of those with a hash, the result of the “Accepted password for” log search and the rebuilt images, plus the remaining exceptions, with a reason and a deadline. OpenSSH says it will release more often; a repeatable update process for sshd is worth more than a one-off fix.
How to monitor CVEs and get alerts for products in your inventory