Advisories / who is affected and what to do

OpenBSD OpenSSH: attackers can log in without the right password on Linux with musl libc and no PAM

CVE-2026-123158

CriticalExploited in attacks Vulnerability disclosed Last updated

Summary

sshd in OpenSSH on Linux can accept any password between 256 and 1024 characters for some accounts. Versions before 10.6p2 are affected when musl libc is used without PAM, for example on Alpine Linux. Update to OpenSSH 10.6p2 or your distribution's fixed package, restart sshd, and check your logs for unexpected password logins.

Who is affected

  • OpenSSH before 10.6p2 on Linux is affected when musl libc is used without PAM. Alpine Linux is one example of such a platform.
  • The OpenSSH maintainers say these systems are not affected: non-Linux systems, Linux systems that use glibc, and Linux systems that use PAM for password authentication.
  • Alpine Linux says all its releases from 3.16 to 3.24 and edge are affected. This applies to the openssh-server package without PAM, and to openssh-server-pam with UsePAM no. openssh-server-pam with UsePAM yes is not affected.
  • Alpine Linux says an attack only works when password login is on (PasswordAuthentication yes, the default) and the system has an account whose password field in /etc/shadow is *. That includes key-only accounts and root. Accounts locked with ! are not affected.
  • Alpine Linux says its official tiny-cloud images from 3.18.11 through 3.24.3 ship an alpine user with a * password and passwordless doas.

How to check

  1. Find out whether your Linux systems running sshd use musl libc without PAM. Alpine Linux is one example of such a platform.
  2. Compare the installed OpenSSH version with the fixed version. Upstream this is 10.6p2. Distributions can ship the fix under a different version number. Alpine Linux lists these fixed openssh package versions: edge 10.6_p2-r0, 3.24 10.3_p1-r2, 3.23 10.2_p1-r1, 3.22 10.0_p1-r11, 3.21 9.9_p2-r1, 3.20 9.7_p1-r6, 3.19 9.6_p1-r3, 3.18 9.3_p2-r4, 3.17 9.1_p1-r7, 3.16 9.0_p1-r6.
  3. Check whether password login is on. Run sshd -T | grep -i passwordauthentication. The answer passwordauthentication no means password login is off.
  4. Look in /etc/shadow for accounts with * in the password field.
  5. Check for signs of misuse. Alpine Linux names these: sshd lines in /var/log/messages reading "Accepted password for" an account that has no password (such as root, alpine or a key-only user), unexpected doas use, newly created users, new files, or new authorized_keys entries.

What to do

  1. Update OpenSSH to 10.6p2, or to the fixed package of your distribution (see the list under "How to check"). Then restart sshd. Alpine Linux warns that upgrading the package alone does not replace the running daemon; on Alpine use rc-service sshd restart.
  2. If you cannot update right away, turn off password login: set PasswordAuthentication no and restart sshd. The OpenSSH maintainers advise this, or disabling SSH, for affected systems. Alpine Linux advises to keep an existing session open and test a new key login first.
  3. Check every affected system for signs of misuse (see step 5 under "How to check"). The fix has been available since 2026-11-05 and CISA added this vulnerability to its list of exploited vulnerabilities on 2026-11-09, so a system that was updated late may already have been accessed.
  4. If you cannot rule out a login, treat the system as compromised. This is the advice of Alpine Linux.

Severity

Critical. OpenSSH calls the fix in 10.6p2 a "critical security workaround". OpenSSH gives no score. The CVE record gives a CVSS 3.1 base score of 8.1 (HIGH), vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, assigned by MITRE.

What we verified

Nothing in our own lab. This advisory was compiled automatically from the sources below. "Exploited in attacks" rests on the CISA Known Exploited Vulnerabilities catalog, which added CVE-2026-123158 on 2026-11-09. We did not observe the attacks ourselves.

Update log

  • 2 December 2026: Severity changed from high to critical, following OpenSSH. Added the OpenSSH release notes, the workaround, the fixed Alpine Linux package versions, the restart of sshd, and the signs of misuse.
  • 28 November 2026, 12:41 UTC: Added to the website afterwards, compiled automatically.

Sources

You may quote this advisory if you name CyberScore and link to this page. How we establish facts: our sources and method.