Exploited vulnerabilities and patches

SSHole (CVE-2026-123158): When the Locked Account Is the Front Door

IA-00112 min readactively exploitedHighCVE-2026-123158

OpenSSH on musl Linux without PAM accepted any password of 257 to 1024 bytes for accounts that have no password. Alpine is the best-known affected platform. Update OpenSSH and restart sshd, or turn password authentication off.

Disclosure. AI assistance was used to help produce this page. A human reviewed every claim, link, and recommendation before publication.

opensshalpinelinuxmuslauthentication

TL;DR

  • What: OpenSSH’s sshd on Linux systems that use the musl C library without PAM accepted any password between 257 and 1024 bytes for accounts that have no password at all (a * in /etc/shadow). Alpine Linux is the best-known affected platform.
  • Status: Confirmed. Fixed in OpenSSH 10.6p2 (2026-11-05) and in patched Alpine packages back to 3.16. CISA added it to the Known Exploited Vulnerabilities (KEV) catalog on 2026-11-09.
  • Exploited? Yes. CISA lists it as exploited, and GreyNoise reports a successful intrusion against one of its own sensors on 2026-11-07.
  • Do this now: update openssh and restart sshd. If you cannot update today, set PasswordAuthentication no and restart sshd. Either one closes the hole.
  • Then: search your logs for Accepted password for on accounts that should never take a password.
Figure What it measures
8.1 CVSS 3.1 base score (High), published by MITRE in NVD
2 days From the fixed release (2026-11-05) to the first exploitation GreyNoise observed (2026-11-07)
10 Alpine branches with fixed packages, 3.16 through edge

Am I affected?

Alpine’s advisory lists the conditions. A system is affected when all of the following are true:

  • It runs Alpine’s openssh-server package (built without PAM), or openssh-server-pam with UsePAM no.
  • PasswordAuthentication is yes, which is the OpenSSH default unless it was changed.
  • At least one account has * as its password field. On Alpine that includes root (since about 3.16), key-only users created without a password, directory-service users via musl-nscd, and the alpine user in the official tiny-cloud images.
  • At least one other local account has a $5$ or $6$ password hash.

Alpine also lists what is not affected: containers that do not run sshd, systems with PasswordAuthentication no, openssh-server-pam with UsePAM yes, locked accounts marked !, systems with no $-style hash, and cloud images configured through cloud-init (which writes PasswordAuthentication no).

The common assumption is that “Alpine is only for containers, and containers do not run SSH.” The reality is messier: appliance images, embedded devices, homelab boxes, CI runners and “just one debug container” all run sshd on musl more often than anyone admits. The researcher’s site names OpenWrt, Buildroot and Yocto alongside Alpine as musl platforms, and Medcrypt reported reproducing the issue on a stock Yocto image. Whether a given embedded product is exploitable depends on its build; treat that as unconfirmed until the vendor says so.

Root login is partly protected by default. OpenSSH’s default PermitRootLogin prohibit-password blocks password logins to root, but Alpine notes that this does not help if another reachable account can become root, for example through doas.

What happened

A locked door that opens for anyone who pushes hard enough is not a lock. That is roughly what happened here. Accounts that were deliberately set up to never accept a password, such as root on stock Alpine images, key-only deploy users and the default alpine user in some cloud images, accepted any sufficiently long password.

What many teams discover the hard way is that “key-only” is a policy decision, not a property of the account. If password authentication is still switched on at the daemon, the daemon decides what “no password” means. On this specific stack, it decided wrong.

On 2026-11-05 the OpenSSH project released Portable OpenSSH 10.6p2 with what its release notes call “a critical security workaround that affects Linux systems that use the musl libc and PAM disabled.” The bug was reported by a researcher, credited in the OpenSSH release notes. The same day, Alpine Linux published an advisory telling anyone running sshd on Alpine to update and restart, or to disable password logins.

The researcher’s write-up, published at sshhole.com, gave the bug its name and traced its history back to design decisions made in 1980, 2012 and 2016. Exploit code appeared on GitHub the same morning, according to GreyNoise’s timeline. MITRE published CVE-2026-123158 that afternoon, and CISA added it to KEV on 2026-11-09 with a due date of 2026-11-12 for federal civilian agencies.

Time (UTC) Time (US Eastern) Event Source
2026-11-04 21:18 Nov 4, 4:18 PM Fix committed, not yet public GreyNoise timeline
2026-11-05 09:01 Nov 5, 4:01 AM OpenSSH 10.6p2 released, announced on oss-security OpenSSH release notes, oss-security
2026-11-05 Nov 5 Alpine advisory and fixed packages Alpine Linux
2026-11-05 12:19 Nov 5, 7:19 AM Researcher write-up published GreyNoise timeline, sshhole.com
2026-11-05 13:16 Nov 5, 8:16 AM First public exploit code on GitHub GreyNoise timeline
2026-11-05 16:17 Nov 5, 11:17 AM CVE-2026-123158 published to NVD NVD
2026-11-07 10:12 Nov 7, 5:12 AM First commands run on a GreyNoise sensor after an SSHole login GreyNoise
2026-11-09 Nov 9 Added to CISA KEV, due 2026-11-12 CISA KEV
2026-11-09 Nov 9 Medcrypt reports reproducing it on a stock Yocto image oss-security

The failure, in one line: an overlong password makes musl’s crypt() return *, that matches the * stored for an account with no password, and the login succeeds. The three decisions behind that, and the fix, are under Going deeper.

How to protect yourself

Two changes close the hole: a patched sshd, or password authentication turned off. Do one of them, restart the daemon, then look for password logins that should not exist.

Close the hole

These are the individual and homelab steps. They are also the minimum everywhere else.

  1. Run apk upgrade -U -a, then rc-service sshd restart. Upgrading alone does not replace the running daemon.
  2. If you cannot update, set PasswordAuthentication no and restart sshd. Test a new key login before closing your current session. Either the update or this setting closes the hole.
  3. Do not expose SSH to the internet at all if you do not need to. Use a VPN or an overlay network instead.

See if someone already got in

sshd logs the method, account and source address of a successful password login. It never logs the password or its length, so the long password itself is invisible. What is visible is a password login to an account that has no password.

Host check (read-only):

# Which accounts have no password field?
awk -F: '$2=="*" {print $1}' /etc/shadow
# Is password auth on in the effective config?
sshd -T | grep -i '^passwordauthentication'
# Installed package version
apk info -v openssh-server
# Any password logins to accounts that should never take one?
grep 'Accepted password for' /var/log/messages

If you cannot rule out a login, treat the machine as compromised and rebuild it.

Small and mid-sized businesses

  1. Inventory every musl system that runs sshd: Alpine VMs, appliances, CI runners and containers with SSH baked in. Scan images with Trivy or Grype for vulnerable openssh packages.
  2. Patch and restart, or disable password auth, on every one of them. Track completion, not intent.
  3. Run the log search above on each exposed host.
  4. Ask your appliance and embedded vendors in writing whether their products ship musl, OpenSSH without PAM and password auth enabled.

Enterprise

  1. Treat it as a KEV item under your vulnerability SLA and use SSVC to prioritize internet-exposed hosts first.
  2. Enforce PasswordAuthentication no through configuration management as a baseline, not a one-off.
  3. Deploy and tune the correlation detection (failed then accepted password, same PID and source port) and join it to an inventory of * accounts. The public rules are under Going deeper. Test them before you trust them.
  4. Hunt for the GT10 behaviors: new startup services, edited /etc/hosts, new authorized_keys, and doas use on exposed hosts.
  5. Push the question to suppliers through third-party risk: medical, industrial and network devices built on Yocto or Buildroot are the long tail here.

Going deeper

The intended logic

Without PAM, sshd checks a password by hashing the attempt with the C library’s crypt() function and comparing the result to the stored field in /etc/shadow. A stored field of * is not a hash. Nothing should ever hash to it, so the account cannot be entered with a password.

The three decisions that collided

  1. musl’s error value (2012). Instead of returning NULL on failure, musl’s crypt() returns a short failure string. According to the researcher’s history and Alpine’s advisory, that string is *.
  2. musl’s length cap (2012). SHA-512 crypt gets slower as input grows, so musl refuses keys over 256 bytes. Refusal means failure, and failure means *.
  3. sshd borrows a salt (2016 onward). To avoid leaking which usernames exist through timing (CVE-2016-6210), sshd hashes attempts for accounts with no usable salt using another account’s salt. That is why a second account with a real $5$ or $6$ hash is a precondition.

Put together: an overlong password makes crypt() fail, failure returns *, the account’s stored field is *, the comparison matches, and the login succeeds.

The fix

OpenSSH 10.6p2 stops treating a too-short stored field as comparable. The commit (4353fdc) checks for a minimum hash length instead of trusting the library’s failure string. The OpenSSH team describes the root cause as “outside sshd” but fixed it in sshd because that is where it was exploitable. Alpine backported patches to every branch from 3.16 to edge.

Severity, calibrated

Signal Value Source
CVSS 3.1 8.1 High (AV:N/AC:H/PR:N/UI:N) NVD, scored by MITRE
CWE CWE-394 (unexpected status code or return value) NVD
CISA SSVC Exploitation: active; Automatable: no; Technical impact: total NVD (CISA ADP)
KEV Added 2026-11-09, due 2026-11-12 CISA
EPSS 0.955 (99.87th percentile) on 2026-11-22 FIRST EPSS API

The “High complexity” rating reflects the preconditions, not difficulty once they are met. Alpine describes the attack as one connection that “works every time.”

Detection beyond the log line

The host check in How to protect yourself is the read-only starting point. sshd will not show you the password or its length. These are extra detection notes. Treat the community rules as experimental and test them before deploying.

  • Sigma rule for password logins to root and alpine (cipherssecurity.com).
  • Sigma correlation of a failed then accepted password on the same connection (imperum.io).
  • An independent review of public detections, which found one published Sigma rule that cannot fire (spectrumsecurity.work). Read this before trusting any rule.
  • Nuclei template CVE-2026-123158, for authorized testing of systems you own.
  • Google’s open-source scanner added this CVE ID to its OpenSSH auth-bypass detector (GitHub PR #277).

No public YARA rule applies; this is an authentication logic flaw, not a malware family.

Public IOCs (from GreyNoise, cluster GT10). GreyNoise warns that some addresses may be compromised legitimate infrastructure. Use them to hunt, not to attribute.

C2 domain: tac[.]vpnla[.]org
IPs (seed/high confidence): 20.255.63[.]133, 20.2.81[.]241, 152.175.65[.]88, 202.155.94[.]33
IPs (medium confidence): 47.80.65[.]43, 209.248.50[.]17
Behaviors: cat /etc/os-release, check for passwordless doas, C2 pinned in /etc/hosts, startup-service persistence
Client HASSH a2de0f306611e0957be704f5b0e35a82 (Paramiko; common in benign tools, do not alert on it alone)

Lessons

Three lessons stand out:

  • Defaults are policy. PasswordAuthentication yes is the OpenSSH default. A “key-only” account on a daemon that still accepts passwords is a hope, not a control.
  • Error values are security boundaries. A failure string that happens to equal a legitimate stored value is a vulnerability waiting for a caller. This bug needed three reasonable decisions, years apart, to line up.
  • Patch windows are now measured in hours. GreyNoise’s timeline shows public exploit code about four hours after the fixed release, and an observed intrusion two days later.

The OpenSSH release notes add context worth reading in full. The project says it now receives many bug reports found with AI models, and that bugs found by AI tools are being independently rediscovered by other researchers. Its conclusion is that adversaries can likely find the same bugs, so it will ship fixes more often. For defenders, that means more frequent, smaller patch events, and less time between “advisory” and “exploited.”

What remains unconfirmed as of the last update: the full list of embedded products affected, and any attribution of the GT10 cluster. This page will be updated if either changes.

Free tools, trainings, and runbooks

Free training

Open-source tools

Runbooks and methodologies

Sources

Cited and authoritative

  1. OpenSSH 10.6p2 release notes. https://www.openssh.org/releasenotes.html#10.6p2. Used for: fix version, release date, affected configuration, reporter credit, AI-reports context.
  2. Alpine Linux security advisory, 2026-11-05. https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/. Used for: affected and unaffected conditions, fixed package versions, mitigation, detection guidance, root-cause summary.
  3. NVD, CVE-2026-123158. https://nvd.nist.gov/vuln/detail/CVE-2026-123158. Used for: description, CVSS 3.1 score and vector, CWE, CISA SSVC values, publication time.
  4. CISA KEV catalog entry. https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-123158. Used for: exploited status, date added, due date.
  5. OpenSSH fix commit 4353fdc. https://github.com/openssh/openssh-portable/commit/4353fdc43ef646c43a8dda7025cc1a898caf1482. Used for: how the fix works.
  6. oss-security disclosure thread. https://www.openwall.com/lists/oss-security/2026/11/05/3. Used for: public disclosure, mitigation statement.
  7. GreyNoise SSHole event page. https://sshole.events.greynoise.io/. Used for: timeline, observed exploitation, IOCs, attacker behaviors.
  8. Researcher write-up. https://sshhole.com. Used for: history of the musl and sshd decisions, affected musl platforms.
  9. FIRST EPSS API. https://api.first.org/data/v1/epss?cve=CVE-2026-123158. Used for: EPSS score.
  10. CVE record. https://www.cve.org/CVERecord?id=CVE-2026-123158. Used for: CVE ID confirmation.

Research and inspiration

The original notes group these as research and inspiration. They are not the record. Descriptions below are the ones the notes already gave them.

  1. Medcrypt on oss-security (Yocto reproduction): https://www.openwall.com/lists/oss-security/2026/11/09/27
  2. Medcrypt write-up: https://www.medcrypt.com/blogs/asterisk-hole-cve-2026-123158-when-a-locked-account-is-the-way-in
  3. Cipherssecurity, check, patch, detect: https://cipherssecurity.com/openssh-sshole-cve-2026-123158/
  4. Imperum, detection as code: https://www.imperum.io/blog/openssh-password-bypass-detection-as-code
  5. Spectrum Security, review of public detections: https://www.spectrumsecurity.work/blog/can-i-detect-sshole
  6. Shadow Corp analysis: https://sh4dowcorp.com/blog/sshole-openssh-alpine-bypass
  7. Nuclei template: https://github.com/projectdiscovery/nuclei-templates/blob/main/code/cves/2026/CVE-2026-123158.yaml
  8. Google open-source scanner PR #277: https://github.com/google/goonami-scanner/pull/277
  9. Hacker News discussion: https://news.ycombinator.com/item?id=50377976
  10. Coolify hardening discussion: https://github.com/coollabsio/coolify/discussions/12484
  11. panubo/docker-sshd issue #93: https://github.com/panubo/docker-sshd/issues/93

Corrections log

No factual corrections yet. The row below records publication.

Date Change Reason
2026-11-22 Page created Initial publication

About this page

This analysis incorporates AI-assisted source gathering, timeline cross-referencing and claim checking against primary records. A human security practitioner reviewed every claim, every link and every recommendation before publication.

This analysis was produced under the Intelligence Adjacent research protocol. AI assistance was used to help find sources, cross-check timelines and validate technical details against vendor advisories, NVD and CISA. All conclusions and recommendations are the responsibility of the human author. The companion video uses an AI-generated narration voice and is labeled as altered or synthetic content on YouTube.

Spot an error? Email hello@intelligenceadjacent.com or open an issue on this repository. It will be fixed and logged above.