SSHOle Vulnerability Allows SSH Authentication Bypass on Alpine Linux
A critical flaw in OpenSSH, dubbed SSHole (CVE-2026-123158), enables attackers to bypass SSH authentication on specific Alpine Linux systems without valid credentials.

A significant vulnerability, identified as CVE-2026-123158 and nicknamed SSHole, has been discovered in OpenSSH, allowing remote attackers to bypass SSH authentication on certain Alpine Linux installations. This bypass is possible without requiring a valid password or an SSH key, posing a serious risk to unpatched systems.
The vulnerability specifically affects Alpine Linux servers that are configured to use the musl C library, operate without Pluggable Authentication Modules (PAM), and have SSH password logins enabled. In these specific configurations, a specially crafted, 257-byte password input can trick the SSH server into accepting a login for an account that is not supposed to have a usable password.
Researchers demonstrated that on affected systems, the musl C library's crypt() function can return an error marker instead of a proper password hash. This error marker, when processed by an unpatched OpenSSH build, can be misinterpreted as a valid login for an account with no password set. The system incorrectly treats this as a successful authentication, granting unauthorized access.
OpenSSH addressed the issue in version 10.6p2, released on November 5, 2026. Alpine Linux quickly followed suit, shipping patched packages on the same day. The fix involves rejecting stored password values that are too short to be valid hashes and altering how OpenSSH handles account data to prevent overwriting critical values during checks.
While a default Alpine Linux installation is not inherently vulnerable, the risk arises on hosts and containers running an affected SSH server with password authentication enabled and the specific account conditions met. Systems using PAM for authentication or those not running an SSH server are not susceptible to this particular attack vector.
Alpine Linux has also flagged older tiny-cloud images that shipped with an 'alpine' user capable of gaining root privileges without a password via 'doas'. While not exposed on initial boot, subsequent account modifications could introduce the vulnerability. The company advises users to check their installed server package revisions, as upstream version banners may not reflect the patched status.
For systems that cannot be patched immediately, administrators are advised to disable password authentication (PasswordAuthentication no), ensure key-based access is functional, and restart the SSH daemon. It is crucial to keep the current session open until a new login attempt with the updated configuration is successful. Post-incident, security teams should review logs for suspicious accepted password entries, unauthorized user creation, or modifications to authorized_keys files.
Alpine recommends treating any system where unauthorized access cannot be ruled out as potentially compromised. This vulnerability underscores the importance of timely patching and secure configuration, especially for systems that permit password-based SSH access.