On a Linux box where sshd was built against musl and runs without PAM, a password between 257 and 1024 bytes long logs in as any account whose password field is * — which on Alpine includes root. The bug is not in the SSH protocol and not in the key exchange; it is in what happens after the password arrives, and it needs one real password on the machine to work. If you run Alpine with password authentication left at its default, treat this as already exploited and patch today. Everything else on Linux is almost certainly unaffected, and this page shows you how to be sure.
CVE-2026-123158 at a glance.
| Component | OpenSSH sshd (portable), on Linux, built against musl libc and running with PAM disabled |
| Affected versions | every portable release before 10.6p2, in that configuration only |
| Fixed in | OpenSSH 10.6p2, released 5 November 2026; Alpine package updates the same day (table below) |
| Severity | CVSS 3.1 8.1 High (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, MITRE and NVD). Red Hat rates it 9.8 by scoring the attack complexity as low. CWE-394 |
| Exploited in the wild | Yes. Added to CISA’s Known Exploited Vulnerabilities catalogue on 9 November 2026; federal remediation due 12 November 2026. EPSS 0.90 (99.9th percentile) on 28 November 2026 |
| Who is exposed | Alpine Linux 3.21–3.24 and edge (and unsupported 3.16–3.20) with PasswordAuthentication yes; any other musl-based system running a non-PAM sshd. Not Debian, Ubuntu, RHEL and its rebuilds, Fedora, SUSE or Arch, whose sshd uses glibc and PAM |
| Published | CVE record 5 November 2026; this page built 29 November 2026, last updated 29 November 2026 |
What it is
When PAM is not in use, sshd checks a password the old way: it reads the account’s field from /etc/shadow, runs crypt() over the offered password with that field as the salt, and compares the result to the field. Two things meet badly in that path on musl. First, musl’s crypt() does not hash a key longer than 256 bytes; it returns the string * as its error indicator. Second, * is exactly what the shadow field contains for an account that has no password at all — root on Alpine since about 3.16, every user created with adduser for key-only access, anyone set with usermod -p '*'. The comparison sees * on both sides and reports a match.
There is one more step, and it is why the bug needs a second account. A field of * is too short to carry a salt, and in that case sshd borrows the salt from another account’s hash. So the machine needs at least one local account with a real $5$ or $6$ hash; once it has one, every passwordless account becomes reachable with any password of 257 to 1024 bytes. OpenSSH’s own position is that the root cause lies outside sshd, and the fix in 10.6p2 is a workaround: auth-passwd.c now refuses to accept a crypt() match against a stored field shorter than four characters, so * can never match anything. The change is thirty-four lines across auth-passwd.c, openbsd-compat/xcrypt.c and openbsd-compat/port-uw.c.
With UsePAM yes none of this code runs: PAM does the password check and sshd never calls crypt() itself. That is the whole reason the glibc distributions are untouched, and it is also why an Alpine host running the openssh-server-pam package with PAM left on is safe while one running plain openssh-server is not.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 29 November 2026; the link in the row is the tracker page, which will be newer than this one.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine edge | Affected | openssh 10.6_p2-r0 |
| Alpine 3.24 | Affected | 10.3_p1-r2 (point release 3.24.4) |
| Alpine 3.23 | Affected | 10.2_p1-r1 (3.23.8) |
| Alpine 3.22 | Affected | 10.0_p1-r11 (3.22.8) |
| Alpine 3.21 | Affected | 9.9_p2-r1 (3.21.10) |
| Alpine 3.16–3.20 (unsupported) | Affected | 9.0_p1-r6 · 9.1_p1-r7 · 9.3_p2-r4 · 9.6_p1-r3 · 9.7_p1-r6 respectively |
| Debian bookworm, trixie | Not affected in practice | source marked vulnerable, urgency unimportant; binaries use glibc and PAM; 1:10.6p2-1 in sid |
| Ubuntu 14.04 through 26.10 | Not affected | — (glibc, PAM); priority High only because of the KEV listing |
| RHEL, Rocky, Alma, CentOS Stream | Not affected | — (Red Hat statement: glibc, PAM) |
| Fedora, openSUSE/SLE, Arch | Not affected by construction | — (glibc and PAM builds; no tracker consulted, see the check below) |
Other musl systems (Void musl, Chimera, postmarketOS, OpenWrt with OpenSSH, containers built from Alpine images that run sshd) | Check | affected if sshd is pre-10.6p2 and runs without PAM |
How to check
Three questions, in order: is this sshd on musl without PAM, does it accept passwords, and is the account pattern present. The first command settles most machines in one line.
# 1. libc and PAM: a musl loader plus no libpam in sshd's dependencies is the vulnerable build
ls /lib/ld-musl-* 2>/dev/null && echo "musl" || echo "glibc"
ldd "$(command -v sshd)" | grep -i pam || echo "no PAM linked"
sshd -T 2>/dev/null | grep -iE '^(usepam|passwordauthentication) '
# 2. version: anything below 10.6p2 on a musl, non-PAM host is affected
sshd -V 2>&1 | head -1
apk version openssh-server 2>/dev/null # Alpine only
# 3. the account pattern: one real hash, plus any account with a bare '*'
awk -F: '$2 ~ /^\$(5|6)\$/ {print "real hash:", $1}' /etc/shadow
awk -F: '$2 == "*" {print "reachable:", $1}' /etc/shadowIf step 1 says glibc, or sshd -T says usepam yes, or passwordauthentication no, you are done: the vulnerable path does not exist on that host. If it says musl, no PAM and passwordauthentication yes, and step 3 prints at least one of each, the host is exploitable as it stands. Alpine cloud images are a special case in the right direction — cloud-init sets PasswordAuthentication no — but Alpine’s advisory notes that images from 3.18.11 through 3.24.3 still need per-instance action, so run the check rather than assume.
Because this one was exploited before most people had heard of it, also look back. A successful password login to an account that has no password is the signature; on Alpine the log is BusyBox syslog’s /var/log/messages.
grep -h 'Accepted password for' /var/log/messages* | awk '{print $9}' | sort | uniq -c
last -a | head -40An Accepted password for root line on a host where root has * in /etc/shadow is not a false positive. Treat that machine as compromised and rebuild it; Restoring a Linux Server is the page for that, and the account-by-account view of what a login actually consulted is in The Life of a Login.
How to fix it
Upgrade the package and restart the daemon; a running sshd keeps the old code until it is restarted, and existing sessions survive the restart.
# Alpine
apk upgrade -U -a
rc-service sshd restart
apk version openssh-server # should now show the fixed -rN above
# Any other musl system: install OpenSSH 10.6p2 or later, then restart sshdIf you cannot upgrade yet, turn off the only thing the bug needs. Key-based logins are unaffected, so this costs nothing on a properly set-up server; SSH Access for a Small Team is the page that gets a machine to that state.
# a drop-in wins over the main file as long as sshd_config has its Include line
grep -q '^Include /etc/ssh/sshd_config.d/' /etc/ssh/sshd_config || echo "no Include line: edit sshd_config directly"
printf 'PasswordAuthentication no\n' > /etc/ssh/sshd_config.d/00-no-passwords.conf
sshd -t && rc-service sshd restart
sshd -T | grep -i '^passwordauthentication' # must say noOn this build, and unlike the PAM case measured in the team-access guide, usermod -L does help: it prefixes the shadow field with !, which is no longer *, and a non-PAM sshd also runs its own locked-account check. But it has to be done for every account that carries a bare *, root included, and the next key-only user created with adduser reopens the hole. PasswordAuthentication no closes it once; a nologin shell closes nothing, because the bypass happens before the shell is consulted.
Sources
- CVE-2026-123158 at CVE.org — the record, the CVSS vector and the affected range (MITRE, published 5 November 2026)
- NVD entry — analysis status, CPE ranges for Alpine, and the KEV cross-reference
- CISA Known Exploited Vulnerabilities — added 9 November 2026, action due 12 November 2026
- OpenSSH 10.6p2 release notes and the fix commit — the project’s description of the workaround
- Alpine Linux security advisory, 5 November 2026 — the mechanism, the affected releases, the fixed package versions and the mitigation
- Distribution trackers: Debian · Ubuntu · Red Hat
- EPSS score for this CVE, 28 November 2026
Related reading
- The Life of an SSH Connection — the seven stages, and where in them password authentication sits
- The Life of a Login — what consults
/etc/shadow, what PAM does instead, and why the two paths differ - SSH Access for a Small Team — keys only,
AllowGroups, and the offboarding order that actually removes access - Alpine Linux — musl, BusyBox and OpenRC, and the places where Alpine behaves unlike the glibc distributions
- The Half of Patching That Happens After the Patch is Installed — why an upgraded package is not a fixed daemon until it restarts
- ssh — the command reference
This advisory page was assembled from the primary sources listed above on 29 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

