IT news
“sshole”: a very long password logs you in to accounts that have no password
AI summary Check sources below for details.
A flaw in the way OpenSSH and the musl C library work together (CVE-2026-123158) lets anyone who can reach SSH log in to password-less accounts on Alpine Linux and similar systems. Fixed on 5 November, and attacks were seen within hours.
What happened
On 5 November 2026 the OpenSSH project released version 10.6p2, and Alpine Linux published a security advisory the same day. The flaw, found by Özgün Kültekin of Wakefield and nicknamed “sshole” (CVE-2026-123158), lets someone who can reach your SSH port log in as an account that has no password, without knowing anything. It takes one connection and works every time.
The cause is two old, individually reasonable decisions that fit together badly. Accounts that must never take a password (key-only users, root on Alpine, users from a directory service) have a single * in the password field. The musl C library, which Alpine is built on, answers * when it is asked to hash a password longer than 256 bytes. When sshd runs without PAM, it compares that answer with the stored field, sees two identical * and lets the login through.
Who is affected
All of these have to be true:
- The system uses musl and sshd runs without PAM. That is how Alpine’s default
openssh-serverpackage is built. - Password logins are enabled, which is the OpenSSH default.
- There is an account whose password field is
*, and at least one other account with a real password hash.
On Alpine’s official cloud images the default alpine user is such an account and may use doas without a password, so the attacker ends up as root. Alpine says every release from 3.16 to edge is affected. Systems built on glibc (Debian, Ubuntu, Fedora), setups that go through PAM, Dropbear and OpenBSD are not. The researcher also names OpenWrt, Buildroot, Yocto and many Docker images as musl-based places to check. Containers that do not run sshd are not exposed.
Is it being used?
Yes, according to one source. The security firm Previdian reports a first attempt less than nine hours after the CVE was published, and a successful root login on its Alpine honeypot, from a single address. CISA had not listed the flaw as exploited when the reports appeared. Proof-of-concept code is on GitHub, but Previdian warns that some of it is unverified and may contain malware.
What to do
- Update OpenSSH and restart sshd. Alpine has fixed packages for every release back to 3.16. Installing the package does not replace the running daemon, so the old one keeps accepting logins until it is restarted.
- If you cannot update yet, switch off password logins (
PasswordAuthentication no) and restart sshd. Test your key login first and keep the current session open. - Find your hidden musl devices: routers, appliances, containers with SSH inside. Anything running OpenWrt, Yocto or Buildroot is worth a look.
- Check the logs for “Accepted password for” entries naming an account that has no password. If you cannot rule out a login, treat the machine as compromised.