OpenSSH on musl Linux accepted any password over 256 chars since 2016

DanielLockyer · x · 2026-11-05

Daniel Lockyer disclosed that OpenSSH on musl-based Linux (Alpine, OpenWrt, Buildroot, Yocto, and many common Docker images) has had a bug since 2016: accounts that should never take a password at all — root, key-only deploy users, LDAP users, default users on Alpine's AWS/Azure images — accept any password longer than 256 characters.

Fixes: upgrade to OpenSSH 10.6p2 and/or disable PasswordAuthentication.

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 →