Decade-Old Flaw Lets Attackers SSH Into Alpine Linux Free

A decade-old authentication flaw lets attackers log into some Linux devices over SSH with no password at all.

A decade-old authentication flaw lets attackers log into some Linux devices over SSH with no password at all. The bug lives in how OpenSSH interacts with musl, the lightweight libc alternative that Alpine Linux uses instead of the glibc found on most other distributions. Alpine is a widely used, minimal Linux distribution, and the issue surfaces specifically when OpenSSH running on musl skips PAM, the pluggable authentication module framework that normally handles login and account checks.

Two shadow-file conditions attackers need to line up

Exploitation needs more than the musl-without-PAM setup. The target system must have at least one account whose password is hashed with SHA256 or SHA512. It also needs a separate account marked passwordless, meaning its entry in /etc/shadow, the file that stores Linux password hashes, contains an asterisk instead of a hash. Administrators commonly configure accounts this way when they rely on certificate-based authentication rather than passwords, so the setting itself is not unusual or rare. Alpine is the distribution Ars Technica confirms is affected, but the report notes other platforms could carry the same exposure if they combine OpenSSH, musl, and a no-PAM configuration.

Teams running Alpine, especially in containerized or embedded environments where it's a popular base image, should check whether OpenSSH on their systems is built against musl without PAM. Audit every /etc/shadow entry for asterisk-marked accounts and confirm none of them sit on a host that also has a SHA256 or SHA512 hashed password account. Anyone maintaining a custom or stripped-down Linux build with a similar libc and SSH combination should run the same check rather than assume the exposure is Alpine-specific.

Read the source →