The OpenSSH sshole bypass (CVE-2026-123158) is a severe bug with a narrow blast radius. On 5 November 2026 the OpenSSH project released Portable OpenSSH 10.6p2, which its release notes describe as a critical security workaround for Linux systems that use musl libc with PAM disabled. In practice that means Alpine Linux hosts where sshd accepts passwords. Alpine's own advisory is blunt: anyone who can reach the SSH port can log in without knowing a password, with one connection, every time.

This is no longer theoretical. Threat intelligence firm Previdian told Help Net Security and The Hacker News on 6 November that it saw the first exploitation attempt less than nine hours after the CVE was published, and confirmed root access on a honeypot running Alpine Linux and OpenSSH. Its sensors counted eight attempts, all from a single IP address. As of 8 November the CVE record on OpenCVE does not list the flaw in CISA's Known Exploited Vulnerabilities catalog.

Our take: this is an inventory problem first and a patching problem second. Most Alpine containers never start sshd and are not affected. The machines to worry about are the ones where someone switched SSH on: Alpine VMs, jump hosts, SFTP boxes, CI containers and devices.

What happened with the OpenSSH sshole bypass

The flaw sits between sshd and musl's password hashing. According to Help Net Security, musl's crypt() has refused SHA-256 and SHA-512 passwords longer than 256 bytes since 2012, and returns * when it fails. That is exactly what is stored in the password field of an account with no password set, so sshd sees a match and lets the user in.

The Hacker News traces the salt borrowing involved to an OpenSSH change from 15 July 2016 that addressed CVE-2016-6210, and reports that the 10.6p2 change makes sshd refuse a match whenever the stored field is shorter than four characters.

The OpenSSH team says it considers the root cause to be outside sshd, but because the bug is exploitable through sshd, it can be avoided there. The issue was reported by Özgün Kültekin of Wakefield.

The CVE record, as shown on OpenCVE, was published on 5 November 2026 with a CVSS 3.1 score of 8.1 (network vector, high attack complexity). It states that for some account configurations any password between 256 and 1024 characters succeeds; Alpine's advisory gives the range as 257–1024 bytes.

Who is actually exposed

Alpine's advisory lists the conditions, and all of them must hold:

  • You run Alpine's openssh-server package (built without PAM), or openssh-server-pam with UsePAM no.
  • PasswordAuthentication is yes — the OpenSSH default unless you changed it.
  • The attacker knows the name of an account whose password field is *, which is normal for key-only accounts.
  • At least one other account on the machine has a $5$ or $6$ password hash.

The last condition is what makes this nasty. As Alpine puts it, one user with a password is enough to make every account without one reachable.

Alpine lists as not affected: containers that don't run sshd, systems with PasswordAuthentication no, openssh-server-pam with UsePAM yes, and cloud images configured through cloud-init, which writes PasswordAuthentication no. According to Help Net Security, glibc-based systems such as Debian, Ubuntu and Fedora, PAM-based setups, Dropbear and OpenBSD are also safe.

The bug is not limited to Alpine. The reporter names OpenWrt, Buildroot and Yocto as other musl-based systems to check, according to SecurityWeek and The Hacker News. OpenWrt uses Dropbear by default, so there it matters only where an admin has installed the OpenSSH server.

Root is protected by OpenSSH's default PermitRootLogin prohibit-password unless you set PermitRootLogin yes. That default doesn't help if the account an attacker lands in can escalate, for example through doas.

Affected releases, per Alpine: 3.21 through 3.24 and edge, plus the older 3.16–3.20 releases. Alpine 3.21 reached end of support on 1 November 2026, but Alpine has still published fixed packages back to 3.16.

Alpine VM images on Azure and other clouds

This is the case cloud teams should check first. According to Alpine, the official tiny-cloud images (qcow2, VHD and AMI) from 3.18.11 through 3.24.3 ship an alpine user with a * password field and passwordless doas. They are safe on first boot but become exploitable as soon as any $6$ hash exists — for instance when an admin sets a console password, or user-data adds a user with hashed_passwd. An attacker then gets a shell as alpine and can doas to root.

Alpine 3.21.10, 3.22.8, 3.23.8 and 3.24.4 contain the fixed package, but instances built from earlier point releases don't fix themselves. Independent of this bug, we recommend keeping port 22 off the public internet and reaching Azure VMs through Azure Bastion or a VPN.

Fix it: disable passwords explicitly, then patch and restart

"We only use keys" is not the same as "password logins are disabled." The default is what this bug feeds on. Do both of the following:

  1. Set PasswordAuthentication no explicitly. Alpine's advisory adds it in a drop-in file under /etc/ssh/sshd_config.d (read by the default config from 3.19 onward) and changes every PasswordAuthentication yes line in /etc/ssh/sshd_config to no, including lines inside Match blocks.
  2. Upgrade openssh and restart sshd. Alpine is explicit that upgrading the package does not restart a running sshd. Patching isn't done until the daemon restarts.

The sequence, using the commands from Alpine's advisory:

# 1) disable password logins (Alpine's commands; keep your current session open and test a key login first)
mkdir -p /etc/ssh/sshd_config.d
echo 'PasswordAuthentication no' > /etc/ssh/sshd_config.d/00-no-passwords.conf
sed -i.bak -e '1i PasswordAuthentication no' \
  -e 's/^\(\s*PasswordAuthentication[^y#]*\)yes/\1no/i' \
  /etc/ssh/sshd_config
# 2) upgrade openssh, then restart the running daemon
apk upgrade -U -a
sshd -t && rc-service sshd restart
sshd -T | grep -i passwordauthentication   # expect: passwordauthentication no

The sed line also adds PasswordAuthentication no at the top of sshd_config, which matters on 3.16–3.18: those releases ignore the drop-in directory, and a config with no PasswordAuthentication line would otherwise stay on the default yes. The original file is kept as /etc/ssh/sshd_config.bak.

For containers that run sshd, don't patch in place: rebuild the image on a fixed base, add the explicit setting, and redeploy.

Why version scanners will mislead you

According to Ethiack, Alpine's fixed packages keep older version numbers, so scanners that only compare against 10.6p2 will flag patched Alpine hosts as vulnerable. Alpine's advisory lists the fixed builds:

Alpine branch Fixed openssh package
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

The opposite failure matters too: a host with the right package but an unrestarted sshd still runs the old code. We recommend judging each host on three checks — package release, sshd -T output, and when the sshd process last started — rather than on a scanner's version string.

Check whether anyone already got in

Alpine advises looking in /var/log/messages for sshd lines reading Accepted password for an account that has no password: alpine, root or any key-only user. On exposed machines it also asks you to review doas use and recently created users, files and authorized keys. Its guidance is clear: if you cannot rule out a login, treat the machine as compromised.

# accounts with no password, and accounts with SHA-256/512 hashes
awk -F: '$2=="*" {print $1}' /etc/shadow
awk -F: '$2 ~ /^\$[56]\$/ {print $1}' /etc/shadow
# password logins accepted by sshd
grep 'sshd.*Accepted password for' /var/log/messages

If a host has both lists populated and its logs have rotated away or were never shipped off the box, you can't rule out a login. Our recommendation in that case is to rebuild it rather than clean it.

Plan for patch windows measured in hours

The release notes explain the speed: the OpenSSH team has seen several cases where a bug found by AI tools was later rediscovered independently by another researcher, which suggests attackers who don't report bugs can find them too. As quoted by SecurityWeek, Damien Miller said the team learned of the problem the day before the release and pushed it out as fast as possible because it had observed rapid rediscovery by AI agents, sometimes within hours. Previdian's first observed attempt, under nine hours after the CVE was published, shows how short that window is.

If you want to test your own hosts, be careful with public proof-of-concept code: Previdian warned, via Help Net Security, that the exploits posted on GitHub are unverified and could contain malware.

What we recommend teams change:

  • Know where sshd runs. Keep a list of every image, VM and device that installs openssh-server. That list turns the next advisory into a short query rather than a hunt.
  • Lint for it in CI. Any Dockerfile or IaC template that installs sshd should be required to ship an explicit PasswordAuthentication no.
  • Have a same-day runbook. Patch, restart, verify with sshd -T, and record it — without waiting for a monthly window.

A simple CI gate for images:

docker run --rm --entrypoint sh "$IMAGE" -c '
  command -v sshd >/dev/null || exit 0
  ssh-keygen -A >/dev/null
  sshd -T | grep -qi "^passwordauthentication no"
'

Key takeaways

  • CVE-2026-123158 affects sshd on musl-based Linux without PAM — mainly Alpine — when password authentication is left on, and exploitation attempts were seen within hours of disclosure.
  • Containers that don't run sshd are not affected; focus on Alpine VMs, bastions, SFTP/CI containers and devices.
  • Set PasswordAuthentication no explicitly and confirm with sshd -T; "key-only" by habit isn't enough.
  • Upgrade openssh and restart sshd; the package upgrade alone doesn't protect a running daemon.
  • Don't trust version-only scanners: Alpine's fixed packages keep older version numbers.
  • Check Alpine tiny-cloud images (including VHDs) for the alpine user with passwordless doas, and search logs for Accepted password on passwordless accounts.