Critical OpenSSH Flaw Lets Hackers Bypass Alpine Linux Passwords

A major vulnerability in OpenSSH dubbed CVE-2026-123158—also known as “SSHole”—lets attackers access certain Alpine Linux systems without a valid password or SSH key. This bug impacts servers running Alpine without Pluggable Authentication Modules (PAM), using the musl C library, and allowing password-based SSH login. OpenSSH patched the flaw on November 5, and Alpine released updates on the same day.

How the SSH Authentication Bypass Works

On unpatched Alpine Linux 3.24 builds of OpenSSH, a curious issue was uncovered during lab testing: accounts with no usable password could log in using a 257-byte password. The root cause lies in how musl’s crypt() function handles invalid passwords—it can return an error marker that mirrors the stored “no password” indicator for an account. The server treats this false match as valid, allowing login without ever knowing or guessing a true password.

The fix introduced in the latest OpenSSH version addresses this by rejecting stored values that are too short to be legitimate password hashes. It also alters how account data is copied during authentication to prevent overwriting values mid-check. Credit for discovering the flaw goes to researcher Özgün Kültekin of Wakefield.

Who’s at Risk and How to Mitigate

This vulnerability hits systems that meet three specific conditions: they run an affected OpenSSH version built with musl, do not use PAM, and have password-based SSH logins enabled. If any of those are missing—such as using SSH key authentication only, or running sshd inside a container without exposing it—systems are not vulnerable.

Alpine shipped patched OpenSSH packages for multiple releases: version 10.3_p1-r2 for Alpine 3.24, 10.2_p1-r1 for 3.23, and 10.0_p1-r11 for 3.22. Administrators should update immediately and restart the SSH service. If patching can’t happen right away, disabling PasswordAuthentication in sshd_config and ensuring key-based login works is strongly advised. Keep your current session open until you’ve confirmed a successful login with the new settings.

After patching, check logs for unexpected “Accepted password” entries—especially for accounts meant to use SSH keys or that should never accept passwords. Also inspect doas usage, user creation, and the authorized_keys file. If you detect logins that shouldn’t have been possible, assume possible compromise until proven otherwise.

This issue isn’t just theoretical. Older Alpine tiny cloud images included an “alpine” user that could escalate to root using doas without needing a password. Though these images were not vulnerable on first boot, changes to accounts later could expose systems. Blocking root login only helps if there are no secondary accounts that can obtain root privileges.

Updating to the fixed packages and verifying you’re not relying on password-based access is essential. The vulnerability reminds us that even well-known tools like OpenSSH can harbor hidden flaws when combined with certain system libraries or configuration choices.

What This Means Going Forward
SSH is a fundamental part of securing remote servers. This bypass flaw shows that cryptographic functions like crypt() and configuration mechanisms like PAM matter deeply—not just SSH versions alone. Vendors, administrators, and security teams must keep dependencies and system settings under scrutiny. Watch closely for future warnings tied to musl, crypt(), and authentication modules. Regular patching, careful configuration, and strong auditing are more critical now than ever.