The “*sshole” OpenSSH flaw can let attackers log into certain musl-based Linux accounts that block password authentication by submitting an oversized password; OpenSSH 10.6p2 fixes it.
The newly disclosed “*sshole” vulnerability affects OpenSSH servers running on Linux distributions that use the musl C library, including Alpine Linux, OpenWrt, Buildroot and Yocto, under certain authentication configurations. It does not bypass passwords on accounts with valid password hashes.
Security researcher Ozgun Kultekin says the flaw has existed since 2016 and is linked to OpenSSH’s handling of accounts without usable password hashes. When an oversized password exceeds musl’s 256-byte limit, crypt() can return “*”; OpenSSH may then compare that result with an account whose stored password field is also “*” and accept the login.
Kultekin warns that Alpine Linux’s official AWS and Azure cloud images include an affected default “alpine” account with passwordless doas privileges, which could allow an attacker to reach root access. Systems using glibc, including Debian, Ubuntu and Fedora, and systems using PAM authentication are not affected by this attack.
The vulnerability is fixed in OpenSSH 10.6p2. Alpine Linux administrators are advised to update OpenSSH packages with apk upgrade openssh; administrators who cannot install the update immediately can set PasswordAuthentication no and restart the SSH server. Logs should also be checked for password-based logins to accounts that should not permit them.