sshhole: a narrow bug with a loud name

write-up security openssh threat-model

CVE-2026-123158, “sshhole”, disclosed 5 November 2026, lets an attacker log into a password-disabled SSH account with an over-long password. On the right box that is root with no credential. CVSS 8.1, fixed in OpenSSH 10.6p2.

It is a real bug, and a small one. A name, a logo and a live demo page bought it worm-scale coverage the numbers never backed up. The reaction was the story, not the bug.

the bug

A locked account stores * in /etc/shadow, which is not a valid hash, so nothing should ever match it. On musl, crypt() returns "*" when it fails. sshd compares the two, "*" equals "*", and reads that as a correct password.

A failure value that looks exactly like a stored value. Neat, but it only fires on one specific build-and-config combination, which is where it falls apart as a mass threat. Details in the Ethiack and Brandefense write-ups.

who is actually exposed

Every one of these has to be true at once:

  • musl libc. Alpine, and embedded builds (OpenWrt, Buildroot, Yocto). glibc (Debian, Ubuntu, RHEL) is immune.
  • OpenSSH without PAM. Alpine’s default build.
  • PasswordAuthentication yes.
  • The target account’s shadow field is exactly *, not !. Several early summaries got this wrong.
  • Another local account with a $5$/$6$ hash, for the salt.

Common conditions, thin intersection. And it gets thinner: most Alpine runs in containers that never start sshd, and the rest sits behind NAT, not on port 22.

the numbers

GreyNoise’s tracker since 5 November, benign sources excluded:

  • ~29M port-22 scans
  • ~21M SSH connection attempts
  • 5 possible exploitation attempts
  • 6 IPs with confirmed post-exploitation, all against GreyNoise honeypots

Yes, it is exploited: a public exploit exists, and one attacker dropped a Python C2 agent on a honeypot on 7 November. But look at the scale. A bug that actually goes wide racks up 100k+ compromised hosts. This is 29M scans converting to single digits, all on honeypots. On an internet this size that is nothing. The preconditions are too narrow for mass compromise, and the numbers say so.

The one case that is not trivial is a vulnerable sshd baked into a base image and shipped around, but that is a patch-your-images chore, not a worm.

fix it

ldd /bin/sh 2>&1 | grep -q musl && echo musl   # affected libc?
ssh -V                                          # want 10.6p2+
sshd -T 2>/dev/null | grep -E 'passwordauthentication|usepam'
  • Patch to OpenSSH 10.6p2+ (Alpine has fixed packages).
  • Set PasswordAuthentication no and restart sshd. Closes it regardless of libc, and key-only is standard practice you should be running anyway.
  • Audit base images. Grep Dockerfiles for Alpine installing openssh-server, pin a patched version. Most won’t find a single one.

takeaway

sshhole is real and worth patching if you run musl. But the noise far outran the bug. A branded auth bypass gets worm-scale coverage whether or not the numbers back it up, and with sshhole they don’t.

← all posts