CVE-2026-123158, known as “sshole”, affects OpenSSH releases before 10.6p2 on certain musl-based Linux systems such as Alpine: for an account with no password, a bogus password can be accepted during password login. The fix was released on 5 November 2026, and exploitation began within hours of disclosure.
This guide shows how to tell with a few commands whether you are affected, how to patch and restart, what to do if you cannot update yet, and how to check the logs for abuse. Debian-, Ubuntu- and RHEL-based systems, which use glibc and PAM, are reported as not affected.
1. Are you affected?
Four conditions must hold at the same time. If even one is missing, the flaw is reported as not exploitable this way.
| Condition | Mit jelent? | Typical example |
|---|---|---|
| musl libc | The system uses the musl C library. | Alpine Linux, OpenWrt, Buildroot, Yocto, some Docker images |
| Nincs PAM | sshd does not check passwords through PAM. | Default Alpine package, without openssh-server-pam |
| Password login | PasswordAuthentication is enabled (the default). | Default sshd_config |
| Account with “*” password field | An account exists whose password in /etc/shadow is just “*”. | Key-only user, root, the default user of Alpine cloud images |
Open image full size 2. Check with commands
- Log in to the server as an administrator (root or doas/sudo). The commands only read; they change nothing.
- Check the C library: if the output mentions musl, continue; if it says GLIBC, this flaw does not affect you.
- Check PAM and password login. If UsePAM is yes, or PasswordAuthentication is no, the flaw cannot be used this way.
- Find accounts with “*” in the password field. Every name listed here is a possible target.
ldd --version 2>&1 | head -1
apk info -e openssh-server-pam
sshd -T | grep -iE 'usepam|passwordauthentication'
awk -F: '$2 == "*" {print $1}' /etc/shadow3. Update, then restart sshd
- Take a backup or snapshot, and keep one logged-in session open until you have tested a fresh login.
- Update the openssh package. The fixed upstream release is OpenSSH 10.6p2; Alpine backported the fix to several branches, so verify the exact version number in the Alpine security tracker.
- Restart sshd. Installing the package does not replace the running process.
- Open a new session from another terminal, and only then close the old one.
- If sshd runs in a container, rebuild or re-pull the image and replace the running instances; restarting a container keeps the old package.
apk update
apk upgrade openssh
rc-service sshd restart4. If you cannot update right now
- Disable password login (PasswordAuthentication no), but only after confirming that key-based login works. Otherwise you can lock yourself out.
- Restrict port 22 to trusted IP addresses on the firewall (see the VPS firewall guide).
- If the machine does not need to accept SSH, stop the service.
# /etc/ssh/sshd_config.d/10-no-password.conf
PasswordAuthentication no5. Check whether it was abused
- Look for successful password logins on accounts that should not have a password. On Alpine, search /var/log/messages for “Accepted password” lines; for containers, also check docker logs.
- Pay particular attention to root and key-only users, doas use, newly created users and authorized_keys files.
- If you cannot rule out compromise, treat the host as compromised: rebuild it from a clean image and rotate the keys and secrets it held.
grep "Accepted password" /var/log/messages6. Lasting hardening and the limits of the fix
- Use key-based login and turn off SSH passwords where possible: this protects against password-handling flaws and brute-force attacks alike.
- Restrict who may log in (AllowUsers) and disable direct root login.
- Subscribe to your distribution’s security announcements and schedule regular updates.
- The fix changes sshd, not musl: other programs on the system that check passwords are outside its scope. Early reports of exploitation rest on a single sensor, so the true extent is not yet known.



