A critical flaw identified in OpenSSH, documented as CVE-2026-123158 and nicknamed SSHole, has been found to permit unauthorized entry into certain Alpine Linux accounts without requiring a valid password or SSH key. This vulnerability is particularly present in systems that utilize the musl C library, do not employ Pluggable Authentication Modules (PAM), and have SSH password logins enabled. On November 5, OpenSSH issued a patch to address the issue, with Alpine Linux releasing updated packages on the same day.
The issue arises from musl’s crypt() function, which, under certain circumstances, returns an error marker instead of a hash. This error marker can mimic the stored value indicating an account lacks a usable password, leading the server to mistakenly accept the login attempt. The patch rectifies this by rejecting stored values that are too short to be valid hashes and modifies the process of copying account data to prevent overwriting during lookups.
While the vulnerability primarily affects hosts and containers running an affected SSH server with password authentication, it does not impact containers that do not execute sshd or servers utilizing PAM. Alpine Linux has also flagged older tiny-cloud images, which previously shipped with an alpine user capable of gaining root privileges without a password. Although these images were secure on first boot, subsequent changes could introduce vulnerabilities.
To address this issue, users should verify their server package revisions and upgrade to the patched versions: 10.3_p1-r2 for version 3.24, 10.2_p1-r1 for 3.23, and 10.0_p1-r11 for 3.22. Following an upgrade, users must restart the SSH service. If immediate patching is not possible, administrators should ensure key-based access functions correctly, disable password authentication, and monitor logs for unauthorized access attempts.

