SSHole. Can this star be trusted? Or CVE-2026–123158
A flaw in OpenSSH combined with a musl libc crypt() error lets a remote attacker bypass authentication for passwordless accounts by sending a password of 257 to 1024 bytes, which is hashed to an asterisk that matches the asterisk in /etc/shadow. Attackers could gain root access without a password, and public exploits led to attacks within hours.
medium.com
Published on medium.com
Ssh
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
In early November 2026 a critical vulnerability nicknamed "SSHole" was found in OpenSSH and patched shortly afterwards. It lets a remote attacker bypass authentication and reach a system, including with root privileges, without knowing a password. Because it is easy to exploit and public exploits appeared quickly, attacks started within hours of disclosure.
The flaw comes from the interaction of three factors: passwordless accounts marked with * in /etc/shadow, a musl crypt() error that returns * for over-long passwords, and OpenSSH comparing the two.

Setup
The report describes the conditions rather than a lab build:
- A target running OpenSSH where musl's
crypt()is involved in password hashing. - At least one local account that is not permitted to log in with a password. On Linux such accounts have
*in the password field of/etc/shadow. - SSH password authentication reachable by the attacker. The attacker needs only the account name, which the report notes is easy to guess on standard images.
No specific OpenSSH version below the fixed release is named in the report; the fixed release is given as 10.6p2.
Finding it
The report frames the bug as the unexpected interaction of three factors:
- Special accounts. Linux has accounts that are not allowed to log in with a password. In
/etc/shadowthe password field for these accounts contains the*symbol. - Error in musl. The
crypt()function in musl fails when it receives a password longer than 256 bytes for SHA-256/512 hashes, and returns the*symbol instead of the expected error value. - Logical collision. When an attacker sends a password between 257 and 1024 bytes long, OpenSSH hashes it, receives
*in response, and compares it with the*stored in/etc/shadowfor a passwordless account. The system mistakenly treats this as a successful authentication.
What makes it look wrong is the direction of the failure: a hashing function that cannot process its input returns a value that is also a legitimate marker in the password database, and the authentication check cannot tell the two apart.
Exploitation
Step 1: Open an SSH connection and send a long password
A single SSH connection carrying a password within the length range above is enough. The report does not include a command line or a packet capture, so the exact client invocation is not reproduced here. In practice the attacker supplies a password of between 257 and 1024 bytes for an account whose /etc/shadow entry holds *.
Step 2: The hash call fails and returns *
OpenSSH passes the supplied password to crypt(). Because the password exceeds 256 bytes and the hash is SHA-256 or SHA-512, musl's implementation fails and returns * rather than an error value.
Step 3: The comparison succeeds
OpenSSH compares the returned * with the * stored for the passwordless account. The two match, and the session is authenticated. No password is ever known to the attacker.
Step 4: Privilege and follow-on activity
The report states that access can be obtained with root privileges. In the honeypot attack the intruder did gain root. After access, attackers carried out system reconnaissance, tried to read password hashes and SSH keys, and modified authorized_keys files to establish persistence. In one case a malicious Python agent was installed for remote command and control (C2).
Root cause
The defect is a value collision between two different meanings of *: musl's crypt() uses it to signal that it could not process an over-long password, while /etc/shadow uses it to mark an account that has no usable password. OpenSSH's authentication logic treats the returned string as a hash and compares it to the stored field, so a failed hash operation is indistinguishable from a match against a locked account.
The * that marks a passwordless account is the same value musl returns on failure, so the comparison succeeds.
Impact
An attacker who can reach SSH password authentication can bypass authentication and gain access to the system, including with root privileges, without a password. The report states that this includes root privileges. The attacker only needs to know the account name, which the report notes is easy to guess on standard images.
Exposure is not theoretical. The first exploitation was recorded less than nine hours after the information was published, and the honeypot attack reached root. Attacks came from IP addresses in several countries, which the report reads as broad attacker interest. Post-compromise behaviour observed in real attacks included reconnaissance, attempts to read password hashes and SSH keys, edits to authorized_keys for persistence, and in one case a Python-based C2 agent.
Fix
- Update OpenSSH to version 10.6p2 or higher. For Alpine Linux, updated packages are available for supported branches.
- Check the logs for successful password logins to accounts that should only use keys, and for unusually long passwords in authentication requests.
- Temporary measures where updating is not possible: set
PasswordAuthenticationtonoin the sshd configuration and restart the service, and restrict access to the SSH port with a firewall.
Variants to test
What happened, in plain words
In early November 2026, a serious security flaw nicknamed "SSHole" was found in OpenSSH, a very widely used piece of software that lets people log in to computers remotely. The flaw was fixed soon after it was found. The problem is that it lets someone on the internet get into a computer, even as the all-powerful administrator account called root, without knowing any password. Because it is easy to abuse and ready-made attack tools appeared quickly, real attacks started within hours of the flaw becoming public.
The flaw is not simply a mistake inside OpenSSH on its own. It comes from the way OpenSSH handles the answer it gets back when it asks the underlying system library to scramble (hash) a password, and from how that answer happens to match what is stored in the computer's local list of user accounts, on systems that use a particular system library called musl.

Before going further, a few words about the pieces involved, because the rest of this article leans on them.
- OpenSSH is the program behind the
sshcommand. It lets you open a secure, encrypted connection to another computer and run commands there. System administrators use it constantly, and so do automated tools. - SSH (Secure Shell) is the protocol, meaning the agreed set of rules, that such connections follow.
- root is the name of the superuser account on Linux. It can do anything on the machine: read every file, change every setting, install software. Getting root is the goal of most attackers.
- Authentication is the process of proving who you are. When you type a username and password, the computer checks them against its records. If they match, you are let in.
- A hash is the result of feeding some data, such as a password, through a mathematical recipe that produces a fixed-length jumble of characters. The same input always gives the same output, but you cannot easily turn the output back into the input. Computers store password hashes instead of the passwords themselves, so that a stolen file does not directly reveal everyone's password.
- A C library (also called libc) is a bundle of standard helper functions that programs on Linux rely on. One of those helpers is
crypt(), which does password hashing. musl is one particular C library, used by some Linux distributions, most notably Alpine Linux. - A distribution is a packaged version of Linux, such as Alpine Linux or Ubuntu, that bundles the kernel, the system tools and the libraries together.
With those terms in hand, the story makes sense.
Setup
The report describes the conditions under which the flaw can be used, rather than a step-by-step lab build:
- A target computer running OpenSSH where musl's
crypt()is involved in password hashing. - At least one local account that is not allowed to log in with a password. On Linux, such accounts have a
*in the password field of a file called/etc/shadow. - SSH password authentication that the attacker can reach over the network. The attacker needs only the account name, which the report notes is easy to guess on standard images.
A word on /etc/shadow: it is a file on Linux that stores, for each user account, information about that account's password. It is readable only by root, which is why it is separate from the more widely readable /etc/passwd. When an account is not meant to be used for password logins, for example a system service account, the password field holds a single * character. That * is a marker meaning "this account has no usable password".
The report does not name any specific OpenSSH version below the fixed release. The fixed release it gives is 10.6p2.
Finding it
The report frames the bug as the unexpected interaction of three factors:
- Special accounts. Linux has accounts that are not allowed to log in with a password. In
/etc/shadowthe password field for these accounts contains the*symbol. - Error in musl. The
crypt()function in musl fails when it receives a password longer than 256 bytes for SHA-256/512 hashes, and returns the*symbol instead of the expected error value. - Logical collision. When an attacker sends a password between 257 and 1024 bytes long, OpenSSH hashes it, receives
*in response, and compares it with the*stored in/etc/shadowfor a passwordless account. The system mistakenly treats this as a successful authentication.
A few more terms from that list:
- A byte is a unit of digital information, roughly one character of ordinary text. So 256 bytes is about 256 characters.
- SHA-256 and SHA-512 are two specific hashing recipes. They are named after the length of their output, in bits: 256 bits or 512 bits.
- A logical collision here means two different situations that produce the same value. One situation is "the hashing function could not do its job". The other is "this account has no password". Both end up represented by the single character
*, and the login check cannot tell them apart.
What makes the situation look wrong is the direction of the failure. A hashing function that cannot process its input returns a value that is also a legitimate marker in the password database, and the authentication check has no way to distinguish the two.
Exploitation
Step 1: Open an SSH connection and send a long password
A single SSH connection carrying a password within the length range above is enough. The report does not include a command line or a packet capture, so the exact client invocation is not reproduced here. In practice, the attacker supplies a password of between 257 and 1024 bytes for an account whose /etc/shadow entry holds *.
Why this step matters: normally, to log in as a user you must know that user's password. Here the attacker does not need to know anything secret. They only need to pick a username that exists on the machine and send a deliberately over-long password. The length is the trick: it is what pushes the hashing function into its failure mode.
Step 2: The hash call fails and returns *
OpenSSH passes the supplied password to crypt(). Because the password exceeds 256 bytes and the hash is SHA-256 or SHA-512, musl's implementation fails and returns * rather than an error value.
Why this step matters: crypt() is supposed to take a password and produce a hash. When it is given something it cannot handle, it should signal an error in a way the caller can recognise. Instead, musl returns the character *. That is the first half of the collision.
Step 3: The comparison succeeds
OpenSSH compares the returned * with the * stored for the passwordless account. The two match, and the session is authenticated. No password is ever known to the attacker.
Why this step matters: this is where the mistake becomes a break-in. OpenSSH treats the * from crypt() as if it were a real hash and compares it to the stored field. Because both are *, the comparison says "match", and the login is accepted. The attacker never learns or guesses a password; the system simply agrees with itself.
Step 4: Privilege and follow-on activity
The report states that access can be obtained with root privileges. In the honeypot attack, the intruder did gain root. After access, attackers carried out system reconnaissance, tried to read password hashes and SSH keys, and modified authorized_keys files to establish persistence. In one case a malicious Python agent was installed for remote command and control (C2).
A few terms from that paragraph:
- A honeypot is a computer set up deliberately to look interesting to attackers, so that their activity can be watched and recorded. It is a trap, not a production machine.
- Reconnaissance means looking around a system after getting in: checking what software is installed, what users exist, what network connections are possible.
- SSH keys are a pair of files used instead of a password to log in. One is private and kept secret; the other is public and placed on the server. If an attacker steals the private key, they can log in as that user without a password.
authorized_keysis a file on the server that lists the public keys allowed to log in to a given account. Adding an attacker's own key to it is a classic way to keep access after the initial break-in.- Persistence means arranging to keep access, so that a reboot or a password change does not lock the attacker out.
- C2, short for command and control, is a channel through which an attacker's software on the victim machine receives instructions and sends back results. A Python agent is a small program written in the Python language that acts as that channel.
Root cause
The defect is a value collision between two different meanings of *: musl's crypt() uses it to signal that it could not process an over-long password, while /etc/shadow uses it to mark an account that has no usable password. OpenSSH's authentication logic treats the returned string as a hash and compares it to the stored field, so a failed hash operation is indistinguishable from a match against a locked account.
The * that marks a passwordless account is the same value musl returns on failure, so the comparison succeeds.
In everyday terms: imagine a door with a sign that says "no key needed" and a key-cutting machine that, when it jams, prints a slip that also says "no key needed". The guard at the door reads the slip, sees the same words as the sign, and lets you in. Nothing was forged; the two meanings simply got confused.
Impact
An attacker who can reach SSH password authentication can bypass authentication and gain access to the system, including with root privileges, without a password. The report states that this includes root privileges. The attacker only needs to know the account name, which the report notes is easy to guess on standard images.
Exposure is not theoretical. The first exploitation was recorded less than nine hours after the information was published, and the honeypot attack reached root. Attacks came from IP addresses in several countries, which the report reads as broad attacker interest. Post-compromise behaviour observed in real attacks included reconnaissance, attempts to read password hashes and SSH keys, edits to authorized_keys for persistence, and in one case a Python-based C2 agent.
Why this matters to an ordinary reader: many internet-facing servers run SSH so that administrators can manage them. If such a server has an account with * in its password field and password logins are enabled, an attacker who can reach the SSH port may get in without a password. That is a very low bar for an attacker.
Fix
- Update OpenSSH to version 10.6p2 or higher. For Alpine Linux, updated packages are available for supported branches.
- Check the logs for successful password logins to accounts that should only use keys, and for unusually long passwords in authentication requests.
- Temporary measures where updating is not possible: set
PasswordAuthenticationtonoin the sshd configuration and restart the service, and restrict access to the SSH port with a firewall.
A few terms from the fix list:
- A log is a running record that a program writes about what it did: who connected, when, and whether the login succeeded. Logs are the main way to notice that something unusual happened.
PasswordAuthenticationis a setting in the SSH server's configuration file. Setting it tonotells the server to refuse password logins entirely, so only key-based logins are allowed.- sshd is the SSH server program, the part that listens for incoming connections. Restarting it makes it re-read its configuration.
- A firewall is a filter on network traffic. Restricting access to the SSH port with a firewall means only allowing connections from addresses you trust.
Variants to test
The log review is the defensive counterpart: even if you cannot test the flaw directly, you can look for the traces it leaves.
Glossary
- Authentication: the process of proving who you are, usually with a password or a key, so a computer can decide whether to let you in.
authorized_keys: a file on an SSH server listing the public keys that are allowed to log in to a given account.- Byte: a unit of digital information, roughly one character of ordinary text.
- C library (libc): a bundle of standard helper functions that programs on Linux rely on, including
crypt()for password hashing. - C2 (command and control): a channel through which an attacker's software on a victim machine receives instructions and sends back results.
crypt(): the C library function that turns a password into a hash.- CVSS: a scoring system for rating the severity of a security flaw. The report gives this one 8.1, High.
- Distribution: a packaged version of Linux, such as Alpine Linux, bundling the kernel, tools and libraries.
- Firewall: a filter on network traffic that allows or blocks connections according to rules.
- Hash: the fixed-length jumble of characters produced by feeding data through a mathematical recipe; used to store passwords without keeping them in plain form.
- Honeypot: a computer set up deliberately to look interesting to attackers so their activity can be watched.
- Log: a running record a program writes about what it did, such as who connected and whether a login succeeded.
- Logical collision: two different situations that produce the same value, so a check cannot tell them apart.
- musl: a particular C library used by some Linux distributions, notably Alpine Linux.
- OpenSSH: the widely used software behind the
sshcommand, providing secure remote logins. - Persistence: arranging to keep access to a system after the initial break-in, for example by adding a key to
authorized_keys. PasswordAuthentication: an SSH server setting that controls whether password logins are accepted.- Reconnaissance: looking around a system after getting in to see what is installed, which users exist and what connections are possible.
- root: the superuser account on Linux, able to do anything on the machine.
- SHA-256 / SHA-512: two specific hashing recipes, named after the length of their output in bits.
/etc/shadow: the Linux file that stores per-account password information, readable only by root; a*in the password field marks an account with no usable password.- SSH: Secure Shell, the protocol for encrypted remote connections.
- sshd: the SSH server program that listens for incoming connections.
- SSH keys: a pair of files, one private and one public, used instead of a password to log in.