Alpine Linux has patched an OpenSSH authentication flaw that lets an attacker log in to vulnerable servers over SSH. Alpine says the attack "works every time, and needs no retries," and the exploit requires only that the attacker can reach the server's SSH port.

Security engineer Gregory Bryant, in a LinkedIn post, attributed the flaw to a single character, "*," and tied it to CVE-2026-123158. The issue affects systems that run Alpine Linux or another musl-based distribution with the default openssh-server package, without PAM, and with PasswordAuthentication enabled. Per the report, an attacker can then log in to password-disabled or key-only accounts by sending a password between 257 and 1,024 bytes long.

According to the report, other musl-based systems may be affected, including Adélie Linux, Void Linux, Sabotage Linux, OpenWrt, an Android variant, and the Yocto Project. Wind River said it is "actively reviewing the reported vulnerability and assessing its potential impact." The report says glibc-based systems such as Debian, Ubuntu, and Fedora are not affected.

The report attributes the discovery to the group *sshole, which it says found that the side effect has been present since 2016. Alpine says every release it checked is affected, from 3.21 through 3.24, edge, and the older 3.16 to 3.20 branches. Alpine singled out its tiny-cloud images, versions 3.18.11 through 3.24.3, as especially vulnerable once a password hash exists on the machine.

Alpine released fixed versions 3.21.10, 3.22.8, 3.23.8, and 3.24.4 on Thursday, with fixed packages published back to 3.16. Alpine recommends running apk upgrade -U -a and then restarting sshd with rc-service sshd restart, because upgrading the package does not replace the running daemon. Administrators who cannot update should set PasswordAuthentication no and restart sshd, after confirming key login works. Alpine also advised searching /var/log/messages for "Accepted password for" entries naming accounts without passwords, and said that if a login cannot be ruled out, the machine should be treated as compromised.