Hackers Bypass Alpine Linux SSH Authentication Using Just a 257-Byte Password

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


A flaw in OpenSSH lets remote attackers sign in to certain Alpine Linux accounts without knowing a valid password or holding an SSH key.

The vulnerability, tracked as CVE-2026-123158 and known as SSHole, affects unpatched servers that use the musl C library, run without Pluggable Authentication Modules (PAM), and allow SSH password logins. OpenSSH released a fix on November 5, and Alpine shipped patched packages the same day.

Hackers Bypass Alpine Linux SSH Authentication

According to IOTSEC Forum, the 257-byte figure comes from a November 23 lab report. A researcher showed that an unpatched OpenSSH build on Alpine Linux 3.24 accepted a password login for an account with no usable password.

The patched Alpine package rejected the login. The lab result is separate from Cyber Security News’ earlier reporting on active exploitation.

OpenSSH normally checks a password by comparing its hash, a one-way representation of the password, with the value stored for the account. On affected systems, musl’s crypt() function can return an error marker instead of a hash.

That marker can look identical to the stored value that tells Linux an account has no usable password. The unpatched server treated the match as a successful login. It did not recover or guess anyone’s password.

CVE-2026-123158 Bypassed Output (Source: iotsec)

The fix blocks that false match by rejecting stored values that are too short to be valid password hashes. It also changes how OpenSSH copies account data so a later lookup cannot overwrite the value being checked. The OpenSSH 10.6p2 release notes credit Özgün Kültekin of Wakefield with reporting the flaw.

An Alpine base image alone does not make a system vulnerable. The risk is on hosts and containers running an affected SSH server with password authentication enabled and the account conditions described in the Alpine Linux security advisory. Containers that do not run sshd and servers that use PAM for authentication are outside this attack path.

Alpine also flagged older tiny-cloud images, covered in our initial OpenSSH bypass report. Those images shipped with an alpine user that could gain root privileges through doas without a password.

Alpine said the images were not exposed on first boot, but later account changes could make them vulnerable. Blocking direct root login does not protect a separate account that can become root.

Check the installed server package revision, not just the upstream version shown in an SSH banner. The first fixed Alpine packages include 10.3_p1-r2 for 3.24, 10.2_p1-r1 for 3.23, and 10.0_p1-r11 for 3.22.

After upgrading, restart the running server with rc-service sshd restart. If patching must wait, verify that key-based access works, set PasswordAuthentication no, and restart sshd. Keep the current session open until a fresh login succeeds.

On exposed systems, review /var/log/messages for Accepted password entries involving accounts meant to use SSH keys only. Compare each event with the account’s settings at the time. Review doas activity and look for newly created users, unfamiliar files, or changes to authorized_keys. A failed login followed by a success is not proof of exploitation.

A password login to an account that should never accept one warrants immediate investigation. Alpine advises treating the system as compromised if you cannot rule out unauthorized access.

What Are Leading Organizations Doing About AI and Cyber Risks? Find Out. View Details!

The post Hackers Bypass Alpine Linux SSH Authentication Using Just a 257-Byte Password appeared first on Cyber Security News.