A Bug Called ‘SSHole’ Lets You Log Into Alpine Linux With Any
A password-authentication bypass in OpenSSH on musl libc systems without PAM lets an attacker log into accounts that should never accept a password by submitting a password longer than 256 characters. The flaw arises because musl's crypt() returns a literal asterisk for overlong passwords, which matches the asterisk stored in the shadow field of key-only accounts.
Published on blog.devops.dev
On November 5, 2026, OpenSSH shipped 10.6p2 to fix CVE-2026–123158, a password-authentication bypass that security researchers immediately nicknamed “SSHole.” The bug only affects Linux systems built on musl libc without PAM — most notably Alpine Linux, the default base image behind a huge share of containers — and it…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker could log into key-only accounts, and in-the-wild exploitation led to reconnaissance, cloud metadata queries, reading password hashes and root SSH keys, and modifying authorized_keys files; however, Alpine's default PermitRootLogin prohibit-password blocks the root path, and systems with PasswordAuthentication no or PAM are not affected.
What the attacker needed
SSH server on musl libc (e.g. Alpine); sshd built without PAM; PasswordAuthentication yes; A key-only account with * in shadow
The fix
OpenSSH 10.6p2 was released to fix the issue by refusing to treat a stored field too short to be a real hash as something a submitted password could match, and Alpine backported the fix; restarting sshd after upgrading is required.
How it was found
- Connect to an SSH server running on musl libc without PAM and with PasswordAuthentication enabled.
- Target an account whose shadow password field is a single asterisk.
- Submit a password between 257 and 1,024 characters long.
- The login succeeds because the returned asterisk matches the stored asterisk.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
On some Linux systems, an account can be set up so that it never accepts a password, only a key. A bug in the password-checking code meant that if someone typed a very long password, the system compared a placeholder value against another placeholder value and they matched, so the login was allowed. This let an attacker get in without knowing any real password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.