CVE-2026-123158 (SSHole): How a 257-Byte Password Bypasses OpenSSH on musl Linux
CVE-2026-123158, nicknamed SSHole, is an OpenSSH authentication bypass that lets an attacker log in to passwordless accounts on musl-based Linux, including Alpine Linux, with a single password of 257 to 1,024 bytes. Disclosed on November 5, 2026 and rated CVSS 8.1 (High), the SSHole vulnerability affects OpenSSH before 10.6p2 when it runs without PAM. Attackers began exploiting it within hours, and CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on November 9. This guide explains how the bug works, who is affected, how to detect a compromise, and how to patch.
Quick answer: what to do now
- Upgrade OpenSSH to 10.6p2 or your distribution’s patched package.
- Restart sshd. Installing the package does not replace the running process.
- If you can’t patch immediately, set
PasswordAuthentication noand restart sshd.
On Alpine:
apk update && apk upgrade openssh
rc-service sshd restart
The short version
- What: an authentication bypass in OpenSSH’s password handling. On affected systems, any password between 257 and 1,024 bytes logs you in as an account that is supposed to be unable to use a password at all.
- ID: CVE-2026-123158, nicknamed SSHole (also written *sshole). CVSS 3.1 base score 8.1 (High).
- Who is affected: OpenSSH before 10.6p2 on Linux with the musl C library and without PAM. The headline victim is Alpine Linux, plus other musl-based systems such as OpenWrt (when openssh is installed instead of the default Dropbear), Buildroot and Yocto builds.
- Who is not: glibc systems (Debian, Ubuntu, Fedora), anything authenticating through PAM, Dropbear, and OpenBSD.
- Status: fixed in OpenSSH 10.6p2. Exploitation in the wild was observed within about nine hours of CVE publication, and CISA added the flaw to its KEV catalog on November 9, 2026, with a federal remediation deadline of November 12.
Background: what * means in /etc/shadow
On Linux, the second field of each line in /etc/shadow holds the account’s password hash. Administrators use special values in that field to say “this account has no usable password”. Two common conventions are ! (locked) and * (no password login).
Accounts that commonly carry * include:
- root on recent Alpine releases
- key-only deploy or service users created without a password
- users resolved from a directory service through musl-nscd
- the default
alpineuser on Alpine’s official AWS and Azure cloud images
The security assumption is simple: no input string can ever equal “no password”, so these accounts can never be reached through password authentication. SSHole breaks that assumption.
How the SSHole vulnerability works
The bug is not a memory-safety error. It is a logic flaw that emerges from the interaction of three independent pieces of behavior, each of which looks reasonable alone.
Piece 1: OpenSSH’s 2016 username-enumeration fix
In 2016, OpenSSH addressed CVE-2016-6210, a timing side channel. If a user did not exist (or had no usable hash), sshd skipped the expensive hash computation and answered faster, letting an attacker distinguish valid usernames from invalid ones.
The fix was to make the work uniform. When an account has no usable password hash, sshd borrows the salt and hash parameters from another account that does have a hash, and runs the password through crypt() anyway. The result is then compared against what is stored for the real account, which is *. Normally the comparison can never succeed, because a real hash never equals *.
Piece 2: musl’s crypt() length limit
According to the researcher’s write-up, musl’s crypt() refuses SHA-256 and SHA-512 inputs longer than 256 bytes. When it refuses, it does not return a null pointer the way callers might expect. It returns the string *, a conventional “failure” output.
Piece 3: the comparison
Put the pieces together:
- The attacker targets a user whose shadow entry is
*. - sshd, following the 2016 timing fix, hashes the supplied password using another account’s SHA-512 salt.
- The supplied password is longer than 256 bytes, so musl’s
crypt()refuses and returns*. - sshd compares the returned
*with the stored*. They match. - Authentication succeeds.
In simplified, illustrative pseudocode (not the literal OpenSSH source):
/* Illustrative only */
const char *stored = shadow_entry(user)->pw_passwd; /* "*" for a passwordless account */
const char *salt_source = stored_is_unusable(stored)
? other_account_hash() /* 2016 timing mitigation */
: stored;
const char *computed = crypt(supplied_password, salt_source);
/* musl: password > 256 bytes with SHA-2 => returns "*" */
if (strcmp(computed, stored) == 0) /* "*" == "*" */
return AUTH_OK; /* bypass */
The upper bound of 1,024 bytes (so the working range is 257 to 1,024 bytes) comes from other limits in the password path, not from anything the attacker controls. The practical consequence is what makes this bug dangerous: no guessing, no brute force, no retries. One connection with an oversized string is enough, and it works deterministically.
Why it went undiscovered for about a decade
The vulnerable behavior needs all of the following at once, and the pieces live in different projects:
- OpenSSH’s fallback logic (introduced in 2016)
- musl’s length-limit behavior
- a build of sshd that checks passwords itself rather than through PAM
- an account whose shadow entry is
*
On glibc, crypt() does not behave this way. With PAM, password checking is delegated and the comparison above never happens. Only the specific intersection exposes the flaw, which is why ordinary code review of any single component would not have flagged it.
Discovery and disclosure
The flaw was found by Özgün Kültekin of the security firm Wakefield. By his own account, he built sshd in many configurations and ran a large number of unusual login attempts against the builds. Only the musl-without-PAM build accepted logins it should have rejected. He has also said he used AI agents in the process.
The fix shipped as OpenSSH 10.6p2 on November 5, 2026, and NVD published the CVE the same day. Alpine published patched packages for its supported branches on the day of disclosure.
Is my system affected by CVE-2026-123158?
Required conditions
An attack needs all of the following:
- OpenSSH older than 10.6p2
- Linux on musl libc
- sshd not using PAM for password checks (Alpine’s default openssh-server package is built this way)
PasswordAuthentication yes(this is the OpenSSH default)- a target account with only
*in its password field - at least one other local account with a real password hash (so sshd has a salt to borrow)
The last condition matters in practice. Reports note that some Alpine images are safe at first boot and become exploitable once any $6$ hash exists on the host, for example when an administrator sets a console password.
Affected platforms reported so far
- Alpine Linux 3.16 through 3.24
- Alpine cloud images where the default
alpineuser has passwordlessdoas - OpenWrt (only when the openssh server is installed, not with the default Dropbear), Buildroot and Yocto builds that use musl and a non-PAM sshd
- Container images based on Alpine that ship an SSH server
The root question
OpenSSH’s default PermitRootLogin setting (prohibit-password) blocks password logins for root, so direct root takeover requires an administrator to have changed it. The larger practical risk is indirect root: on Alpine’s official AWS and Azure images the default user can escalate with passwordless doas, so bypassing authentication for that account is effectively root.
Not affected
glibc-based distributions (Debian, Ubuntu, Fedora), PAM-backed sshd configurations, Dropbear, and OpenBSD.
Exploitation in the wild and CISA KEV status
Threat intelligence firm Previdian reported that its first observed attempt arrived less than nine hours after the CVE was published, and that it confirmed successful root access on a honeypot running real Alpine Linux and OpenSSH. Its later tally was 22 exploitation attempts from 14 unique IP addresses. GreyNoise is also tracking scanning and exploitation attempts.
CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalog on November 9, 2026, with a federal due date of November 12, 2026.
Proof-of-concept code has appeared on GitHub. Previdian warns these are unverified and may themselves contain malware. Do not run them on a machine you care about.
How to detect SSHole exposure and compromise
1. Find the accounts that matter
List accounts whose shadow entry is exactly *:
awk -F: '$2 == "*" { print $1 }' /etc/shadow
Confirm there is at least one account with a real hash (starting with $), since that is part of the precondition.
2. Check your version and build
ssh -V # OpenSSH version string
apk info openssh-server # Alpine package version
Anything older than 10.6p2 on musl without PAM should be treated as exposed until patched. On Alpine, check the package against the fixed versions in the next section.
3. Hunt in logs
Search for successful password logins to accounts that should never accept a password:
grep "Accepted password for" /var/log/messages
Pay particular attention to entries naming alpine, root, or key-only service users. Then review:
doasusage and any new privilege escalation- recently created users
- changes to
~/.ssh/authorized_keysfiles - outbound connections and new persistence mechanisms
If you cannot rule out a malicious login, treat the host as compromised: rebuild from a known-good image and rotate any credentials or keys it could access. The vulnerable login leaves a normal-looking “Accepted password” line, so the absence of exotic log entries is not proof of safety.
How to fix SSHole (OpenSSH 10.6p2)
Patch, then restart
- Upgrade to OpenSSH 10.6p2 or your distribution’s patched package. Alpine published fixed packages for all branches from 3.16 to edge. Reported fixed versions include edge 10.6_p2-r0 and point releases 3.21.10, 3.22.8, 3.23.8 and 3.24.4.
- Restart sshd. Installing the package does not replace the running process, so the old vulnerable binary keeps accepting connections until the service is restarted.
apk update && apk upgrade openssh
rc-service sshd restart
If you can’t patch right now
OpenSSH developer Damien Miller advised affected admins to immediately set PasswordAuthentication no or disable SSH on these systems until patched. In /etc/ssh/sshd_config:
PasswordAuthentication no
Then restart sshd. This removes the vulnerable code path entirely and is good practice regardless. Make sure you have working key-based access before applying it so you don’t lock yourself out.
Longer-term hardening
- Prefer key-based authentication and keep password auth off wherever possible.
- Restrict SSH exposure with a firewall, VPN or bastion host instead of listening on the open internet.
- Remove
doasorsudo NOPASSWDrules for default cloud users where you can. - Audit container images: if an Alpine-based image runs sshd, make sure it is rebuilt on a patched base.
- Inventory embedded and network devices (routers, appliances) that use OpenWrt, Buildroot or Yocto. These often patch slowly.
Quick reference
Item | Detail |
|---|---|
CVE | CVE-2026-123158 |
Name | SSHole / *sshole |
Severity | CVSS 3.1: 8.1 (High) |
Type | Authentication bypass (logic flaw) |
Trigger | Password of 257 to 1,024 bytes for an account with |
Affected | OpenSSH before 10.6p2 on musl libc, no PAM |
Fixed in | OpenSSH 10.6p2 (November 5, 2026) |
Reported by | Özgün Kültekin, Wakefield |
Exploited in the wild | Yes. First attempt under nine hours after CVE publication (Previdian) |
CISA KEV | Added November 9, 2026; federal due date November 12, 2026 |
Workaround |
|
Frequently asked questions
- Is Ubuntu, Debian or Fedora affected by CVE-2026-123158?
No. These distributions use glibc, whose crypt() does not return * for oversized input, and their sshd typically authenticates through PAM.
2. Can attackers get root through SSHole?
Not directly in a default setup, because PermitRootLogin prohibit-password blocks root password logins. The real risk is indirect: on Alpine’s official AWS and Azure images, the default user can use doas without a password, so logging in as that user is effectively root.
3. Does installing the patch fix a running server?
No. You must restart sshd, or the old vulnerable process keeps accepting connections.
4. How do I know if I was compromised?
Check for “Accepted password” log entries for accounts that should never use a password, review doas activity and authorized_keys changes, and if in doubt rebuild the host from a clean image and rotate credentials.
5. Is Dropbear affected?
No. Dropbear is not affected, which is why OpenWrt systems on the default Dropbear are fine unless the OpenSSH server was installed.
Sources and further reading
- Alpine Linux security advisory ( November 5, 2026)
- Help Net Security: “OpenSSH flaw exploited in the wild just hours after disclosure”
- StepSecurity reproduction and exposure analysis
- OX Security analysis
- Astra analysis
- The Hacker News on the CISA KEV addition
- The researcher’s own site, sshhole.com
- NVD entry for CVE-2026-123158
- OpenSSH 10.6p2 release notes
The code-level explanation above follows the researcher’s public description as relayed by news coverage and is simplified for readability. For exact source-level detail, consult the OpenSSH 10.6p2 release notes and the researcher’s write-up.