sshole, CVE-2026-123158: "Accepted password" on an account that has no password
sshd-session[2214]: Accepted password for alpine from 203.0.113.7 port 50122 ssh2
That line has no business showing up on an Alpine box. The alpine user on the official cloud images doesn’t have a password. Its /etc/shadow field is *, and it’s meant for key logins only. Same story for root since Alpine 3.16. So when you see “Accepted password” for either of them, somebody walked through a door that had no lock. It wasn’t supposed to have a handle either.
Since Thursday we know how. The bug is called sshole, it’s tracked as CVE-2026-123158, and OpenSSH fixed it in 10.6p2, released on November 5.
What dropped on Thursday
Researcher Özgün Kültekin (Wakefield) published his findings on November 5, the same day OpenSSH 10.6p2 and Alpine’s security advisory went out. The OpenSSH release notes keep it short: the release fixes a password authentication bypass in sshd that affects “some Linux systems” built and run without PAM. Alpine shipped fixed packages that day for every branch from 3.16 (which isn’t even supported anymore) up to edge.
CVSS 3.1 puts it at 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). The AC:H reflects the fairly specific set of conditions you need. We’ll get to them. They’re less exotic than you’d hope. Damien Miller from the OpenSSH team certainly didn’t treat it as exotic. He didn’t mince words: if you’re on a musl system without PAM, turn off password authentication or shut SSH down. Now.
How it works, minus the hype
It takes three old behaviors, each perfectly reasonable on its own.
musl, 2012. When crypt() fails, musl’s C library doesn’t return NULL (which used to crash programs that never checked for it). It returns the string *, which is supposed to never match a real hash. That same year, musl capped passwords fed to the SHA-crypt algorithms ($5$, $6$) at 256 bytes so nobody could use a giant password as a denial-of-service lever. Go over the cap and crypt() fails. Which means it returns *.
Unix, forever. An account with no usable password gets * in its hash field. The convention goes back to BSD.
OpenSSH, 2016. To fix a timing-based username enumeration bug (CVE-2016-6210), sshd hashes the submitted password even when the account has no usable hash, borrowing the salt from some other account on the box. Without PAM, sshd does the comparison itself: hash the input, compare the result to the string in /etc/shadow.
Chain them together. An oversized password makes crypt() fail, so it returns *. The stored field is *. The strings match. sshd logs “Accepted password”.
Two details in the advisory looked arbitrary to me, so I went and read the OpenSSH 10.6p1 source. The 1,024-character upper bound has nothing to do with musl: auth-passwd.c rejects anything longer than MAX_PASSWORD_LEN, which is 1,024. And the “at least one other account with a $5$ or $6$ hash” condition comes from pick_salt() in openbsd-compat/xcrypt.c. That function walks the account list looking for a hash that starts with $ so it can borrow the salt. If it finds none, it falls back to an old DES salt, and DES doesn’t have the length cap. So a box where nobody has a real password isn’t exposed, which Alpine’s advisory confirms.

Not affected: glibc distributions (Debian, Ubuntu, RHEL), setups that go through PAM with UsePAM yes, accounts locked with ! rather than *, Dropbear and OpenBSD. The scariest case comes straight from Alpine’s own advisory. Cloud images for AWS and Azure built with tiny-cloud, from 3.18.11 through 3.24.3, create an alpine user with * and passwordless doas. The moment any other account gets a real password, alpine becomes a way in, and doas hands over root.
Exploited or not? The sources disagree
I want to be careful here, because the headlines aren’t.
On one side, threat intel firm Previdian says it saw a first attempt less than nine hours after the CVE went public. According to Help Net Security, it reported root access on a sensor running a real Alpine install with OpenSSH, from a single IP, followed by id, uname and hostname over non-interactive sessions. Its public page now lists 19 attempts from 12 addresses across four sensors between November 6 and 7.
On the other side, SOC Prime wrote on November 6 that the sources it reviewed reported no confirmed real-world exploitation. And as of Sunday evening, the CVE is not in CISA’s KEV catalog. I checked the JSON feed myself: version 2026.11.06, 1,769 entries.
Those two claims aren’t really at odds. Previdian is counting attempts against its own sensors, not victims; SOC Prime is talking about confirmed compromises of real targets. My read: someone is already spraying this across the internet, and it costs them next to nothing. So I’m treating it as exploited for prioritization purposes, KEV or no KEV. One warning while we’re here. Previdian flags that PoCs posted on GitHub are unverified and may carry malware. Don’t run one on an analyst workstation “just to see”.

What ends up in the logs
The good news: a successful login gets logged like any other. sshd has no idea it was fooled, so it writes the exact line it would write for a real password. The format comes from auth_log() in auth.c: Accepted password for <user> from <ip> port <port> ssh2. On Alpine, with BusyBox syslogd, that goes to /var/log/messages.
The bad news: that’s about it. The password length isn’t recorded anywhere. And a minimal Alpine install has no auditd and no process logging, so the id and uname calls Previdian described leave nothing behind. You get the auth line, plus maybe a doas line. doas writes alpine ran command … as root from … to syslog (authpriv facility) unless the rule says nolog.
There’s also a trap that’s going to cost a lot of teams detections. Since OpenSSH 9.8, authentication messages come from the sshd-session process, not sshd. Alpine 3.21 and later ship OpenSSH 9.9 or newer. Any rule that filters on ProcessName == "sshd" goes blind on those hosts, with no error and no warning. Worth checking your existing SSH rules for that, sshole or not.
The Sigma rule
Across an Alpine fleet, root and alpine are the two * accounts you’ll find everywhere. So I wrote the narrowest rule I could, one that should almost never fire:
title: OpenSSH Password Login Accepted For Root Or Alpine Account
id: 1db35c9d-265e-4c1e-a358-812469c1f2be
status: experimental
description: |
Detects a successful SSH password login for the root or alpine accounts.
On Alpine Linux both accounts ship with "*" in /etc/shadow and are meant for key-based access only,
so a password login for them is unexpected and matches the CVE-2026-123158 (sshole) authentication bypass
on musl-based systems running OpenSSH without PAM.
references:
- https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
- https://www.openssh.org/releasenotes.html
author: Chabnco (PurpleLog)
date: 2026-11-08
tags:
- attack.initial-access
- attack.persistence
- attack.privilege-escalation
- attack.stealth
- attack.t1078.003
- attack.lateral-movement
- attack.t1021.004
- cve.2026-123158
logsource:
product: linux
service: sshd
detection:
keywords:
- 'Accepted password for root from'
- 'Accepted password for alpine from'
condition: keywords
falsepositives:
- Hosts where root or alpine were deliberately given a password and password authentication is allowed
level: high
It’s a keyword rule because sshd logs usually arrive as raw text. It passes sigma check with no errors or warnings, and the Splunk conversion gives you a plain full-text search you’ll want to scope to your Linux indexes and sourcetypes. The Kusto conversion without a pipeline isn’t usable KQL, so for Sentinel I wrote the query by hand (below).

Real false positives do exist: an admin who gave root a password on a test box, say. But on that box the field isn’t * anymore, and that’s exactly the question to ask at triage. What does this account have in /etc/shadow? If the answer is *, it’s not a false positive.
In Sentinel
With the Syslog table you can do better than a hardcoded account list: pull out the user and source IP, and don’t get caught out by sshd-session.
// Password logins for root or alpine, whether logged by sshd or sshd-session
Syslog
| where TimeGenerated > ago(7d)
| where ProcessName in ("sshd", "sshd-session")
| where SyslogMessage startswith "Accepted password for "
| extend User = extract(@"^Accepted password for (\S+) from (\S+) port", 1, SyslogMessage),
SrcIp = extract(@"^Accepted password for (\S+) from (\S+) port", 2, SyslogMessage)
| where User in ("root", "alpine")
| project TimeGenerated, Computer, ProcessName, User, SrcIp, SyslogMessage
If you keep a watchlist of hosts that should only ever take keys, drop the User filter and join on Computer instead. Any password login on those hosts deserves a look, not just root’s.
The second query looks for the obvious next step on cloud images: a password login, then doas by the same user on the same host within fifteen minutes.
let logins = Syslog
| where TimeGenerated > ago(7d)
| where ProcessName in ("sshd", "sshd-session")
| where SyslogMessage startswith "Accepted password for "
| extend User = extract(@"^Accepted password for (\S+) from", 1, SyslogMessage)
| project LoginTime = TimeGenerated, Computer, User, LoginMessage = SyslogMessage;
let elevations = Syslog
| where TimeGenerated > ago(7d)
| where ProcessName == "doas" and SyslogMessage has " ran command "
| extend User = extract(@"^(\S+) ran command", 1, SyslogMessage)
| project DoasTime = TimeGenerated, Computer, User, DoasMessage = SyslogMessage;
logins
| join kind=inner elevations on Computer, User
| where DoasTime between (LoginTime .. LoginTime + 15m)
| project LoginTime, DoasTime, Computer, User, LoginMessage, DoasMessage
Both queries pass Microsoft’s official KQL parser against the Syslog table schema. I also tested the regexes in Python against lines that should match (IPv4 and IPv6) and lines that shouldn’t (publickey, Failed password, invalid user). That proves they’re valid, not that they’ll surface the right events in your tenant. A lot depends on how your collector fills in ProcessName.
What I’m checking Monday morning
Detection is worthless if the affected hosts aren’t shipping logs to the SIEM. That’s what makes sshole sneaky. The Alpine boxes you know about (bastions, appliances) are usually collected. The container someone dropped sshd into “for debugging” usually isn’t. Neither are IoT images on Buildroot or Yocto, or the cloud VM spun up from the official image for a POC two years ago.
The order I’d go in:
- Inventory. Anything musl that listens on SSH. For containers, look for an sshd process inside Alpine-based images rather than trusting image names. For cloud, look at instances launched from the official Alpine images.
- Package version. Not every fix is 10.6p2: Alpine backported the patch to each branch.
- Restart.
apk upgradedoesn’t restart sshd. The old process keeps taking connections with the old code until you bounce it. - Past logs. Run the query above over whatever retention you have before closing the ticket.
| Alpine branch | Fixed openssh version |
|---|---|
| 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 |
On a single host, that boils down to a handful of read-only commands (run as root):
# Installed version, and whether it's the PAM build
apk list -I 2>/dev/null | grep '^openssh-server'
# Effective config is what matters, not what the file says
sshd -T | grep -Ei '^(usepam|passwordauthentication|permitrootlogin) '
# Accounts whose field is exactly "*" (the possible targets)
awk -F: '$2=="*" {print $1}' /etc/shadow
# How many accounts have a real $5$ or $6$ hash (zero = not exploitable)
awk -F: '$2 ~ /^\$[56]\$/ {n++} END {print n+0}' /etc/shadow
# Is sshd still running the old binary? "(deleted)" means yes, restart it
ls -l /proc/$(cat /run/sshd.pid)/exe
I ran both awk lines against a sample shadow file (root and alpine set to *, a bin account locked with !, one user with a $6$ hash). They print root and alpine, then 1. The ! account doesn’t show up, as expected, since it isn’t exposed.
If patching has to wait, Alpine’s workaround is to disable password authentication in a drop-in under /etc/ssh/sshd_config.d/. Watch out for the classic sshd gotcha: the first value read wins. If sshd_config already has PasswordAuthentication yes above the Include line, your drop-in does nothing (which is why the advisory also ships a sed command that fixes existing lines). Always check the result with sshd -T after sshd -t, and keep a session open while you test a fresh key login.
Where I land
For a SOC, this is a friendly bug. It leaves an explicit log line, on accounts you can list ahead of time, and triage comes down to a yes-or-no question: is the account’s field *? Few authentication flaws are this easy to hunt.
What bothers me more is the follow-up question. An Accepted password for alpine line inside a container nobody collects logs from will never trigger anything, however good the rule. How many of your Alpine containers run sshd without the SIEM knowing? If the honest answer is “no idea”, that’s where I’d start.
References
- Alpine Linux, openssh-server password authentication bypass, advisory, November 5, 2026
- OpenSSH, 10.6p2 release notes, November 5, 2026, and 9.8 release notes (the
sshd-sessionsplit) - OpenSSH portable, 10.6p1 source: auth-passwd.c, openbsd-compat/xcrypt.c, auth.c
- Özgün Kültekin, sshhole.com, write-up and timeline
- Help Net Security, OpenSSH flaw exploited in the wild just hours after disclosure, November 6, 2026
- Previdian, CVE-2026-123158
- SOC Prime, CVE-2026-123158: OpenSSH Password Authentication Bypass Affects Alpine Linux
- BleepingComputer, OpenSSH flaw lets attackers log into password-disabled Linux accounts
- CISA, Known Exploited Vulnerabilities Catalog, version 2026.11.06
- OpenDoas, doas.c (syslog message format)
- Microsoft, Syslog table reference