OpenSSH sshole: 40 Hours From Patch to Root

By 6 min read
OpenSSH sshole CVE-2026-123158, the password bypass that lets attackers log in to locked accounts on Alpine and other musl systems

Locking the root account is supposed to make a Linux box safer. On Alpine and other musl-based systems, OpenSSH sshole turned that lock into the way in: an attacker could log in as a locked account with no password at all.

In short: OpenSSH sshole (CVE-2026-123158) is a password authentication bypass in sshd on musl systems without PAM, it is fixed in OpenSSH 10.6p2, and it was exploited within days. If you run Alpine, Yocto, Buildroot or OpenWrt images with OpenSSH, patch and restart sshd now.

What is OpenSSH sshole?

OpenSSH sshole is a flaw in how sshd checks passwords on Linux systems that use the musl C library instead of glibc and do not use PAM. The OpenSSH 10.6p2 release notes describe it as affecting Linux systems built and run with PAM support disabled, and credit Özgün Kültekin of Wakefield with the report.

The name comes from the asterisk. Many systems lock an account by putting a single * in its password field in /etc/shadow. On affected builds, sshd can end up accepting a login to such an account. Brandefense reports a CVSS 3.1 score of 8.1 (High).

Why does a locked account let attackers in?

Medcrypt, which reproduced the bug on a stock Yocto image, traces it to three decisions that were each reasonable on their own:

  • musl’s crypt() signals failure by returning the string * rather than NULL, and it refuses to hash inputs above a length cap.
  • Since a 2016 timing fix, sshd hashes every password attempt, even for locked accounts, so that response times do not reveal which accounts exist.
  • The shadow field of a locked account is also *.

When the hash fails, musl hands back *, sshd compares it with the * in the shadow file, and they match. ysecurity calls it a fail-open path where those decisions meet in one function. Sources disagree slightly on the exact password length that triggers the failure, but they agree an unusually long password does it.

Four-step flow showing how musl's failed hash returns an asterisk that matches a locked shadow field.
Three reasonable decisions combined into a fail-open path, so the asterisk matched the asterisk.

Per Medcrypt, the fix (commit 4353fdc43) rejects shadow fields shorter than four characters before any hashing.

Who is affected by CVE-2026-123158?

All of the following must be true, according to Medcrypt and Alpine’s guidance as summarised by Brandefense:

Condition Why it matters
musl libc, not glibc The bug depends on musl’s crypt() returning *
OpenSSH before 10.6p2 Fixed in 10.6p2 and distro backports
No PAM in the SSH auth path PAM builds take a different path
PasswordAuthentication enabled Key-only servers are not exposed
An account whose shadow field is * On Alpine that includes root by default
At least one other account with a real password hash sshd borrows its salt for the dummy hash

In practice that means:

  • Alpine Linux, whose default openssh-server package is built this way. SOCRadar, quoted by Help Net Security, says Alpine tiny-cloud images 3.18.11 through 3.24.3 ship a default user that can reach root.
  • Embedded and IoT images built with Yocto, Buildroot or OpenWrt that run OpenSSH. Medcrypt warns that many connected medical devices use these images.
  • Containers only if they actually run an SSH server. Containers you reach through docker exec or kubectl are not exposed.

Not affected, per Medcrypt and ysecurity: Ubuntu, Debian, Fedora, Amazon Linux and other glibc systems, PAM-based setups, Dropbear and OpenBSD.

How fast was sshole exploited?

Very fast. The timeline below combines what each source reported:

Date (2026) Event Source
5 November OpenSSH 10.6p2 released; Alpine patches all branches back to 3.16 OpenSSH, Help Net Security
5 November Exploit code public roughly four hours after the fix BleepingComputer
6 November Previdian sees a first attempt under nine hours after CVE publication and confirms root on an Alpine honeypot Help Net Security
7 November, 00:46 UTC GreyNoise records its first successful in-the-wild exploitation, about 40 hours after the fix BleepingComputer
9 November CISA adds CVE-2026-123158 to the KEV catalog CISA
Timeline from the OpenSSH 10.6p2 fix on 5 November to CISA's KEV listing on 9 November.
Exploit code appeared hours after the fix, and CISA listed the flaw four days later.

GreyNoise reported 16 successful exploitation chains against networks it protects, from six source IPs, and stressed these are not representative of all activity. Previdian’s count grew from 8 attempts from one IP on 6 November to 20 attempts from 13 IPs in nine countries by 9 November. Defused described activity as coming from a small number of actors and not widespread.

What attackers did after login, per BleepingComputer and ysecurity: read password hashes and root’s SSH keys, change authorized_keys, install a startup service and drop a Python remote access agent called “TAC Agent” that called out to tac.vpnla[.]org. watchTowr linked other activity to botnets and cryptomining.

This is the same pattern we saw with Drupal Fail2Install and covered in exploit_agent turning patches into exploits: once a fix is public, the window before exploitation is now measured in hours.

How do you detect sshole exploitation?

Start with exposure, then look for signs of use. On Alpine, the relevant log is usually /var/log/messages.

  1. Confirm the system uses musl and check sshd -T for passwordauthentication and usepam.
  2. As root, list accounts whose shadow field is exactly *.
  3. Search auth logs for Accepted password for entries on accounts that should never accept passwords, such as root, alpine or key-only service users.
  4. Check for new users, changed authorized_keys, unfamiliar startup services and recent doas or sudo use.
  5. Look for outbound connections to the indicators the sources published, including tac.vpnla[.]org and 89.116.89[.]18 reported by Previdian. See the GreyNoise and Previdian pages for full lists.

Alpine’s guidance, as quoted by ysecurity, is blunt: if a password login cannot be ruled out, treat the machine as compromised and rebuild it.

What should defenders do?

  • Patch. Upgrade to OpenSSH 10.6p2 or your distribution’s fixed package (apk upgrade openssh on Alpine). Medcrypt advises checking for the fix commit rather than the version string, since backports keep old version numbers.
  • Restart sshd. The running daemon keeps the vulnerable code until it restarts.
  • Turn off password logins. OpenSSH developer Damien Miller told users to set PasswordAuthentication to no or disable SSH on these systems immediately. This closes the bug and is good practice anyway.
  • Do not rely on MaxAuthTries. Medcrypt says a value of 1 blocks the current technique but 2 does not, and calls it a stopgap.
  • Inventory embedded devices. Ask appliance and medical device vendors whether their images ship OpenSSH with password logins.

The catch: what sshole is not

sshole is not a remote root on every Linux server. It needs musl, no PAM, password authentication and a specific mix of account states, which rules out most mainstream server distributions. Sources also disagree on details: the CVE record, as cited by StepSecurity and Brandefense, once marked exploitation as proof of concept only, while CISA, GreyNoise and Previdian report real attacks. Public exploit code on GitHub is unverified, and Previdian warns it could contain malware.

The bottom line

OpenSSH sshole is narrow but nasty: on the systems it affects, a locked root account becomes an open one, and attackers moved within hours of the fix. Patch, restart sshd, disable password logins, and assume compromise where you cannot prove otherwise.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is the OpenSSH sshole vulnerability?

sshole is the nickname for CVE-2026-123158, a flaw in OpenSSH's sshd on Linux systems that use musl libc without PAM. Under the right conditions an attacker can log in to an account whose shadow password field is a single asterisk, which on Alpine includes root, without knowing any password.

Is my Ubuntu or Debian server affected by CVE-2026-123158?

No. Medcrypt and ysecurity both say glibc-based systems such as Ubuntu, Debian, Fedora and Amazon Linux are not affected, and neither are systems that authenticate SSH through PAM. The bug depends on how musl's crypt() reports failure.

Is sshole being exploited in the wild?

Yes. CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalog on 9 November 2026. GreyNoise, as reported by BleepingComputer, recorded 16 successful exploitation chains from six source IPs, and Previdian confirmed root access on an Alpine honeypot.

Which OpenSSH version fixes sshole?

OpenSSH 10.6p2, released on 5 November 2026. Alpine shipped patched packages for every branch from 3.16 to edge the same day. Restart sshd after updating, because the running process keeps the old code.

How do I mitigate sshole if I cannot patch yet?

Set PasswordAuthentication no in sshd_config and reload sshd, which closes the bug according to the OpenSSH developers and Medcrypt. Medcrypt says MaxAuthTries 1 also blocks the current technique but should only be treated as a temporary stopgap.

Keep reading

OpenSSH ssholeCVE-2026-123158OpenSSHAlpine LinuxmuslCISA KEVvulnerability management