CVE-2026-123158: Password authentication on musl libc without PAM (crypt() error value vs. "*" shadow field)
musl crypt() returns "*" for passwords longer than 256 bytes, which matches the "*" shadow marker for accounts with no password. sshd without PAM compares the two and accepts the login, so any 257–1,024-byte password opens key-only accounts (root on Alpine, the alpine cloud-image user) when another account has a $5$/$6$ hash. Check Point reported exploitation, including root on an Alpine honeypot.
Executive Summary & Technical Impact
musl crypt() returns "*" for passwords longer than 256 bytes, which matches the "*" shadow marker for accounts with no password. sshd without PAM compares the two and accepts the login, so any 257–1,024-byte password opens key-only accounts (root on Alpine, the alpine cloud-image user) when another account has a $5$/$6$ hash. Check Point reported exploitation, including root on an Alpine honeypot.
Tracked under CVE-2026-123158 (CWE-287 (Improper Authentication)), this vulnerability affects OpenSSH sshd before 10.6p2 on Linux built with musl libc and PAM disabled (Alpine 3.16–3.24 and edge by default; OpenWrt, Buildroot, Yocto builds) and carries a severity score of 8.1 (HIGH). Engineering and security operations teams running OpenSSH sshd (portable) should prioritize upgrading to OpenSSH 10.6p2; Alpine openssh 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), 9.0_p1-r6 (3.16).
Remediation & Patch Guidance
- Upgrade to OpenSSH 10.6p2 or the fixed Alpine openssh package for your branch, then restart sshd.
- If you cannot patch, set PasswordAuthentication no (or UsePAM yes where sshd is built with PAM) and restart sshd.
- Rebuild Alpine-based container images and appliances that run sshd; audit auth logs for password logins to key-only or root accounts.
Frequently Asked Questions (CVE-2026-123158)
What versions are affected by CVE-2026-123158?
CVE-2026-123158 affects OpenSSH sshd before 10.6p2 on Linux built with musl libc and PAM disabled (Alpine 3.16–3.24 and edge by default; OpenWrt, Buildroot, Yocto builds) in OpenSSH sshd (portable) (Password authentication on musl libc without PAM (crypt() error value vs. "*" shadow field)).
How do I patch or remediate CVE-2026-123158?
Upgrade affected deployments to OpenSSH 10.6p2; Alpine openssh 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), 9.0_p1-r6 (3.16) and verify the remediation steps listed above.
What is the CVSS score of CVE-2026-123158?
CVE-2026-123158 is rated HIGH with a CVSS score of 8.1 (vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H; one SSH login with a 257–1,024-byte password to an account whose shadow field is "*").
SSHole (CVE-2026-123158): Long Passwords Log Into Passwordless Accounts on Alpine and Other musl Systems, and Attacks Have Started
OpenSSH 10.6p2 fixes a password-auth bypass on Linux systems built with musl libc and no PAM. Check Point now reports exploitation, including root on an Alpine honeypot.
Read full engineering post-mortem (5 min read) →