In short
On November 5, 2026 the OpenSSH team released version 10.6p2, which fixes a password authentication bypass nicknamed "sshole" and tracked as CVE-2026-123158. It was found by Özgün Kültekin of the security firm Wakefield.
In plain words: on some servers an attacker can log in over SSH to an account that has no password at all (an account meant for key-only login) simply by typing a very long password, between 257 and 1024 characters. Any password. No guessing, and one attempt is enough.
Key facts:
| What | Details |
|---|---|
| ID | CVE-2026-123158 ("sshole") |
| Score | 8.1 out of 10 (High), CVSS 3.1 |
| Fixed in | OpenSSH 10.6p2, released November 5, 2026 |
| Affected | Alpine Linux and other musl libc systems running sshd without PAM |
| Not affected | Ubuntu, Debian, Fedora, Red Hat, AlmaLinux, Rocky (glibc) |
| Exploitation | public proof of concept; no confirmed real attacks as of November 6 |
If your server runs Ubuntu or Debian, you are not affected. If you use Alpine Linux (very common in Docker containers and small cloud images), read on and update today.
Who is affected, exactly
The flaw only works when all of these are true at the same time:
- the system uses musl libc, not glibc. That includes Alpine Linux, OpenWrt, Void Linux (musl), Buildroot and Yocto;
- sshd runs without PAM (on Alpine the standard
openssh-serverpackage has no PAM, so this is the default); - password authentication is enabled in SSH (
PasswordAuthentication yes, the default); - some account has
*in its password field in/etc/shadow. This is the usual way of saying "this account cannot log in with a password, only with a key"; - the same system has at least one other account with a real password, stored as a SHA-256 (
$5$) or SHA-512 ($6$) hash.
The most dangerous case is the official Alpine cloud images, versions 3.18.11 through 3.24.3 (used on AWS and Azure). They ship an alpine user whose password is locked with * and who can become administrator through doas without a password. On first boot it cannot be exploited, because no other account has a password yet. But once the administrator sets a password for any other user (for the console, for example), condition 5 is met: an attacker logs in as alpine with a long password and then becomes root with doas.
Not affected:
- glibc distributions: Ubuntu, Debian, Fedora, Red Hat, AlmaLinux, Rocky Linux;
- servers where sshd uses PAM (
UsePAM yes, theopenssh-server-pampackage on Alpine); - servers with
PasswordAuthentication no(SSH keys only); - accounts locked with
!instead of*; - Dropbear and OpenBSD's SSH;
- Docker containers that do not run sshd. The official
alpineimage is not affected on its own; only images where you installedopenssh-serverand gave some user a password are.
The root account is protected by default, because OpenSSH ships with PermitRootLogin prohibit-password, which forbids password logins as root. If you changed it to PermitRootLogin yes, root is exposed too.
How the flaw works
The interesting part is that none of the three components involved has an obvious bug on its own. The problem only appears where they meet.
1. How Linux checks a password. Linux does not store your password, it stores a hash of it in /etc/shadow. At login, the program hashes what you typed with crypt() and compares it to the stored hash. If the field contains instead of a hash, no password can ever produce exactly the text , so password login is impossible. That is how key-only accounts are locked.
2. musl returns on error. In musl libc, crypt() returns the text when it fails. And in musl the SHA-256 and SHA-512 algorithms fail for passwords longer than 256 bytes. So: a 300-character password → crypt() fails → the result is *.
3. OpenSSH compares the result with the shadow field. Since 2016, to stop attackers from discovering which accounts exist (after CVE-2016-6210), OpenSSH computes a hash even for accounts with no valid password, using the settings ("salt") of another account that has a real one. That is where condition 5 comes from. On the non-PAM path, sshd then compares the crypt() result with the shadow field.
Put the three together: the account has in shadow, the attacker sends a 300-character password, crypt() fails and returns , and sshd compares with . They match, so the login is accepted.
In the 10.6p2 release notes the OpenSSH team says it considers the root cause to be outside sshd, but since it is exploitable through sshd and can be avoided there, they fixed it on their side. The fix makes sure an invalid crypt() result can never count as a match.
The bug stayed hidden for almost 10 years because it only shows up without PAM, only with musl and only with huge passwords. Normal testing never gets there. The researcher found it by building sshd in every combination (glibc or musl, with or without PAM, with or without shadow) and running about 17,600 unusual login attempts.
How to check whether your server is exposed
Run these commands as root, in order.
Step 1: which system you have.
cat /etc/os-release
ldd --version 2>&1 | head -1
If you see Ubuntu, Debian, Fedora, Red Hat, Alma or Rocky and ldd mentions "GLIBC" or "GNU libc", you are not affected by sshole. You can stop here (but keep doing your regular updates). If you see Alpine or ldd mentions "musl", continue.
Step 2: which OpenSSH version you have (on Alpine).
apk info -v openssh-server openssh-server-pam 2>/dev/null
Compare it with the table of fixed versions below. Note: on stable branches Alpine backported the fix into the older version, so do not look for "10.6", look for the exact number in the table.
Step 3: how sshd is configured.
sshd -T | grep -iE '^(usepam|passwordauthentication|permitrootlogin)'
If you see passwordauthentication no, sshole cannot reach you. Same if you see usepam yes.
Step 4: which accounts meet the conditions.
Accounts locked with *:
awk -F: '$2=="*"{print $1}' /etc/shadow
Accounts with a SHA-256 or SHA-512 password:
grep -E '^[^:]+:\$[56]\$' /etc/shadow | cut -d: -f1
If both lists have at least one line, password authentication is on and sshd runs without PAM, the server is exposed.
How to fix it: update
On Alpine the update is simple:
apk upgrade -U -a
rc-service sshd restart
Restarting sshd is mandatory. Installing the package does not replace the program already running in memory, so you stay exposed until the restart. The SSH session you are working in will not be closed by the restart.
Then check the version:
apk info -v openssh-server
Fixed versions on each Alpine branch (Alpine also fixed branches that are out of support, back to 3.16):
| Alpine branch | Fixed openssh version |
|---|---|
| edge | 10.6_p2-r0 |
| 3.24 | 10.3_p1-r2 |
| 3.23 | 10.2_p1-r1 |
| 3.22 | 10.0_p1-r11 |
| 3.21 | 9.9_p2-r1 |
| 3.20 | 9.7_p1-r6 |
| 3.19 | 9.6_p1-r3 |
| 3.18 | 9.3_p2-r4 |
| 3.17 | 9.1_p1-r7 |
| 3.16 | 9.0_p1-r6 |
On other musl systems (OpenWrt, Buildroot, Yocto, Void), not every project had published a fix by November 6. There the answer is OpenSSH 10.6p2 built yourself or, more simply, the measure below.
Docker containers: if you have your own Alpine-based images running sshd, updating inside a running container is not enough. Rebuild the image on an updated base and restart the containers from it:
docker build --pull --no-cache -t your-image .
If you cannot update right now: turn off password login
The measure that protects you immediately, whatever the version, is to allow SSH key login only. Do it carefully so you do not lock yourself out:
- First make sure you can log in with a key. Open a second window and connect with your SSH key. If you do not have one, create it (
ssh-keygen -t ed25519) and copy it to the server (ssh-copy-id user@server) before anything else. - Keep your current session open until the end.
- Turn off passwords:
echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/00-no-passwords.conf
sshd -t && rc-service sshd restart
On Alpine 3.18 and older, files in sshd_config.d are ignored. There you write PasswordAuthentication no directly in /etc/ssh/sshd_config. sshd -t checks the configuration before the restart; if it prints an error, do not restart until you fix it.
- Verify:
sshd -T | grep -i passwordauthentication
You should see passwordauthentication no. Then try a key login from a new window to be sure everything works.
Key-only login is our recommendation for every server anyway, not just because of sshole. We cover it in detail in our VPS hardening guide.
How to tell whether you were already attacked
SSH logs do not record password length, but they do record password logins. A password login to an account that has no password is exactly the sign you are looking for.
On Alpine the log is /var/log/messages:
grep "Accepted password for" /var/log/messages*
For each account in the output, check whether it is in the list of accounts locked with * (step 4 above). If you find a password login for alpine, for root or for a user who normally logs in only with a key, treat the server as compromised. That is also Alpine's advice.
Also check:
- the keys in
~/.ssh/authorized_keysfor every user, including root: any key you do not recognize was added by someone else; - new users in
/etc/passwd; doasorsudouse at odd hours;- unknown processes and scheduled tasks (
ps aux,crontab -l,/etc/periodic).
A compromised server cannot be reliably "cleaned". The right way is to save your data, reinstall a clean system, change every password and key that was on it, and restore verified data.
Do not run "checker" scripts or exploits published by strangers. Use the commands above, your distribution's official packages and the official OpenSSH notes.
What is confirmed and what is not
Some exaggerated claims have been going around since yesterday. What we know for sure as of November 6, 2026:
- the fix exists since November 5: OpenSSH 10.6p2 and Alpine packages for every branch back to 3.16;
- public code exists that reproduces the attack;
- real attacks are not officially confirmed: neither OpenSSH nor Alpine reports exploitation, and the flaw is not on CISA's Known Exploited Vulnerabilities list. A few sites claim that "hackers got root within hours", but that is based on one person's observations and is not confirmed;
- Ubuntu and Debian are not affected, however alarming the headlines look.
That is no reason to wait. Once attack code is public, automated internet scans start quickly, and an Alpine server with passwords enabled is an easy target.
FAQ
I run Ubuntu on my VPS. Do I need to do anything?
For sshole, no. Ubuntu uses glibc, so the conditions cannot be met. The general advice still applies: regular updates and key-only login.
I use Alpine Docker containers. Am I at risk?
Only if an SSH server (sshd) runs inside the container and some user there has a password. Most containers do not run sshd, so they are not affected. If yours do, rebuild the image on an updated base.
Is changing my password enough?
No. Your password does not matter: the attack targets accounts that have no password. Only updating or turning off password login helps.
Why exactly 257 characters?
Because musl's crypt() rejects passwords longer than 256 bytes for SHA-256 and SHA-512. Published tests show the attack works with passwords between 257 and 1024 characters.
At Wiptor
Wiptor servers run glibc distributions, so our infrastructure is not affected by sshole.
On a Wiptor VPS you get full root access and can install any system, including Alpine Linux from your own ISO image. That also means your system's updates are in your hands. If you run Alpine on one of our VPS plans, run apk upgrade -U -a today and restart sshd. If you need help, open a ticket from my.wiptor.com and we will tell you exactly what to check.

