OpenSSH on musl Linux accepts any password over 256 chars — root risk on Alpine

DanielLockyer · x · 2026-11-05

A security advisory: sshd on musl-based Linux (Alpine, OpenWrt, buildroot, yocto) without PAM accepts any password longer than 256 characters, unlocking accounts whose password field is just "" (key-only, LDAP users, root on Alpine). On Alpine's official AWS/Azure images the default alpine user matches, and it has passwordless doas — effectively root.

Fix: update to openssh 10.6p2 and/or disable PasswordAuthentication. glibc/PAM distros like Debian, Ubuntu and Fedora are unaffected.

Related event: OpenSSH flaw on musl-based Linux lets any 256+ character password unlock key-only accounts(7 posts)→

Original post →

More from Safety

Safety channel →