SSH Vulnerability Found in the OpenSSH Stack: What to Do

SSH Vulnerability Found in the OpenSSH Stack: What to Do

A flaw in OpenSSH let attackers log in to some Linux servers without knowing the password, simply by sending a password that was long enough. The bug, nicknamed SSHole and tracked as CVE-2026-123158, was fixed in OpenSSH 10.6p2 on 5 November 2026, but researchers recorded successful attacks in the wild within days, and the US cybersecurity agency CISA added it to its Known Exploited Vulnerabilities catalogue on 9 November 2026.

The flaw is narrow: it only affects servers running on the musl C library without PAM, the pluggable authentication modules framework. That combination is the default for Alpine Linux, the lightweight distribution that powers a huge number of containers and cloud images. Most Ubuntu, Debian and Red Hat servers are not affected, because they build OpenSSH against glibc with PAM enabled.

For anyone running containers, the practical question is not whether the bug is exotic. It is whether any of your images run Alpine with password logins still switched on, because that is the exact combination attackers are now scanning for.

Key takeaways

  • CVE-2026-123158, nicknamed SSHole, is a password authentication bypass in OpenSSH’s sshd, rated High with a CVSS score of 8.1.
  • It affects Linux systems built on musl libc without PAM, including the default Alpine Linux OpenSSH package; glibc systems with PAM are not affected.
  • An attacker who can reach the SSH port can log in to an account whose password field is set to *, using a password of 256 to 1,024 characters.
  • OpenSSH fixed it in version 10.6p2 on 5 November 2026; exploit code appeared about four hours later, and GreyNoise recorded the first successful exploitation on 7 November.
  • CISA added the flaw to its Known Exploited Vulnerabilities catalogue on 9 November, with a federal patch deadline of 12 November.

What happened: a password that matched nothing

The bug was reported by security researcher Özgün Kültekin of Wakefield and disclosed on the oss-security mailing list on 5 November 2026, the same day OpenSSH released version 10.6p2. The release notes describe a critical security workaround affecting Linux systems that use the musl libc with PAM disabled, and credit Kültekin with the report. OpenSSH’s maintainers said they consider the root cause to lie outside sshd, but that the bug is exploitable through sshd and can be avoided there.

The mechanism is a chain of three behaviours, each reasonable on its own. First, accounts that are meant to have no password carry an asterisk in the password field of the system’s shadow file. That asterisk is supposed to mean no password can ever match. Second, to fix a 2016 username-enumeration flaw, OpenSSH makes sshd do the same hashing work even for accounts with no usable hash, so that timing does not reveal whether an account exists. Third, musl’s crypt function rejects password input longer than 256 bytes and signals the failure by returning an asterisk.

Put together, the result is a match where there should never be one. An attacker sends a password of 256 to 1,024 characters; musl’s crypt fails and returns *; sshd compares that * with the * stored in the password field and concludes the password is correct. The National Vulnerability Database entry, published on 5 November, states that for some account configurations any password between 256 and 1,024 characters succeeds. The basics of key-based login are covered in our guide on SSH keys in plain language, which is the setup this bug bypasses.

Who is affected and who is not

Three conditions must all be true for a server to be vulnerable. The SSH server must run on musl libc rather than glibc. It must run without PAM. And it must have an account whose password field is *, alongside at least one other account with a real password hash. If any one of those is false, the bug does not apply.

A server rack with a glowing padlock hologram above a terminal showing a long password field
On an affected host, a password of 256 to 1,024 characters could match an account that was meant to have no password at all.

Alpine Linux is the named example, and it is a big one. Alpine’s plain openssh-server package is built without PAM, and its base images have carried a root account with a * password field since about version 3.16. The same applies to key-only users created without a password and to users coming from a directory service through musl-nscd. Other musl-based systems named in reporting include OpenWrt, Buildroot, Yocto and some Docker images.

By contrast, Ubuntu, Debian and Red Hat Enterprise Linux build sshd against glibc with PAM, so they fall outside the CVE’s stated scope. Debian’s security tracker still marked some of its own packages as vulnerable in its listings, which caused confusion, but the CVE text limits the bug to musl without PAM. Alpine patched every listed branch on 5 November 2026, with fixed versions including 10.6_p2-r0 on edge and 10.3_p1-r2 on the 3.24 branch. If you manage servers, our guide to 10 Linux server security practices that actually work covers the hardening steps that matter most alongside patching.

Exploitation in the wild

The window between disclosure and attack was short. Help Net Security reported that the first exploitation attempt reached a honeypot less than nine hours after the CVE was published, and exploit code became available roughly four hours after the fix. Threat intelligence firm GreyNoise recorded the first successful exploitation in the wild on 7 November at 00:46 UTC, about 40 hours after the fix, and logged 16 successful exploitation chains from six source IP addresses.

In the attacks GreyNoise observed, the intruder ran system and container reconnaissance, queried cloud metadata services, tried to read password hashes and root SSH keys, and attempted to modify SSH authorised_keys files to keep access. One attacker gained root privileges and installed TAC Agent, a Python command-and-control agent, though the implant could not reach its command-and-control server and never received a task. GreyNoise noted that the implant’s comments, logs and errors were in Chinese, which may be used with other evidence to determine the attacker’s origin.

CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalogue on 9 November 2026, alongside three other flaws, with a federal due date of 12 November. The catalogue entry is marked for forensic triage, which means agencies are expected to check whether a system was compromised, not only patch it. BleepingComputer reported that multiple cybersecurity firms had confirmed the attacks, and that exploitation attempts began on 5 November, the day proof-of-concept code became available, with successful exploitation recorded the following day.

The caveats that matter

The most important caveat is scope. Headlines about an OpenSSH password bypass sound universal; this one is not. A standard Ubuntu, Debian or RHEL server is outside the CVE’s scope, and the bug cannot touch accounts that have a real password hash. It only opens accounts that were deliberately set up to have no password at all, which is why the practical risk concentrates in containers and appliances built on Alpine.

SSHole vulnerability at a glance
Detail What is known
CVE CVE-2026-123158, nicknamed SSHole, CVSS 3.1 score 8.1, rated High
Disclosed 5 November 2026, by Özgün Kültekin of Wakefield, via the oss-security list
Fixed in OpenSSH 10.6p2, released 5 November 2026; Alpine patched all branches the same day
Affected Linux systems on musl libc without PAM, including default Alpine openssh-server
Not affected glibc systems, PAM setups, Dropbear and OpenBSD
Exploitation First successful exploitation recorded 7 November 2026 by GreyNoise; 16 chains from six IPs
CISA action Added to Known Exploited Vulnerabilities on 9 November; federal deadline 12 November
Trigger Password of 256 to 1,024 characters against an account whose password field is *

There is also a reporting wrinkle worth noting. Some trackers and advisories disagree about which distributions are affected, and Debian’s tracker marked packages that the CVE text says are out of scope. The safest reading is the CVE text itself: musl without PAM. If you run Alpine or another musl distribution, assume you are in scope until you have checked; if you run a glibc distribution with PAM, the CVE does not apply to you, though keeping SSH patched is still basic hygiene.

Checklist: what to do today

Use these checks in order, starting with the fastest protection.

  • Find every host and container image running OpenSSH on Alpine or another musl distribution.
  • On anything you cannot patch immediately, set PasswordAuthentication no, which closes the hole at once.
  • Upgrade to OpenSSH 10.6p2 or your distribution’s fixed package, then restart sshd so the fix takes effect.
  • Search authentication logs for successful password logins by accounts that should never use a password.
  • Check authorised_keys files for entries you did not add, and review cloud metadata access in the same window.
  • Move to key-only SSH everywhere: our practical walkthrough of ssh-keygen and Ed25519 setup shows the setup that removes passwords from the equation entirely.

Frequently asked questions

Am I affected if I run Ubuntu or Debian?

No, under the CVE’s stated scope. Ubuntu and Debian build sshd against glibc with PAM, and the bug requires musl libc without PAM. The confusion came from tracker listings; the CVE text is the authority.

What makes Alpine different?

Alpine uses musl instead of glibc, and its default openssh-server package is built without PAM. Its base images also carry a root account whose password field is *, which is one of the three conditions the bug needs.

Can the bug give an attacker root?

Yes, where the compromised account has passwordless administrative privileges. In GreyNoise’s observations, one attacker gained root and installed a command-and-control agent, though it never connected to its server.

How do I check whether I was hit?

Search your authentication logs for successful password logins by accounts that should never log in with a password, especially root and key-only users. CISA’s listing is marked for forensic triage, meaning checking for compromise is part of the response.

Is turning off password logins enough?

Yes, as an immediate mitigation. With PasswordAuthentication no, the bypass has nothing to exploit. Patching to 10.6p2 and restarting sshd is still the proper fix.

Why did the fix take the form of a workaround?

OpenSSH’s maintainers consider the root cause to be in musl’s crypt function, outside sshd. The 10.6p2 change makes sshd refuse to compare against a stored password field shorter than four characters, which blocks the mismatch at the sshd level.

The bottom line

SSHole is a reminder that the most dangerous bugs are often the ones made of reasonable parts. A password field that means “no password”, a timing fix from 2016, and a library function that reports failure with an asterisk combined into a login that should never have worked. The fix is available, the scope is narrow, and the mitigation is one line of configuration.

What to watch next is how far the exploitation spreads beyond the first GreyNoise observations. Container images are rebuilt slowly and Alpine is everywhere, so unpatched images will remain in circulation for months. If you run containers, audit your images now, because the scanners already are.

Note: Technical details in this article come from OpenSSH’s 10.6p2 release notes, the National Vulnerability Database entry, Alpine’s advisory, CISA’s catalogue listing and reporting by BleepingComputer, Help Net Security and GreyNoise. Distribution tracker listings disagree in places; the CVE text defines the scope.

on this page