New OpenSSH vuln on musl systems lets locked accounts log in with any long password

evilsocket · x · 2026-11-05

A disclosed vulnerability dubbed sshole affects OpenSSH on musl-based systems (Alpine, OpenWrt, buildroot, yocto, many Docker images) since 2016: accounts that should never accept a password (root, key-only deploy users, LDAP users, etc.) can log in with any password longer than 256 characters.

The author traces the history from Bill Joy's lock in 1980 /etc/passwd, through sshd's crypt() password check, to musl's 2012 change where crypt() returns a single character instead of NULL on failure — which programs blindly compare against the stored field.

Urgent advice: if you run sshd with password auth on a musl box, update immediately or disable password auth.

Related event: sshhole: musl OpenSSH flaw lets any 256+ char password log into locked accounts since 2016(5 posts)→

Original post →

More from Safety

Safety channel →