Skip to content
← All news
3 min read

sshole: OpenSSH on musl took a 257-byte password for accounts with none

OpenSSH 10.6p2 and an Alpine advisory, both dated November 5, close a login bypass in sshd built without PAM on musl libc. Only hosts with password login on, an account with no password and another account with a SHA-crypt hash were exposed.

Stored password field: *. Attempt: 300 bytes of A. On musl without PAM, that was enough for sshd to let it in.

On November 5, 2026, the OpenSSH project released Portable OpenSSH 10.6p2 with a fix for a password bypass in sshd on Linux systems that use musl libc with PAM disabled. Alpine Linux's advisory, from the same day, says an attacker who can reach the SSH port can log in to an account that has no password.

Both credit Özgün Kültekin of Wakefield. Kültekin calls the bug "sshole" on sshhole.com.

A password of 257 to 1024 bytes matched an account that has none

Alpine's advisory and musl maintainer Rich Felker, in an analysis on the musl list, describe the same path. Without PAM, sshd runs crypt() on the attempt and compares the result with the stored field. When that field is too short to hold a salt, sshd borrows another account's salt, so failed logins take the same time.

For SHA-256 and SHA-512 hashes, musl's crypt() returns * as an error token when the password is over 256 bytes. Accounts with no password also store *, so the strings match. Felker adds that the first account with a password, in /etc/passwd order, must use a $5$ or $6$ hash.

Exposure needs PAM off, password login on and an account with no password

Alpine lists four conditions, all required. sshd is openssh-server, built without PAM, or openssh-server-pam with UsePAM no. PasswordAuthentication is yes, the default. One account has * as its password field. Another local account has a $5$ or $6$ hash.

Alpine root ships as root:*, but the default PermitRootLogin prohibit-password blocks it. Alpine's tiny-cloud images from 3.18.11 through 3.24.3 ship an alpine user with * and passwordless doas. Alpine says they are safe on first boot and exposed once any $6$ hash exists, for example a console password.

Containers without sshd, locked accounts and cloud-init images, which write PasswordAuthentication no, are not affected, per Alpine. Felker writes that Dropbear is not affected. Kültekin's repository also names OpenWrt, Buildroot and Yocto, for OpenSSH builds there that meet the same conditions.

OpenSSH and musl each place the root cause outside their own code

The 10.6p2 notes say the team considers "the root cause of this bug to be outside sshd." Felker calls it "not a bug in musl just an erroneous use by the caller." The OpenSSH fix fails any login whose stored field is under 4 characters. Felker plans to propose that musl return *0 and *1 on failure, as libxcrypt does.

The fix is an upgrade and a restart

Alpine's fixed builds include openssh 10.6_p2-r0 on edge and 10.3_p1-r2 on 3.24, with packages back to 3.16. Alpine warns that the upgrade does not replace the running daemon, so restart sshd. The stopgap is PasswordAuthentication no, after you confirm key login works.

# 1. Is password login on? usepam prints only on PAM builds (run as root)
sshd -T | grep -Ei '^(passwordauthentication|usepam) '
# 2. Which server package? openssh-server is built without PAM
apk info -e openssh-server openssh-server-pam
# 3. Accounts with '*' and accounts with a $5$ or $6$ hash
awk -F: '$2=="*"{print "no password:", $1} $2~/^\$[56]\$/{print "sha-crypt:", $1}' /etc/shadow
# 4. Fix: upgrade, then restart the running daemon
apk upgrade -U -a
rc-service sshd restart
apk info -v openssh-server   # compare with the fixed version for your branch

What is not confirmed

Alpine says no CVE had been assigned. The 2016 start date is Kültekin's reading of commit logs; the oldest build tested was OpenSSH 7.5p1, from 2017. With no prevalence numbers published, the count of exposed hosts is unknown. No source above reports use in an attack. Alpine says to look for "Accepted password for" lines in /var/log/messages on accounts with no password.

Why a build studio cares

Our reading: exposure here depends on a host's accounts as much as its package version. A tiny-cloud instance is safe on first boot and exposed the day someone sets a console password. If an Alpine host runs sshd with PAM off and password login on, upgrade and restart it today, and rebuild any image that bakes in sshd. Hosts with PasswordAuthentication no, and containers without sshd, were never exposed and can take the next routine patch.

Next step: run the checks above on every Alpine host that runs sshd, then match your branch against the fixed-version table in Alpine's advisory. For an outside check, see our software audits.

SecurityOpen SourceInfrastructureLinuxOpenSSHAlpineLinuxmuslInfoSecCyberSecuritySSHSysAdminDevOpsOpenSourceLinux

Ready to know?

Send what you want checked or built. Fixed scope, price, and date in writing inside 24 hours, or the website or audit fee on your first project is refunded in full.

24 clock hours. Weekends included.
Book a call