OpenSSH password authentication bypass affects musl-based Linux systems without PAM
An OpenSSH flaw (CVE-2026-123158), fixed in version 10.6p2, lets attackers bypass SSH authentication on certain Linux systems. Servers built on the musl C library, such as Alpine, with sshd compiled without PAM or with PAM disabled are exposed.
What to do now
- Product
- OpenSSH
- Affected versions
- OpenSSH versions before 10.6p2 (Linux systems using musl, built without PAM or with PAM disabled)
- Fixed in
- OpenSSH 10.6p2
- CVE
- CVE-2026-123158
France's CERT-FR issued an alert on 5 November 2026 about an OpenSSH vulnerability that allows a login to an SSH service without knowing the target account's password. An update on 6 November added the identifier CVE-2026-123158 and pointed to a security bulletin from Alpine Linux.
OpenSSH versions earlier than 10.6p2 are affected, but only in a specific setup: a Linux system using the musl standard C library, with sshd built without PAM support or with PAM disabled. On such a system, an attacker can get in by submitting two passwords, the second being longer than 256 characters and shorter than 1024. CERT-FR describes exploitation as trivial once those conditions are met.
OpenSSH 10.6p2 contains the fix, and CERT-FR refers administrators to the OpenSSH and Alpine bulletins for updates. It stresses that any patch installation or configuration change must be followed by a restart of the sshd service; otherwise the running daemon remains vulnerable.
Where patching is not possible, the recommended workaround is to disable password authentication, or failing that, to shut down the SSH service.
To look for signs of compromise, the researcher who found the flaw suggests reviewing logins to system accounts whose password is disabled, shown with an asterisk in /etc/shadow. An accepted password login for such an account should be treated as suspicious. CERT-FR provides a sample root command that lists these accounts from /etc/shadow and searches /var/log/messages for matching "Accepted password for" entries.
What to do now
- Identify SSH servers running on musl (Alpine in particular) where sshd is built without PAM or has PAM disabled.
- Upgrade OpenSSH to 10.6p2 or your distribution's fixed package, then restart the sshd service.
- If you cannot patch, disable password authentication (or the SSH service) and restart sshd.
- Search /var/log/messages for "Accepted password for" entries involving accounts with a disabled password ("*" in /etc/shadow).