2026-12-01 · CVE-2026-123158
CVE-2026-123158 ('SSHole'): How a musl libc Error Marker Became a Universal SSH Password on Alpine Linux
On November 5, 2026, the OpenSSH project quietly shipped 10.6p2 with a fix for what researchers are now calling "SSHole" — CVE-2026-123158, an authentication bypass rated CVSS 8.1. Within days, GreyNoise was tracking exploitation attempts in the wild, and on November 9 CISA added it to the Known Exploited Vulnerabilities catalog with a federal remediation deadline of November 12. That's an unusually fast KEV turnaround for a bug that, on paper, only affects a specific combination of libc and configuration choices.
The reason it moved fast is the blast radius: the "specific combination" it needs is the default configuration of Alpine Linux's openssh-server package — which means every container built FROM alpine with SSH enabled for debugging, CI runners, or remote access is a candidate, whether or not whoever wrote that Dockerfile ever thought about libc internals.
What the vulnerability actually is
OpenSSH supports two ways to validate a password: hand it off to PAM, or — when PAM isn't compiled in or isn't configured — call the C library's crypt() function directly and compare the result against the account's stored password hash. Alpine's standard openssh-server package is built without PAM, by design, to keep the base image small. That's not a misconfiguration; it's the documented default.
The bug lives in musl libc's crypt() implementation, not in OpenSSH itself. musl caps the key length it will hash, and when it's handed a password longer than 256 bytes, it doesn't hash anything — it returns the literal string "*" as an error sentinel. That convention isn't musl's invention: "*" (along with "!") is the traditional Unix placeholder stored in a password-hash field to mean "this account has no usable password and password login must be rejected." It's a deny marker, not a hash.
Here's where the two meanings collide. sshd takes whatever crypt() returns and does a plain string comparison against the stored hash. If the target account's stored hash is itself "*" — which describes any account where password login is nominally disabled, including plenty of service and system accounts that administrators assume are safe because they have no password — and the attacker submits a password longer than 256 bytes, crypt() returns "*", the comparison succeeds, and sshd logs the attacker in. The exact text of the password doesn't matter at all past the 256-byte threshold; only its length does. The control that was supposed to mean "nobody can log in to this account with a password" became "anybody can, with a password long enough."
The fix didn't wait on musl. OpenSSH 10.6p2 added a minimum-length sanity check on whatever crypt() hands back before treating it as a real hash — a defensive line that has nothing to do with fixing musl's sentinel value and everything to do with not trusting a library's internal error signaling as if it were data. That's a pattern worth internalizing on its own: any time your code treats "the library returned X" as equivalent to "X is a valid result," an edge case in the library becomes an edge case in your auth logic, whether or not you ever call crypt() directly yourself.
Who's actually exposed
The exploitability matrix is narrower than "OpenSSH has a CVE," but still enormous in absolute terms because of what sits inside it:
| Environment | Affected? |
|---|---|
Alpine Linux default openssh-server (no PAM, password auth enabled) | Yes |
Alpine openssh-server-pam with UsePAM no | Yes (same code path) |
Alpine openssh-server-pam with UsePAM yes (PAM handles the check) | No |
| glibc-based distros — Debian, Ubuntu, RHEL, Rocky, SUSE | No — glibc's crypt() doesn't share this error-sentinel behavior |
musl-based systems with PasswordAuthentication no | No — the vulnerable code path is never reached |
The practical reading of that table: this was never really a "server hardening" bug in the traditional sense, because most hardened production servers run glibc distros with PAM. It's a container base image bug. Alpine is the default base for a huge share of minimal container images precisely because musl and BusyBox keep it small, and plenty of those images get an openssh-server install bolted on for remote debugging, CI job SSH access, or bastion-style jump containers — usually by someone optimizing for image size, not auditing libc internals. Red Hat's own advisory makes a point of saying its products aren't affected because they link glibc and default to PAM; that's true, and it's also exactly why this bug skipped the audience that reads CVE advisories most carefully and landed on the audience that doesn't.
The part that should bother you more than the CVSS score
CVSS 8.1 for an unauthenticated-adjacent root-equivalent login bypass undersells the specific thing that makes this bug interesting, which is that it inverted a security control instead of merely skipping one. Most auth bypasses are missing-check bugs: a function that should verify something and doesn't. This one took a working, intentional "deny all password logins to this account" marker and turned it into a universal accept, purely because two independent pieces of code agreed on a magic string for two opposite reasons. Nobody misconfigured anything. The account administrator who set a service account's password field to * did exactly the right thing, by the book, and got punished for it by a bug three layers down in the libc.
That's also why this is a worse fit for a vulnerability scanner than it looks. A scanner checking "is password auth enabled" or "is PAM configured" will flag the setup as expected and move on — the actual exploit condition only exists at the intersection of a specific libc, a specific PAM configuration, and a specific account state, and none of those alone looks wrong.
What this means for how we teach it
This is a genuinely good lab bug, and not just because it's current. Most authentication-bypass labs teach "the check is missing" or "the check is wrong." This one teaches something more subtle and more realistic: two components that are each individually correct can still produce a bypass when they silently share an assumption — in this case, the meaning of the string "*" — that only one of them actually owns. A student who's only ever been taught to look for missing if statements will walk right past this bug in a code review, because every individual check is present and is doing roughly what it's supposed to.
It also makes a sharp, concrete case for a point that's easy to wave at abstractly and hard to make land: supply-chain risk in a Docker image isn't just about outdated packages with known RCEs. It's about which libc your base image links, what defaults that libc's ecosystem ships, and whether the convenience choices made two layers below your Dockerfile — "we'll use Alpine, it's small" — quietly inherited an assumption nobody on your team ever reviewed. A lab built around hardening a minimal container image, with SSH access deliberately wired in the way a real CI runner or bastion container would be, teaches that lesson far better than reading the advisory does.
The takeaway
SSHole patches cleanly — upgrade to OpenSSH 10.6p2, or if you're stuck, disable password authentication and confirm key-based login works before you do. The harder fix is the habit it points at: an error-handling convention in one library quietly became a security boundary in a completely different piece of software, and nobody decided that on purpose. If your container fleet has any Alpine-based images with SSH baked in for operational convenience, this is the week to find them — not by reading the CVE number off a scanner report, but by asking directly which of your images call crypt() without PAM in front of it.