← News

Security newsLinuxOpenSSH

OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux

VulnPulse explainer

OpenSSH on musl, CVE-2026-123158: how a crypt() error marker opened key-only Alpine accounts

On Linux systems where sshd runs on musl libc without PAM, an attacker can use password login to enter passwordless accounts. OpenSSH rushed out 10.6p2 on 2026-11-05, and Previdian says one of its honeypots has since been rooted through the flaw.

Contents
  1. Who is affected
  2. In plain words
  3. How it works
  4. How the attack unfolds
  5. What to do
  6. Not yet known
  7. Corrections
  8. Sources

Who is affected

Anything running OpenSSH older than 10.6p2 on musl-based Linux without PAM. The main example is Alpine's openssh-server package; openssh-server-pam also counts if UsePAM is no. Alpine lists the conditions, all of which must hold: PasswordAuthentication is yes (the default), an account has * in its password field, and another local account has a $5$ or $6$ hash. Alpine 3.21 to 3.24, edge, and the out-of-support 3.16 to 3.20 are covered. OpenSSH rules out glibc Linux, non-Linux systems and Linux that authenticates through PAM. musl's maintainer rules out Dropbear. Alpine also rules out containers without sshd, locked accounts marked !, and images where cloud-init turned password login off.

In plain words

Imagine a door marked "not in use" that only opens with a key. The clerk who checks passphrases has a habit: when the check breaks, the clerk writes "not in use" on a slip. Comparing slip and door, they match, so the clerk waves you through. The failure mark and the do-not-enter mark were the same text.

How it works

Without PAM, sshd decides whether a password is right by running it through crypt() and comparing the output with the stored value. For an account with no password, that stored value is something short like *, with nothing usable as a salt, so sshd borrows another account's hash for the calculation. The point was to hide which accounts exist. But musl's crypt() hands back * as its error marker when it cannot process an input. That * equals the stored *, and the login goes through. Version 10.6p2 refuses a match against any stored value under four characters. The two projects place the blame differently: OpenSSH says the root cause sits outside it and calls its change a workaround, while musl's Rich Felker calls this caller misuse rather than a musl bug. Even so, Felker proposed a patch on 2026-11-06 that changes the failure marker. OpenSSH uses the word critical; MITRE's CVSS 3.1 score is 8.1 (High).

How the attack unfolds

  1. The attacker can reach the SSH port and knows the name of an account with no password
  2. sshd calls crypt() using another account's hash in place of that account's stored value
  3. crypt() fails and returns its error marker, *
  4. sshd compares that * with the stored * and treats it as a match, so the login succeeds
  5. If the account can use doas without a password, the attacker can go on to root

What to do

  • Alpine admins: run apk upgrade -U -a, then rc-service sshd restart. Upgrading alone leaves the old sshd running
  • Alpine admins: do not judge by version number. Stable branches got patched older versions: 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, 10.0_p1-r11 on 3.22, 9.9_p2-r1 on 3.21. Edge has 10.6_p2-r0, and 3.16 to 3.20 have fixed packages too
  • If you cannot update yet: confirm key login works, set PasswordAuthentication no, restart sshd, and keep your session open until a fresh login succeeds
  • Cloud teams: official tiny-cloud images from 3.18.11 to 3.24.3 have an alpine user with * and passwordless doas. They are fine at first boot but become reachable once any $6$ hash exists. Instances built before 3.21.10, 3.22.8, 3.23.8 and 3.24.4 need handling one by one
  • Operators of other musl systems: if sshd runs without PAM, move to 10.6p2 or your vendor's fix, and switch password login off until then
  • Anyone exposing SSH: search /var/log/messages for Accepted password lines on accounts with no password, and check doas use, new users, new files and authorized_keys. If a login cannot be ruled out, treat the machine as compromised

Not yet known

  • How many production servers have been hit. Previdian's founder told Help Net Security the first attempt came less than nine hours after the CVE went public and that attackers got root on a decoy built from genuine Alpine and OpenSSH. A honeypot is not a production server
  • Observed activity is growing. Previdian's public page showed 14 attempts from 9 IPs on 2026-11-07, up from the 8 attempts Help Net Security reported. VulnPulse has not seen Previdian's raw data
  • CISA added it to KEV on 2026-11-09, giving US federal agencies until 11-12 to act. The KEV entry gives no detail on the exploitation, and ransomware use is marked Unknown
  • How many machines are exposed (no reliable figure found)
  • Where other musl systems stand. The reporter and press mention OpenWrt and others, but we have not checked each vendor
  • When musl's changed failure marker will ship (on 2026-11-06 it was an RFC patch)

Corrections

  • Replaced "not in KEV" with its addition to KEV on November 9 (deadline November 12)

Sources

Written in our own words by VulnPulse from the original article and public sources. Check the sources for authoritative details. Updated:

Original notice (source text)

Attackers can log in to accounts that have no password, such as SSH key-only accounts, on some Alpine Linux servers running the standard openssh-server package. They need network access to the server, an account name, and a password between 257 and 1,024 bytes long. OpenSSH, which rates the flaw critical, released version 10.6p2 today to block it. Alpine has published fixed packages for every

Read on The Hacker News

Check whether your data has leaked

  • Have I Been Pwned: check for free whether your email address is in past breaches (the FBI also contributes leaked passwords)
  • Google Password Checkup: checks passwords saved in Google for leaks, reuse and weakness, and suggests changes

How to check, and what to do if your data leaked

On 11/06/2026, 01:42 AM, The Hacker News published "OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux" (type: Security news). Related technologies: Linux, OpenSSH.