OpenSSH flaw: no-password login on Alpine Linux.

An OpenSSH flaw on Alpine Linux and similar systems lets attackers log in with no password. It is being exploited. Update and restart sshd.

High Fix available All countries CVE-2026-123158
The issue

What's happening.

OpenSSH is the software most servers use for remote logins (SSH). On Linux systems built on musl libc without PAM, the best-known being Alpine Linux, a flaw lets someone log in to an account that has no password set by sending a very long password. Any password between 256 and 1024 characters works.

Alpine says it takes one connection, works every time and needs no password at all. It needs password logins to be turned on (the OpenSSH default) and at least one other account on the machine that has a password.

The OpenSSH team released 10.6p2 on 5 November 2026 and Alpine shipped fixed packages the same day. CISA added the flaw to its list of exploited vulnerabilities on 9 November 2026.

The impact

What it means for you.

Anyone who can reach the server's SSH port can get in as a user, and from there may be able to take over the machine. Small servers that were set up once and left alone are easy to forget about.

Only systems that use musl libc without PAM are affected. Alpine says systems that use PAM for SSH logins (UsePAM yes), and Docker containers that do not run an SSH server, are not affected.

The fix

How to fix it.

  1. Ask your IT provider or developer whether you run any Alpine Linux servers, or other servers built on musl libc, with SSH reachable from the internet.
  2. On Alpine, run apk upgrade -U -a, then restart SSH with rc-service sshd restart. Updating the package does not replace the copy of sshd that is already running.
  3. Check you have Alpine 3.21.10, 3.22.8, 3.23.8 or 3.24.4 or later, or the fixed openssh package for your branch in the table. Older Alpine branches (3.16 to 3.20) also have fixed packages.
  4. If you cannot update straight away, turn off password logins: set PasswordAuthentication no in the SSH settings and restart sshd. Make sure your SSH key login works first, and keep your current session open until you have tested a new one.
  5. If a server was exposed with password logins on, look for logins and accounts you do not recognise, and get help if you find any.
VersionSafe versionStatus
OpenSSH (portable)10.6p2 or laterFixed
Alpine 3.24openssh 10.3_p1-r2 or later (Alpine 3.24.4)Fixed
Alpine 3.23openssh 10.2_p1-r1 or later (Alpine 3.23.8)Fixed
Alpine 3.22openssh 10.0_p1-r11 or later (Alpine 3.22.8)Fixed
Alpine 3.21openssh 9.9_p2-r1 or later (Alpine 3.21.10)Fixed
Alpine 3.16 to 3.20Fixed openssh package for your branch (see Alpine's advisory)Fixed
Systems using PAM for SSH (UsePAM yes)Not affected (Alpine)Check