Nine-year OpenSSH bug on musl Linux: passwords over 256 chars unlock locked accounts

TheZachMueller · x · 2026-11-05

sshhole.com details an OpenSSH issue present since 2016 on musl-based systems (Alpine, OpenWrt, many Docker images): accounts that should never accept passwords (root, key-only deploy users, LDAP users) can log in with any password longer than 256 characters. The root cause traces through Unix history: Bill Joy's 1980 sentinel in /etc/passwd, the 1997 spec saying crypt() returns NULL on failure, programs that never check NULL, and musl's 2012 decision to return a single character instead—letting oversized passwords bypass authentication.

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

Original post →

More from Infra

Infra channel →