A researcher has disclosed a flaw in OpenSSH that lets an attacker log into certain Linux accounts without knowing a password, and within hours of the fix becoming public, someone was already trying it against a monitored system.
The bug, tracked as CVE-2026-123158 and nicknamed “SSHole,” carries a CVSS score of 8.1. It was found by security researcher Ozgun Kultekin and traces back to a decade-old fix. In 2016, OpenSSH patched a different flaw, CVE-2016-6210, that let attackers figure out which usernames existed on a server by timing how long a login attempt took. That fix introduced a side effect that nobody caught until now.
Here is how it works. On some systems, administrators disable password logins for an account by putting an asterisk (“*”) in the field where the password hash would normally go. That tells the system the account can never log in with a password. SSHole causes the same asterisk to appear by accident. If an attacker sends an oversized password, somewhere between 257 and 1,024 bytes long, the function that hashes it fails and also returns an asterisk. The SSH server then compares that failure asterisk to the account’s real asterisk, decides they match, and lets the attacker in. No actual password is needed and no credential is stolen. The login simply succeeds because two unrelated things look identical to the code checking them.
Not every Linux server is exposed. The bug only shows up on systems using the musl C library instead of the more common glibc, and only when PAM (Pluggable Authentication Modules, the standard Linux framework for checking logins) is turned off for SSH. That combination happens to be the default configuration on Alpine Linux, a lightweight distribution widely used as the base image for Docker containers and other minimal deployments. Dropbear, a different SSH server, glibc-based distributions such as Ubuntu or Debian, and any system that authenticates through PAM are not affected. An account also has to already have that disabled-password asterisk set for the bypass to apply, so ordinary accounts protected by real passwords are not at risk.
Alpine published its advisory on November 5, and OpenSSH 10.6p2 fixes the issue. According to threat intelligence firm Previdian, the first real-world attempt to exploit SSHole showed up less than nine hours after the fix was published, and the attacker reached root access on a honeypot running Alpine Linux. Previdian’s chief executive, Ryan Dewhurst, said the company logged eight separate attempts from a single IP address geolocated to Japan. The attacker sent oversized passwords to trigger the bypass, then ran basic reconnaissance commands including id, uname, and hostname over non-interactive SSH sessions, the kind of quick fingerprinting an attacker does to work out what they have just broken into.
Security firm Safe Security noted that a successful SSHole attack only grants the permissions of whichever account the attacker got into, so the real damage depends on what that account could reach, such as deployment credentials, application secrets, or other connected infrastructure that would let an attacker move further into a network.
Administrators running Alpine Linux or other musl-based systems with PAM disabled for SSH should update to OpenSSH 10.6p2 or their distribution’s patched package and restart sshd. Alpine’s advisory recommends checking authentication logs for “Accepted password for” entries tied to accounts that are not supposed to accept passwords at all, such as the alpine or root accounts, or any account meant to be key-only. The advisory is blunt about what to do if that kind of log entry turns up: “If you cannot rule out a login, treat the machine as compromised.” That means also reviewing recently created user accounts, changes to authorized_keys files, and any use of doas, Alpine’s equivalent of sudo, on affected machines.
Source and further reporting: The Hacker News.

