A critical OpenSSH authentication bypass vulnerability allows remote attackers to access certain Alpine Linux accounts without knowing their passwords or possessing SSH keys. Tracked as CVE-2026-123158 and named SSHole, the flaw exploits how the musl C library handles password verification on systems without Pluggable Authentication Modules (PAM).
The vulnerability affects unpatched SSH servers that use musl, operate without PAM, and permit password-based authentication. OpenSSH released a fix on November 5, 2026, and Alpine Linux published patched packages the same day.
A November 23 laboratory demonstration reported by IOTSEC Forum showed that an unpatched OpenSSH build running on Alpine Linux 3.24 accepted a password login for an account without a usable password.
The researcher used a 257-byte password to demonstrate the authentication bypass. The patched Alpine package correctly rejected the login.
How the SSHole Authentication Bypass Works
OpenSSH normally verifies submitted passwords by comparing their cryptographic hashes against the values stored for user accounts.
However, the musl C library’s crypt() function can return an error marker instead of a valid password hash under certain conditions.
On affected systems, this marker can match the stored value used to indicate that an account has no usable password. The vulnerable OpenSSH implementation incorrectly interprets that match as successful authentication.
Consequently, an attacker can gain access without discovering or guessing the account’s actual password.
The fix addresses the problem by rejecting stored password values that are too short to represent valid password hashes. OpenSSH also modified how it handles account information to prevent subsequent lookups from overwriting the value being checked.
The OpenSSH 10.6p2 release notes credit Özgün Kültekin of Wakefield with reporting the vulnerability.
Alpine Linux Systems and Containers at Risk
According to Alpine Linux’s security advisory, running an Alpine base image does not automatically make a system vulnerable.
The affected configuration requires an SSH server running a vulnerable package, password authentication enabled, and the relevant account conditions. Containers without an active sshd service and systems using PAM for authentication are outside this particular attack path.
Alpine also highlighted older tiny-cloud images containing an alpine user that could obtain root privileges through doas without a password.
Although these images were not vulnerable on first boot, subsequent account changes could introduce exposure. Disabling direct root login does not prevent another account from obtaining root privileges.
Patching and Investigating Potential Compromise
Administrators should check the installed Alpine OpenSSH package revision rather than relying exclusively on the upstream version displayed in an SSH banner.
The first fixed package revisions include:
- Alpine 3.24: 10.3_p1-r2
- Alpine 3.23: 10.2_p1-r1
- Alpine 3.22: 10.0_p1-r11
After upgrading, restart the SSH service using rc-service sshd restart.
If immediate patching is not possible, administrators should confirm that key-based authentication works, configure PasswordAuthentication no, and restart sshd.
Keep the existing SSH session open until a fresh login succeeds.
For potentially exposed systems, inspect /var/log/messages for Accepted password entries involving accounts that should only permit SSH key authentication. Also review doas activity, newly created accounts, unfamiliar files, and unexpected changes to authorized_keys.
A failed login followed by a successful one does not independently establish exploitation. However, an unexpected password login to an account that should reject password authentication requires immediate investigation.
Alpine Linux advises treating a system as compromised when unauthorized access cannot be ruled out. Administrators should prioritize patching affected servers and containers, auditing authentication logs, and investigating suspicious account activity.



