OpenSSH Flaw: Long Passwords Bypass Auth on Alpine Linux
Original source
OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux
The Hacker News →A critical authentication bypass in OpenSSH affects Alpine Linux systems running openssh-server without PAM support. Attackers can log into accounts with no password—such as SSH key-only accounts—by sending a specially crafted password between 257 and 1,024 bytes long. The attack succeeds only when password authentication is enabled (the default), at least one other account holds a password hash, and the server lacks PAM integration.
The vulnerability traces to how OpenSSH interacts with musl, Alpine’s C library. When musl’s crypt() function rejects passwords exceeding 256 bytes, it returns an asterisk to signal failure. Accounts with no password store just an asterisk, so the error response matches the stored value and authentication succeeds. The flaw has existed since 2016. OpenSSH released version 10.6p2 to patch it, and Alpine published fixed packages for all supported releases. Users can immediately mitigate by updating or setting PasswordAuthentication=no.
OpenSSH chose rapid disclosure over a traditional embargo, with developers openly stating that long disclosure periods now help attackers more than defenders. They cited recent instances of AI systems independently rediscovering identical vulnerabilities within hours, signaling a shift in vulnerability management strategy.
Read the full article
Continue reading at The Hacker News →This is an AI-generated summary. Read the original for the full story.