OpenSSH Password Bypass Puts Alpine Linux Accounts at Risk
A password-disabled account can still accept an SSH login on some Linux systems, and the trigger is a password between 257 and 1,024 characters long. The flaw, called *SSHole and tracked as CVE-2026-123158, puts Alpine Linux installations in particular at risk because the distribution’s default OpenSSH setup meets the conditions for exploitation.
Ozgun Kultekin, a researcher at security testing firm Wakefield, found the bug, which has been present for about a decade. OpenSSH maintainers added a mitigation in the emergency OpenSSH 10.6p2 release on Thursday, while saying the underlying bug is not in OpenSSH code.
The attack’s simplicity is striking. “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. “On affected systems, the exploit is strikingly simple: send a password between 257 and 1,024 characters long.”
Why some systems accept the password
The issue depends on a chain of decisions made in musl, OpenSSH and Alpine over several years. In 2012, musl limited passwords to 256 bytes to prevent long inputs from consuming server resources during password hashing. When hashing fails, the library returns an asterisk.
That character has a specific meaning in Unix account records: since the 1980s, an asterisk in the password field has indicated that no password should authenticate the account. OpenSSH later changed its handling of accounts without a usable password salt, using another account’s salt to make username guessing through timed login attempts harder. In 2022, Alpine set root’s password field to an asterisk so SSH key logins would continue to work.
These choices collide when sshd processes an overlong password for a password-disabled account. The hashing operation fails and musl returns an asterisk; sshd then compares that result with the asterisk in the account record. They match, and authentication succeeds.
Exploitation requires a particular configuration: the system must use musl and OpenSSH, run OpenSSH without Pluggable Authentication Modules (PAM), permit password authentication and contain a known account with password login disabled. The attacker also needs a legitimate account with a real password on the system. Debian, Ubuntu and Fedora use glibc and aren’t affected by this specific flaw; some embedded distributions use Dropbear instead of OpenSSH.
Alpine cloud images need prompt attention
Alpine’s standard OpenSSH package lacks PAM, and password authentication is enabled by default. Official cloud images from versions 3.18.11 through 3.24.3 also include an account named “alpine” with password login disabled and passwordless doas privileges. An attacker who logs in as that user can then gain root access.
The exposure arises once an administrator sets a password for another account, creating the real-password account the attack requires. Alpine has released emergency updates for its openssh package. If updating isn’t possible, the project advises disabling password authentication in the OpenSSH configuration and using key-based logins.
This vulnerability is narrower in scope than the 2024 regreSSHion flaw, but it doesn’t require specialized exploit development. Knott said attackers already make constant password guesses against internet-facing SSH servers. “Exploiting this vulnerability simply means those same attackers add a very long password attempt to that brute-force list,” he said, adding that he expected brute-force tools to try it quickly.
Check for signs of access
Administrators should review exposed servers for evidence that the bypass has already been used. An “Accepted password” entry in /var/log/messages for an account that has no password, such as root, a key-only user or Alpine’s default user, is a strong warning sign.
Alpine advises checking doas activity, recently created users and files. Its advisory says to treat any server as compromised if administrators can’t rule out a successful login. Kultekin has also published a GitHub script that checks for exposed systems and identifies accounts at risk. For Alpine operators, patching and reviewing authentication logs should be immediate priorities.