Blog

OpenSSH 'sshole' (CVE-2026-123158): a long password can log you in as an account that has none

TechScripts Nepal · Kathmandu · November 9, 2026 · 6 min read

OpenSSH is the most trusted piece of software on most servers, so a password-authentication bypass in it deserves a careful read. CVE-2026-123158, nicknamed "sshole," is narrower than the headline suggests, but where it applies it is easy to exploit, and attacks were reported within hours of the CVE being published.

Sources used: the OpenSSH 10.6p2 release notes, Alpine Linux's advisory, and Previdian's CVE page and the Help Net Security report on its exploitation data. We could not read the NVD record, so scores below come from Previdian and press reports.

What the flaw is

According to Alpine's advisory, when sshd is built without PAM it checks a password with the C library's crypt() function and compares the result with the stored value in the shadow file. For an account whose stored value is too short to hold a salt, sshd borrows the salt of another account. On musl libc, crypt() returns * as an error marker when the supplied password is over 256 bytes. Accounts with no password also have * in the shadow file, so the "hash" matches, and the login succeeds.

The OpenSSH release notes describe it as a password authentication bypass that affects some Linux systems when sshd is built and run with PAM support disabled, and say the root cause is outside sshd, though sshd can avoid it. The researcher credited in the notes is Özgün Kültekin of Wakefield.

Who is affected

Alpine's advisory, the most detailed source, lists conditions that all have to hold:

  • sshd is built without PAM, or uses PAM with UsePAM no. Alpine's default openssh-server package is built without PAM.
  • PasswordAuthentication is yes, which is the OpenSSH default unless changed.
  • At least one account has * as its password field. That includes root on recent Alpine images, key-only users created without a password, and the default user in some cloud images.
  • At least one other local account has a real $5$ or $6$ password hash.

The attack uses passwords of roughly 257 to 1,024 bytes, according to Alpine. It does not rely on empty passwords. Alpine adds that the bypass takes one connection and works every time, though Previdian scores attack complexity as high.

Not affected, per Alpine: systems with PasswordAuthentication no, accounts locked with !, systems with no $-style hash, and containers that don't run sshd. Systems on glibc, such as Debian, Ubuntu and Fedora, are described as unaffected by the researcher, as quoted by Help Net Security. We could not confirm that against Debian or Ubuntu advisories, so check yours. Help Net Security also names OpenWrt, Buildroot and Yocto as worth checking, again on the researcher's word.

Root login is covered separately: PermitRootLogin prohibit-password is the default, and Alpine says root is reachable only if that is set to yes, or through another account that can become root.

Timeline and exploitation

  • Nov 5: OpenSSH 10.6p2 is released. Alpine publishes its advisory, and patched packages follow for its supported branches.
  • Nov 5, about 15:46 UTC: the CVE is published, per Previdian.
  • Nov 6: the security firm Previdian reports its first observed attempt less than nine hours after publication, and says it confirmed successful root access on a honeypot running real Alpine Linux. That is the firm's own sensor data, not independently verified.
  • Since then: Previdian's page lists 20 attempts from 13 IP addresses across four sensors as of November 9, and says CISA added the flaw to its exploited-vulnerabilities list on November 9. We did not confirm the CISA entry directly.

Several public proof-of-concept repositories exist. Don't run any of them on a machine you care about.

Scores and wording

Previdian gives CVSS 8.1 (High) with high attack complexity, and The Hacker News also reports 8.1. OpenSSH's release notes call the release a "critical security workaround." Those are different things, a score versus a description of the release, but they can read as a conflict. One more catch: Previdian's page lists "OpenBSD" as the vendor, which looks like a labelling error given where the root cause sits.

What to do

  1. Find systems that might be affected: anything musl-based running sshd, including Alpine VMs, embedded and router builds, and container images that run an SSH server. Containers that don't run sshd aren't exposed.
  2. Upgrade. On Alpine, apk upgrade -U -a, then restart sshd, because upgrading the package doesn't restart a running daemon.
  3. Check by package revision, not version string. Alpine's stable branches carry the fix in older upstream versions, so a check for "before 10.6p2" produces false positives there.
  4. If you can't upgrade yet, turn off password logins with PasswordAuthentication no and confirm with sshd -T. Keep your current session open while you test. Damien Miller of OpenSSH, quoted by Help Net Security, said affected systems should do this or disable SSH immediately.
  5. Look for past logins. Alpine suggests searching logs for Accepted password for on accounts that have no password, and reviewing new users, authorized_keys and privileged-command use. If you can't rule out a login, Alpine says to treat the machine as compromised.

Why this is easy to miss

Most teams would say, truthfully, that they don't use password logins on servers. The gaps are the images and appliances that inherited defaults: a minimal container someone added sshd to years ago, a small embedded device, a lab VM that became permanent. Those are rarely on an inventory, and that missing inventory is the real exposure.

At TechScripts Nepal we help teams build that inventory and a routine to keep it current, covering what's running, where it came from and who owns it, so an advisory like this takes an afternoon rather than a week. If you'd like help, one of our engineers can work inside your team on the audit and the fixes (how that works), or you can tell us about your environment. A similar pattern, an exploited flaw in software many teams forgot they ran, shows up in the ServiceNow sandbox escape.