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.
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 execorkubectlare 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 |
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.
- Confirm the system uses musl and check
sshd -Tforpasswordauthenticationandusepam. - As root, list accounts whose shadow field is exactly
*. - Search auth logs for
Accepted password forentries on accounts that should never accept passwords, such as root,alpineor key-only service users. - Check for new users, changed
authorized_keys, unfamiliar startup services and recentdoasorsudouse. - Look for outbound connections to the indicators the sources published, including
tac.vpnla[.]organd89.116.89[.]18reported 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 opensshon 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
- OpenSSH release notes (10.6p2)
- CISA: Adds Four Known Exploited Vulnerabilities to Catalog (9 November 2026)
- BleepingComputer: Hackers exploit SSHole OpenSSH flaw to breach Linux systems
- Help Net Security: OpenSSH sshole exploitation
- Medcrypt: When a locked account is the way in
- ysecurity: sshole, the OpenSSH bug explained
- Brandefense: OpenSSH sshole, update to 10.6p2
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.