An extremely long password is enough to log in to some Alpine servers, and OpenSSH plugs the hole with version 10.6p2
The cause lies in the way the musl C library reports an error, but the fix came in OpenSSH.
OpenSSH last Thursday released version 10.6p2 of its portable edition to fix a serious flaw on systems that use the musl C library without PAM, such as Alpine Linux. According to the notice on the oss-security mailing list, an attacker could log in to accounts without a valid password by entering a password longer than 257 characters. The vulnerability was assigned CVE-2026-123158 and a score of 8.1 out of 10, Field Effect and Tech Insider write.
The problem arises because musl's crypt() function returns an asterisk as an error code when a password is too long. Accounts without a password have exactly that asterisk in the password file, so sshd treats the two as a match. Field Effect names Alpine versions 3.16 through 3.24 and possibly builds based on Buildroot, Yocto or OpenWrt. Systems with glibc, with PAM or with Dropbear as the SSH server are not affected. The flaw was reported by Özgün Kültekin of Wakefield.
Anyone unable to update right away can disable password authentication in the sshd configuration. Tech Insider warns that Alpine cloud images include a default account that can gain administrator rights without a password, which can make the impact worse. No exploitation had been reported at the time of disclosure.