Skip to main content
Security

OpenSSH "sshole" bug: login without a password on Alpine Linux

A bug in OpenSSH on musl-based Linux (like Alpine) can let someone log in to accounts that have no password. Attacks started within hours.

Written by

Alin Geevarghese Anil

Published on

November 9, 2026

opensshalpine-linuxvulnerabilitylinux

If you run Alpine Linux, or Docker images built on it, update OpenSSH today.

What happened

On November 5, 2026, a bug called CVE-2026-123158 (nickname "sshole") was made public. It was found by Özgün Kültekin. The fix is OpenSSH 10.6p2, and Alpine shipped patched packages the same day.

Here is the simple version. Accounts with no password are marked with a "*" in the password file. On systems that use the musl C library, a very long password (over 256 bytes) makes the check return "*" too. OpenSSH sees a match and lets the login through.

Why I care

A security firm called Previdian says attackers tried it less than nine hours after it went public, and that it got root on a honeypot running Alpine. It only counted eight attempts from one IP address, so I would not read that as a huge wave. CISA had not listed it as exploited when I checked. Proof-of-concept code is on GitHub, but Previdian says it is unverified and may contain malware, so don't run it.

Alpine is everywhere in Docker. Other musl systems like OpenWrt, Buildroot and Yocto may be hit too. Debian, Ubuntu, Fedora, PAM setups, Dropbear and OpenBSD are reported as not affected. It needs password login on (the default) plus a passwordless account on a machine that also has an account with a password.

What to do

  1. Update openssh. Alpine's fixed versions are listed in their advisory.
  2. Restart sshd. Updating the package does not restart the running service.
  3. Can't update yet? Set PasswordAuthentication to no and restart sshd. Test key login first and keep one session open.
  4. Search your logs for "Accepted password for" on passwordless accounts. If you can't rule out a break-in, assume the machine is compromised.

Sources