SSHole OpenSSH authentication bypass on Alpine Linux: an oversized password string unlocking an SSH login prompt
Threat Intelligence

SSHole (CVE-2026-123158): OpenSSH Password Bypass on Alpine and musl Linux Is Being Exploited

A password longer than 256 characters logs attackers into passwordless accounts on musl-based Linux, including default Alpine. The fix shipped on November 5, exploitation began within hours and CISA listed it on November 9. Here is how to check your hosts and containers today.

Aprensec Research
November 13, 202613 min read
CVE-2026-123158SSHoleOpenSSHAlpine LinuxmuslCISA KEVAuthentication BypassContainer SecurityPatch Management

What is SSHole (CVE-2026-123158) and what should you do today?

SSHole is a password authentication bypass in OpenSSH's sshd that affects Linux systems built on the musl C library without PAM, which includes the default Alpine Linux OpenSSH package. The OpenSSH project fixed it in OpenSSH 10.6p2 on November 5, 2026. According to Help Net Security, the first exploitation attempt reached a honeypot less than nine hours after the CVE was published, and CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalogue on November 9.

The practical impact: on an affected host, an attacker can log in over SSH to an account that is supposed to have no password, simply by sending a password that is long enough. No stolen credential is needed. If that account has passwordless administrative rights, the attacker reaches root. BleepingComputer reports that GreyNoise saw successful exploitation chains in the wild from November 7.

What to do today, in order: (1) find every host and container image that runs OpenSSH on Alpine or another musl distribution; (2) set PasswordAuthentication no on anything you cannot patch immediately; (3) upgrade to OpenSSH 10.6p2 or your distribution's fixed package and restart sshd; (4) search authentication logs for successful password logins by accounts that should never use a password. The rest of this article explains each step and the evidence behind it.

Am I affected? Systems, configurations and accounts at risk

Not every OpenSSH server is vulnerable. According to Help Net Security's analysis, exploitation needs several conditions to line up at the same time. The table below separates systems that are in scope from those that are not.

Two details matter for inventory work. First, Alpine's default openssh-server package is built this way, and the same report also names OpenWrt, Buildroot, Yocto and some Docker images as musl-based systems. Second, Help Net Security says Alpine tiny-cloud AWS and Azure images from 3.18.11 through 3.24.3 ship a default alpine user with passwordless doas, which turns a login as that user into root indirectly.

ConditionVulnerableNot vulnerable
OpenSSH versionBefore 10.6p210.6p2 or later (with sshd restarted)
C librarymusl (Alpine, OpenWrt, Buildroot, Yocto, some Docker images)glibc (Debian, Ubuntu, Fedora)
PAMsshd built or run without PAMsshd using PAM
Password authenticationEnabled (the OpenSSH default)Disabled with PasswordAuthentication no
Target accountHas * in the password field of /etc/shadow (root, key-only deploy users, LDAP users, default cloud user)Account with a real password hash
Other softwareOpenSSH server on affected buildsDropbear and OpenBSD are reported as not affected

How does the SSHole authentication bypass work?

The bug is the product of two behaviours that are individually reasonable. Help Net Security describes the chain as follows.

Step 1, locked accounts. Accounts that are meant to have no password carry * in the password field of /etc/shadow. That is not a valid password hash, so no password should ever match it.

Step 2, the username enumeration fix. To fix a 2016 username-enumeration issue (CVE-2016-6210), OpenSSH makes sshd do the same hashing work even when the account has no usable hash. It borrows the salt and hash of another local account and hashes the submitted password, so a login attempt for a locked account takes roughly the same time as one for a real account.

Step 3, musl's error value. musl's crypt() rejects SHA-256 and SHA-512 password input longer than 256 bytes and signals failure by returning *. That is exactly the string stored for the locked account. sshd compares the two, sees a match and accepts the login. Per the same report, any password over 256 characters therefore works against an affected account.

The OpenSSH release notes say the maintainers consider the root cause to be outside sshd but that it can be avoided within sshd, and describe the release as a critical security workaround for Linux systems using musl libc with PAM disabled. Cyber Daily quotes ArmorCode's Ramy Rahman describing it as a mismatch between components: an error value from the C library collides with the value the shadow file uses to mean no password. That also explains the odd entry name in CISA's catalogue, "OpenBSD OpenSSH Unexpected Status Code or Return Value", even though OpenBSD itself is not affected.

The researcher who reported it is Özgün Kültekin of Wakefield. Help Net Security says he tested many sshd builds with about 17,600 unusual login attempts and that only the musl build without PAM accepted logins it should have refused. The same article says he used AI agent swarms in the research.

SSHole timeline: from fix to CISA KEV in four days

The window between the patch and active abuse was extremely short. Sources disagree slightly on the first in-the-wild date because they count different things (attempts, successful logins, honeypots versus customer networks), so the table attributes each data point.

The SANS Internet Storm Center data is worth a closer look. Its Cowrie honeypots saw unusually long password strings from November 1, but the diary says some of those were shell commands from buggy brute-force scripts typed into the password field, not SSHole exploits. The first real exploit attempts it identified came on November 5 and used a password made entirely of "A" characters.

Date (2026)EventSource
Nov 5OpenSSH 10.6p2 released; Alpine publishes patched packages for branches 3.16 through edge the same dayOpenSSH release notes, Help Net Security
Nov 5Proof-of-concept exploits appear about four hours after the fix; first exploit attempts seen on SANS honeypotsBleepingComputer, SANS ISC
Nov 6Honeypot long-password events peak at 713 per day on the SANS sensors; botnet and cryptomining use reported by watchTowerSANS ISC, BleepingComputer
Nov 7, 00:46 UTCGreyNoise records the first successful in-the-wild exploitation on its network, about 40 hours after the fixBleepingComputer
Nov 9CISA adds CVE-2026-123158 to KEV; federal deadline November 12CISA bulletin

What are attackers doing after the SSH login?

The public reporting so far shows opportunistic, mostly reconnaissance-focused activity, with at least one implant. BleepingComputer summarises GreyNoise's observations of 16 successful exploitation chains from six source IPs: system and container reconnaissance, queries to cloud metadata services, attempts to read password hashes and root's SSH keys, and attempts to modify authorized_keys for persistence. GreyNoise itself says these figures are not representative of overall SSHole activity.

In one case the attacker gained root and installed TAC Agent, a Python command-and-control implant that supports shell execution, reconnaissance, file upload and download, and self-updates. BleepingComputer says it has no built-in persistence, so the attacker configured a startup service, and that its C2 server (reported as tac[.]vpnla[.]org) could not be reached, so the implant never received a task. The implant's comments, logs and errors are in Chinese. The article presents this as a possible attribution clue alongside other evidence, not as an attribution.

Cyber Daily describes a separate GreyNoise-observed session from a Chinese IP address that checked for a container environment, queried AWS, Azure and Alibaba Cloud metadata services and tried to read root's keys and /etc/shadow through doas, but wrote no files and installed no tools. Previdian, quoted by Help Net Security, confirmed root access on an Alpine honeypot; all eight attempts it saw came from one IP address and ran id, uname and hostname.

The cloud metadata queries are the part that should worry cloud teams. A passwordless user on a cloud instance is only the first hop: instance credentials can turn one weak host into access to other resources.

How do I detect SSHole exploitation in my logs?

Because the attacker authenticates "successfully", classic failed-login alerting will not fire. Detection has to look for successes that should be impossible. The signals below combine the guidance in the sources with straightforward log logic.

Primary check. Help Net Security, citing SOCRadar, recommends searching /var/log/messages for Accepted password for entries naming passwordless accounts such as alpine, root or key-only users. A quick way to build the list of accounts to watch is to print every user whose shadow password field is exactly , for example with awk -F: '$2==""{print $1}' /etc/shadow. Any successful password login by one of those users is suspect. Note that the sources only describe the * value; do not assume other locked-account markers are safe or unsafe without testing.

Follow-on activity. Review doas usage, newly created users, new files in temporary directories and changes to authorized_keys. Cyber Daily's mitigation list from ArmorCode says to treat any host with an unverified login as compromised.

Network and honeypot signals. The SANS diary lists very long password fields near or above 255 characters, passwords made of repeated "A" characters, and password fields containing shell syntax such as wget or curl. Be aware that default Cowrie logging truncates passwords to 255 characters, as SANS notes, and that many ordinary sshd logs do not record the password at all, so you will rarely see the oversized string on a production host. The successful-login anomaly is the more reliable signal.

Implant indicators. From BleepingComputer: TAC Agent files and startup services, unauthorised SSH keys, and the domain tac[.]vpnla[.]org in DNS or proxy logs. Only one IoC domain has been published in the sources I read; absence of it does not clear a host.

SignalWhere to lookMeaning
Accepted password for a * account/var/log/messages (Alpine default syslog), SIEM auth logsLikely SSHole or equivalent bypass; treat as compromise
New or changed authorized_keysHome directories of alpine, root and deploy usersPersistence attempt reported by GreyNoise
Unexpected doas or sudo to read /etc/shadow or root keysdoas and shell history, process auditingCredential harvesting step observed in the wild
Requests to cloud metadata endpoints from a login shellHost process and network telemetryCloud credential discovery
DNS or proxy hits for tac[.]vpnla[.]orgDNS, proxy, firewall logsTAC Agent C2 reported by BleepingComputer
Unknown Python service or startup unitrc-status, init scripts, process listTAC Agent persistence method described by BleepingComputer

filescanner.online

Scan Any File — Privately.

Deep binary analysis, YARA rules, AI summary, and PDF reports. Up to 2 GB. No account required.

PE/ELF Binary ParsingYARA Scanning (17 rules)70+ API Pattern DetectionThreat IntelligenceAI False-Positive AnalysisPDF Report Export
Try FileScanner.online

How do I fix CVE-2026-123158, including containers?

Patch, then restart. Upgrade to OpenSSH 10.6p2 or your distribution's fixed package. Help Net Security stresses that installing the update does not restart the running sshd, so the service must be restarted or the host remains exposed. Alpine released patched packages for branches 3.16 through edge on November 5.

Interim mitigation. If you cannot patch immediately, set PasswordAuthentication no in sshd_config (and reload sshd) or disable SSH on the affected systems. Help Net Security says OpenSSH developer Damien Miller urged this immediately. This is safe for key-only accounts and breaks only users who really log in with passwords.

Containers and images. Alpine is a very common base image. Cyber Daily quotes ArmorCode warning that the flaw could be embedded in many forgotten images, and recommends rebuilding images on a patched base rather than fixing running containers in place. Practically: list images that install openssh or openssh-server on an Alpine base, rebuild them, and redeploy. Most application containers do not run sshd at all, which makes this a short list worth finding.

Confirm exposure first if you are unsure. On a suspect host, ssh -V shows the OpenSSH version and ldd $(command -v sshd) will show whether sshd links against musl. Then check which accounts have * in /etc/shadow. These are generic Linux checks, not steps taken from the vendor advisories.

Reduce the blast radius regardless. Restrict SSH to management networks or a VPN until patched, as ArmorCode advises, keep password authentication off for key-only accounts, and remove passwordless doas or sudo from default cloud users where you can. If a login by a passwordless account cannot be explained, follow the sources and treat the system as compromised: rotate keys and credentials reachable from it and rebuild from a known-good image rather than cleaning in place.

What should I tell non-technical colleagues and management?

The one-sentence version: a flaw in the remote-administration service on some Linux servers lets an attacker get in without a password, it is being used right now, and the fix is available and needs the service to be restarted.

Who is affected in a typical company: mostly servers, containers and appliances built on Alpine Linux or other musl-based systems. Windows desktops, Ubuntu and Debian servers using the standard OpenSSH packages are not in scope according to the reports. If your IT is outsourced, ask the provider three questions in writing: do we run Alpine or musl-based systems with SSH enabled, have they been updated to OpenSSH 10.6p2 or later and restarted, and was a log review for unexplained password logins done since November 5.

What users can do: nothing technical. The one useful behaviour is to report unexpected login alerts or unusual server slowness (cryptomining was one reported use, according to BleepingComputer) rather than ignore them.

Compliance angle for EU and Spanish organisations: a CISA KEV listing is strong evidence that a vulnerability is being exploited, which is the kind of fact incident and risk-management processes under NIS2 expect you to act on and document. Keep a short record of the inventory, the patch date and the log review you performed. Our NIS2 roadmap for Spanish SMEs covers the wider obligations.

What is still unclear about SSHole?

Scale. Nobody has published a reliable count of compromised hosts. GreyNoise's 16 chains and Previdian's 20 attempts from 13 IPs in nine countries are samples from their own sensors. GreyNoise also logged 27.5 million port-22 scans and 20.1 million attempted SSH sessions in the period, which BleepingComputer says are not confirmed SSHole attacks.

Attribution. The Chinese-language strings in TAC Agent and the Chinese source IP in one session are observations, not attribution. CISA, per the eSecurity Planet summary of its notice, did not name the attackers or the number of victims in this batch of KEV additions.

Proof-of-concept code. Help Net Security reports that PoCs are posted on GitHub and that Previdian considers them unverified and possibly booby-trapped. Do not run public exploit code on a production network or workstation to test your own systems. If you must validate, do it in an isolated lab.

Other musl software. The OpenSSH maintainers say the root cause lies outside sshd. The sources I read do not say whether other software that calls crypt() on musl can be affected, so treat that as an open question rather than a finding.

Bigger picture. This is another case of a patch-to-exploit window measured in hours. If you also run Linux servers, our analysis of the Copy Fail kernel flaw covers the same discipline: inventory fast, mitigate before the full patch, and detect abuse from behaviour. SSHole is also a reminder to check forgotten container images, a theme we covered in the TeamPCP supply chain analysis.

Sources

OpenSSH Release Notes, 10.6p2 entry. OpenSSH project, dated 2026-11-05.

Hackers exploit SSHole OpenSSH flaw to breach Linux systems. Bill Toulas, BleepingComputer, 2026-11-09.

OpenSSH flaw exploited in the wild just hours after disclosure (CVE-2026-123158). Help Net Security, 2026-11-06.

Scans for Sshole Vulnerability (CVE-2026-123158). Johannes Ullrich, SANS Internet Storm Center, 2026-11-08.

You're an SSHole: exploitation of OpenSSH vulnerability is speeding up. David Hollingworth, Cyber Daily, 2026-11-10.

CISA Adds Four Known Exploited Vulnerabilities to Catalog. CISA, 2026-11-09.

CISA Adds Four Exploited Flaws to KEV, Sets Nov. 12 Patch Deadline. eSecurity Planet, 2026-11-10.

Related articles