sshhole: 15 Sources, 300-Character Passwords and the alpine User
A musl crypt() quirk lets OpenSSH on Alpine accept any 257 to 1,024 byte password for locked accounts. Our honeypot saw the first probe the day it was disclosed and 15 sources in the next 12 days. Most went for the alpine user.
The first probe tried the account root can't protect
OpenSSH 10.6p2 and Alpine's security advisory both shipped on 5 November 2026, and the CVE record was published at 15:46 UTC. Three hours later, at 18:44:40 UTC, a client logged into our honeypot as alpine with a password of 300 As. Within five seconds it checked who it was, confirmed the box was Alpine, and looked for doas.
That's the right account to try. Root on Alpine is also exposed to this bug, but OpenSSH's default PermitRootLogin prohibit-password refuses password logins for root anyway. The alpine user on Alpine's official cloud images has no such guard, and it has passwordless doas. Getting in as alpine means getting root.
Fourteen more sources followed over the next 12 days. CISA added the bug to its Known Exploited Vulnerabilities catalog on 9 November as CVE-2026-123158.
This post covers what was disclosed, what those 15 sources sent, and how to hunt for exposure, attempts and success.
What was disclosed
| sshhole | |
|---|---|
| Reported by | Özgün Kültekin, Wakefield |
| Fixed by | Damien Miller and Darren Tucker (OpenSSH); packages by Natanael Copa (Alpine) |
| CVE | CVE-2026-123158, published 5 November 2026, 15:46 UTC |
| CVSS 3.1 | 8.1 high, AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (MITRE as CNA; NVD agrees) |
| CISA SSVC | Exploitation: active · Automatable: no · Technical impact: total |
| CISA KEV | Added 9 November 2026 |
| Upstream fix | OpenSSH 10.6p2, 5 November 2026 |
| Distribution advisory | Alpine Linux, 5 November 2026 |
| Root cause | musl's crypt() returns the string * as an error when the key is longer than 256 bytes |
| Attacker input | A password of 257 to 1,024 bytes |
How it works, in plain terms. In a Linux shadow file, * in the password field means "no password can match this account". It's how distributions mark key-only and system accounts. musl's crypt() has a length limit added for denial-of-service protection: past 256 bytes it gives up and returns * as an error value. sshd built without PAM hashes the password the client sent and compares the result with the shadow field. A long password hashes to *, the account's field is *, and the two match.
OpenSSH's release notes put it carefully: "We consider the root cause of this bug to be outside sshd, but it is exploitable via sshd and can be avoided there."
Who is affected. Per Alpine's advisory, all of these must be true:
- sshd is the
openssh-serverpackage, which is built without PAM, oropenssh-server-pamwithUsePAM no. PasswordAuthenticationisyes. That's the OpenSSH default.- At least one local account has a
$5$or$6$password hash.
The accounts it reaches are the ones with * in the password field:
alpineon the official tiny-cloud images (qcow2, VHD, AMI) from 3.18.11 through 3.24.3. It ships with*and passwordlessdoas. The images are safe on first boot and become exploitable once any$6$hash exists on the machine.root, which ships asroot:*since about Alpine 3.16. It's only reachable ifPermitRootLogin yesis set.- Key-only deploy users, and directory-mapped accounts, per the researcher's write-up.
Images configured by cloud-init are not affected: cloud-init writes PasswordAuthentication no.
Fixed packages. Alpine backported the fix to every branch back to 3.16, so the fixed version depends on the branch. Checking for "OpenSSH below 10.6p2" will flag patched hosts.
| Alpine branch | Fixed openssh |
|---|---|
| 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 |
Alpine 3.21.10, 3.22.8, 3.23.8 and 3.24.4 include the fixed package. Other musl systems, such as OpenWrt builds that use OpenSSH without PAM, depend on their own maintainers.
What our honeypot saw
Our sensor's SSH service was a low-interaction honeypot that accepts any password and answers with a simulated shell. It doesn't run OpenSSH or musl, so nothing on it is exploitable. What it records is the password a client sends and what the client does once it thinks the login worked.
We started tagging SSH passwords over 256 bytes at 16:09 UTC on 5 November. No earlier one appears in the sensor's raw log. Between then and 23 November, 15 sources sent 31 of them. Two more sources sent long random strings as both user name and password with no client banner; those look like generic fuzzing, and we've left them out.
| Source | First seen (UTC) | Accounts | Password | Client | Commands |
|---|---|---|---|---|---|
| 1 | 5 Nov 18:44:40 | alpine | 300 × A | paramiko 5.0 | 3 |
| 2 | 6 Nov 13:41:11 | alpine | 300 × A, 300 × a | OpenSSH 10.2 (Ubuntu), paramiko 5.1 | 107 |
| 3 | 6 Nov 14:55:28 | root | 257 and 261 × A | Go | 0 |
| 4 | 6 Nov 16:51:40 | root | 300 × A | paramiko 5.1 | 1 |
| 5 | 6 Nov 18:52:11 | root, alpine | 300 × A | paramiko 5.1 | 62 |
| 6 | 6 Nov 19:45:48 | alpine, root | 264 random letters | Go | 0 |
| 7 | 6 Nov 22:16:56 | alpine | 300 × A | paramiko 5.0 | 19 |
| 8 | 6 Nov 22:28:47 | alpine | 264 random letters | OpenSSH 10.6 | 1 |
| 9 | 7 Nov 08:24:05 | alpine, root | 260 × 1 | Go | 70 |
| 10 | 9 Nov 02:05:57 | root | 300 × A, 1,030 × B | paramiko 5.0 | 4 |
| 11 | 9 Nov 07:08:19 | root, alpine | 300 × A | paramiko 5.1 | 2 |
| 12 | 10 Nov 00:28:24 | root | 513 random characters | paramiko 5.0 | 0 |
| 13 | 14 Nov 23:15:42 | alpine, root | 342 × * | Go | 15 |
| 14 | 16 Nov 16:49:38 | root | 314 × A | OpenSSH 7.4 | 0 |
| 15 | 17 Nov 13:18:35 | six, including alpine, ec2-user, nginx, postgres | 300 × A | paramiko 5.1 | 8 |
"Commands" counts every command the source sent the sensor over SSH in the period, not only in the session that used the long password.
alpine. Hollow: root only.Source 1 wrote the playbook. Read in order, its first four actions are a complete check of this bug:
| Time (UTC) | Source 1 sent |
|---|---|
| 18:44:40 | Login as alpine, password 300 × A |
| 18:44:43 | id; whoami |
| 18:44:44 | cat /etc/os-release 2>/dev/null | head -4 |
| 18:44:45 | which doas sudo 2>/dev/null; cat /etc/doas.conf 2>/dev/null |
| 19:27:27 to 19:27:36 | test123 against root, alpine, admin, deploy, user, git, operator, app, one per second |
Get in as the account the advisory names, confirm the uid, confirm it's Alpine, then confirm the route to root. The commands came about a second apart and didn't depend on what the shell answered, so this was a script.
What the 15 have in common.
- Eight arrived within 30 hours of disclosure, seven of them on 6 November. After 10 November the rate dropped to one every few days, and the last was on 17 November.
- Ten tried
alpine, the account the bug really reaches. Eleven triedroot, which the defaultPermitRootLogin prohibit-passwordrefuses for any password. - Twelve used one repeated character, mostly 300 ×
A, the obvious proof-of-concept shape. Three used random strings of 264 to 513 characters, which a filter for repeated characters would miss. - Most were quick scripts. Nine used Python's paramiko library and four used Go's SSH client. Three connected with a stock OpenSSH client.
- Some tested the limits. Source 3 sent 257 characters, one past the threshold, and source 10 sent 1,030, just past the 1,024-byte top of the working range.
- The sources that stayed went for the host, not just root. Source 2 read
/etc/shadow, the effective sshd settings,doasrules and listening ports across 107 commands. Source 7 looked for Docker containers, nginx configuration and web roots.
What this does and does not show. These are attempts against a sensor that accepts any password, so every login "worked" and none of it was real exploitation. Fifteen sources on one sensor is a floor, not a rate; GreyNoise and others have reported successful exploitation chains on their own sensors from 7 November. For scale, our sensor saw password logins from 1,803 SSH sources in the same period, so long passwords came from under 1% of them. Our SSH service switched to a different honeypot on 23 November; everything above was recorded before the switch.
What to do this week
- Update
opensshto the fixed package for your branch (apk upgrade -U -a), then restart sshd (rc-service sshd restart). Restarting matters: the old binary keeps running until you do. - If you can't update yet, turn off password logins. Set
PasswordAuthentication no, check everyMatchblock, then confirm withsshd -T | grep -i passwordauthentication. - Find the Alpine you didn't know about. That means container images built
FROM alpinethat installopenssh, appliances, and anything launched from a tiny-cloud image. - Check for a successful login, not just a vulnerable package. Alpine's advice: if you can't rule out a login, treat the machine as compromised.
Hunts
Hunt in three passes: am I exposed, am I being attacked, and did it work. The password is inside the encrypted SSH session, so network sensors can't see its length. Detection has to come from the SSH server's own logs, from host telemetry, or from something that sees the plaintext password, like a honeypot.
These are starting points that will need adjusting to your environment. Field names were checked against Splunk's Common Information Model reference and Microsoft's Defender XDR and Azure Monitor schema references. Run the Defender queries in Defender XDR Advanced Hunting: the vulnerability tables aren't ingested into Sentinel, and Sentinel names the time column TimeGenerated rather than Timestamp.
1. Am I exposed?
- H1, inventory and config: Alpine hosts and images with
opensshbelow the fixed version for their branch, password authentication on, and an account with*in shadow next to one with a real hash.
On each host:
cat /etc/alpine-release
apk info -v openssh-server openssh-server-pam 2>/dev/null # compare with the table above
sshd -T | grep -Ei '^(passwordauthentication|usepam|permitrootlogin) '
awk -F: '$2=="*"{print "reachable:", $1} $2 ~ /^\$[56]\$/{print "hash present:", $1}' /etc/shadow
The host is exposed if the package is unfixed, passwordauthentication yes is set, usepam no applies, and the last command prints both a "reachable" and a "hash present" line.
In your repositories: images that put sshd on Alpine.
grep -rlE '^FROM\s+alpine' --include='Dockerfile*' . | xargs grep -l openssh
Installed packages (KQL, Defender XDR Advanced Hunting): only useful where Defender inventories your Alpine hosts.
DeviceTvmSoftwareInventory
| where SoftwareName has "openssh"
| join kind=inner (DeviceInfo | summarize arg_max(Timestamp, OSDistribution) by DeviceId) on DeviceId
| where OSDistribution has "alpine"
| project DeviceName, SoftwareName, SoftwareVersion, OSDistribution
Once Defender maps it, DeviceTvmSoftwareVulnerabilities | where CveId == "CVE-2026-123158" gives the same answer directly. Use Alpine's per-branch fixed versions: a version below 10.6p2 is not proof of exposure.
2. Am I being attacked?
- H2, sshd logs:
Accepted password foran account that has no password, or for any account on a host that should be key-only. On an unpatched Alpine host, treat it as a hit until you rule it out. - H3, plaintext visibility: a password longer than 256 bytes. Only a honeypot, PAM module or authentication broker can see this. Benign clients essentially never send one.
H2 (Splunk): CIM Authentication rarely records the method, so read sshd's own line.
<your sshd logs> "Accepted password for"
| rex "Accepted (?<auth_method>\S+) for (?<user>\S+) from (?<src>\S+) port"
| lookup key_only_hosts host OUTPUT key_only
| where key_only="true" OR user IN ("alpine", "root")
| stats count min(_time) as first_seen values(src) as src by host user auth_method
H2 (KQL, Sentinel Syslog):
Syslog
| where TimeGenerated > ago(7d) and ProcessName == "sshd"
| where SyslogMessage startswith "Accepted password for"
| parse SyslogMessage with "Accepted password for " User " from " SrcIp " port " *
| summarize Count = count(), FirstSeen = min(TimeGenerated), Sources = make_set(SrcIp, 20) by Computer, User
Alpine logs to /var/log/messages through busybox syslog by default, which stays on the host. Ship it before you need it.
3. Did it work?
- H4, process events: within a minute of a password login,
id,whoami,cat /etc/os-release,which doasor a read of/etc/doas.conf. That's the sequence we observed. - H5, persistence: changes to
~alpine/.ssh/authorized_keys,/etc/doas.confor/etc/doas.d/,/etc/shadow, or new users.
H4 (Splunk, CIM Endpoint):
| tstats summariesonly=true count values(Processes.process) as command_lines
from datamodel=Endpoint.Processes
where (Processes.process="*doas*" OR Processes.process="*/etc/os-release*")
by _time span=1m Processes.dest Processes.user Processes.parent_process_name
| rename Processes.* as *
H4 (KQL, Defender XDR Advanced Hunting):
DeviceProcessEvents
| where Timestamp > ago(7d)
| where InitiatingProcessParentFileName == "sshd"
| where ProcessCommandLine has_any ("doas", "/etc/os-release", "doas.conf")
| summarize CommandLines = make_set(ProcessCommandLine, 20), FirstSeen = min(Timestamp) by DeviceName, AccountName
Tuning and prerequisites
| Hunt | Needs | Expect first | Cut the noise | If you lack the data |
|---|---|---|---|---|
| H1 | Inventory that covers Alpine and container images | Dev images that install sshd but never start it | Flag images whose entrypoint starts sshd | Run the shell checks on every Alpine host with port 22 open |
| H2 | sshd logs shipped centrally | Legitimate password users on mixed hosts | Scope to hosts declared key-only | Turn off password auth instead; it's the mitigation anyway |
| H3 | A honeypot or PAM-level visibility | Essentially nothing benign | None needed | Skip it; H2 covers real hosts |
| H4, H5 | EDR or auditd on Alpine | Configuration management reading /etc/os-release | Allowlist CM accounts; require a password login in the prior minute | auditd rules on /etc/doas*, /etc/shadow and authorized_keys |
Sources and data qualification
| Claim in this post | Source | Confidence |
|---|---|---|
Root cause, affected conditions, fixed packages, alpine user and doas, cloud-init exception, credits | Alpine security advisory, 5 Nov 2026 | High: distribution advisory |
| 10.6p2 release date, "outside sshd" quote, reporter credit | OpenSSH release notes | High: upstream |
Key-only deploy and directory users as targets; musl's KEY_MAX 256 history | sshhole.com | Medium: researcher's own account |
| CVE number and publication time, CVSS 8.1, CISA SSVC, KEV listing on 9 Nov | CVE record, NVD, retrieved 23 Nov 2026 | High: primary record |
| Exploitation reported within hours of disclosure | Help Net Security, BleepingComputer | Medium: press reports |
| GreyNoise exploitation chains from 7 Nov | Neoteo on GreyNoise | Medium: secondary report; counts differ between reports |
| 15 sources, 31 long-password logins, 5 to 23 Nov | Our honeypot's raw log, 5 to 23 Nov 2026; our own validation login and two random-credential fuzzers excluded | High for what the sensor saw; one sensor, one region |
| Scripted checks rather than people; intent of the follow-up commands | Our interpretation of timing, clients and command order | Medium: inferred |
Source IP addresses from our sensor are withheld; sources are numbered in order of first contact.
The lesson repeats from every "locked account" bug: a marker that means "no password" is only as strong as every code path that reads it. Update, turn off password logins on anything that doesn't need them, and look for an Accepted password line you can't explain.