OpenSSH SSHole Flaw Puts Some Alpine Linux Accounts at Risk
A password-disabled account can become an entry point to a Linux server through a remarkably simple OpenSSH attack: send an unusually long password. The flaw, named SSHole and tracked as CVE-2026-123158, affects some systems built with the musl C library, including Alpine Linux configurations used in cloud images and embedded systems.
OpenSSH maintainers added a mitigation in the emergency OpenSSH 10.6p2 update released Thursday. They say the underlying bug isn’t in OpenSSH itself. Security researcher Ozgun Kultekin of Wakefield discovered the issue, which has been present for about a decade.
“It’s not every day that the ‘exploit’ for a vulnerability in a technology as prevalent as OpenSSH is just ‘send a long password’ or ‘send a lot of A characters,’ but here we are,” said Jake Knott, head of threat intelligence at watchTowr. He described the attack as sending a password between 257 and 1,024 characters long.
When the password check turns into a login
The attack depends on a specific combination of library behavior and SSH configuration. Musl systems are affected; distributions such as Debian, Ubuntu and Fedora use glibc and aren’t in scope. The target must run OpenSSH rather than another SSH server such as Dropbear, have OpenSSH built without Pluggable Authentication Modules (PAM), allow password authentication, and contain a password-disabled account whose name the attacker knows.
The cause lies in three decisions made at different times. In 2012, musl limited passwords to 256 bytes to prevent long inputs from consuming server resources during password hashing. When hashing fails, musl returns an asterisk. Unix systems have long used an asterisk in the account database to indicate that no password should be accepted.
OpenSSH changed its handling of accounts without a usable password hash in 2016. To make username guessing through login timing harder, it borrows another account’s salt when checking those accounts. Alpine later set root’s password field to an asterisk so SSH key authentication would continue to work.
Put those behaviors together and an oversized password can make the hash operation fail. The resulting asterisk matches the asterisk stored for a password-disabled account, and the server accepts the login.
Alpine cloud images need immediate attention
Alpine’s standard OpenSSH package is built without PAM, and password logins are enabled by default. That combination puts the distribution’s official cloud images in scope. Images released between Alpine versions 3.18.11 and 3.24.3 include a default alpine account with password authentication disabled and passwordless doas privileges.
An attacker who logs in as that user can switch to root. The attack becomes possible once an administrator has set a password for another account on the machine: the system needs a legitimate password to provide the salt used in OpenSSH’s check.
The Alpine project has issued emergency updates for its OpenSSH package. If an update isn’t possible, Alpine advises disabling password authentication in the OpenSSH configuration and using key-based authentication.
This flaw is narrower in scope than the 2024 regreSSHion vulnerability, but it requires no specialized exploit development. Internet-facing SSH services already receive repeated password guesses, and Knott expects attackers to add long-password attempts to that traffic. He said watchTowr would be “extremely surprised” if SSH brute-forcers weren’t trying the technique by the weekend.
Check logs and review exposed hosts
Administrators should look for unexpected successful password logins in /var/log/messages. An “Accepted password” entry for an account that has no password, such as root, a key-only user or Alpine’s default user, is a strong indication that the server may have been compromised.
Alpine recommends reviewing doas activity, recently created users and files on exposed systems. Its advisory says to treat any server where an unauthorized login can’t be ruled out as compromised. Kultekin has also published a GitHub check script that identifies vulnerable servers and lists the accounts at risk. For Alpine operators, patching and checking authentication records should now be part of the same response.