Most password advice says longer is better. On some Linux systems, for roughly a decade, much longer was better still: a password past 256 characters didn't just get rejected, it could get you in.

The bug is CVE-2026-123158, nicknamed "*sshole" (also spelled "sshhole"). It's an authentication bypass in OpenSSH on Linux systems built on the musl C library, which includes Alpine Linux. OpenSSH fixed it in 10.6p2 on November 5, 2026. It's scored 8.1 (CVSS 3.1), and reports say attackers were already trying it within hours.

It's a funny bug. It's also a real one, so the patch steps come first.

🛑Editorial note: This write-up is for defenders. We explain how the bug works in general terms so you can tell whether you're exposed. We don't publish exploit steps.

The short version

QuestionAnswer
WhatSSH password check could succeed with an over-long password
WhereOpenSSH before 10.6p2, on musl-based Linux, when passwords are checked without PAM
Who's exposedAccounts whose stored password is just *: often root, system accounts, and LDAP users
FixOpenSSH 10.6p2 (Nov 5, 2026). Alpine has patched packages back to 3.16
StopgapPasswordAuthentication no, or turn SSH off on that box until it's patched
Exploited?Attempts reported within about nine hours of disclosure

How a password can be "too long" and still work

Two pieces of software each did something reasonable. Together they made something silly.

Piece one: musl's crypt(). When a Linux system checks a password the old-fashioned way, it hashes what you typed with a function called crypt() and compares the result to the hash stored for your account. musl's version of crypt() has a 256-byte limit on passwords. When hashing fails, including when the password is over that limit, it doesn't return an error code. It returns a single asterisk: *.

Piece two: what * means in a password file. On Linux, an account that isn't supposed to log in with a password often has * stored where the hash would go. It's shorthand for "no valid password here." Root on many minimal images, service accounts, and some LDAP-backed users look like this.

Put them together. On affected builds, sshd hashed the submitted password, got back * because it was too long, and compared that to the stored value, which was also *. The two matched, so the password check passed.

Put simply, "this password is broken" matched "this account has no password," and the code read that as a correct password.

This only happens when sshd checks the password itself. Systems that send password checks through PAM, which most mainstream distributions like Ubuntu and Fedora do, go down a different path. Those distributions also use glibc, not musl.

Who's affected

If your Alpine containers don't run an SSH server, which most shouldn't, this bug doesn't apply to them. It matters where openssh-server is actually installed and listening.

Been there since 2016

The researcher who reported it, Özgün Kültekin, says the flaw has existed since 2016. That's about ten years of a 257-character password working as a master key on some systems, and nobody (as far as we know) noticing.

That's the part that makes people laugh, and it's also how bugs like this usually work. Nobody types a 300-character password into an SSH prompt to see what happens. Testing tends to cover "right password" and "wrong password," not "absurdly long password into an account that isn't supposed to have one."

The AI angle

This is where it starts to look like 2026. One report says Kültekin found the bug using AI agents that ran about 17,600 authentication tests. Separately, the OpenSSH team's release notes mention receiving a large number of security reports, many of them findings from AI models. We couldn't confirm the exact testing setup from primary sources, so treat the number as reported, not verified.

Either way, the story fits a pattern. Patient automated testers are good at exactly the kind of case people skip. An agent doesn't get bored trying every length from 1 to 10,000, every account type, and every build option. Ten-year-old edge cases are where that patience pays off.

The flip side is that attackers have the same tools. Reports say the first exploitation attempts showed up less than nine hours after the CVE was published, and threat intelligence firm Previdian says it confirmed root access on a honeypot running real Alpine Linux and OpenSSH. When AI makes bugs cheaper to find, the time between "disclosed" and "attacked" gets shorter too.

What to do this weekend

  1. Find your exposure. List anything musl-based that runs openssh-server and accepts password logins: Alpine VMs, jump boxes, routers on OpenWrt, appliances built with Buildroot or Yocto. Internet-facing ones go first.
  2. Patch Alpine. Update the packages, then restart sshd. Upgrading doesn't restart a running service, so the old code keeps answering until you do.
    apk upgrade -U -a
    rc-service sshd restart
    
    Alpine has patched packages for every branch back to 3.16. Reports list different fixed package version numbers, so confirm with apk info -v openssh-server against Alpine's security announcement for your branch instead of relying on any single number.
  3. Can't patch yet? Turn off password logins. OpenSSH developer Damien Miller told operators of systems without PAM to set PasswordAuthentication=no or disable SSH immediately until they're patched. In /etc/ssh/sshd_config:
    PasswordAuthentication no
    KbdInteractiveAuthentication no
    
    Check that key-based login works before you restart sshd, or you'll lock yourself out of a remote box.
  4. Rebuild container images. If an image installs openssh-server, patching running containers isn't enough. Rebuild from an updated base and redeploy, or the old version comes back next time a container starts.
  5. Chase the embedded gear. For OpenWrt and vendor appliances, check for firmware updates. If none exist, keep SSH off the internet and limit it to a management network.
  6. Look for signs someone got in. Alpine's advice is to check logs for password logins accepted for accounts that shouldn't have passwords, such as root and service accounts. If you can't rule out a login on an exposed box, treat it as compromised and rebuild it.

Why this one matters

On its own, a single * matching another * is a small thing. It's worth paying attention to for two reasons.

First, "no password" is not the same as "can't log in." A locked-looking account is only locked if everything in the login path treats it that way. The fix in 10.6p2 makes sshd refuse a match when the stored password field is too short to be a real hash, so a bare * can no longer count as a match. That's the kind of safety check it's worth knowing your own systems rely on.

Second, old code isn't proven-safe code. Ten years without a report meant nobody had found it, not that it was fine. With AI-assisted testing making this kind of hunting cheap, expect more decade-old bugs, and expect them to be exploited quickly. The best defense is still the boring one: key-based SSH, no password logins, and nothing exposed that doesn't need to be.

If you want the skills to handle patch weeks like this, our Google Cybersecurity Certificate review covers Linux and access-control basics. For how AI is changing security work on both sides, see best AI tools for cybersecurity professionals. Last month's patch queue is in our October 2026 roundup.

Sources

Compiled from OpenSSH and Alpine advisories and security reporting published November 5 to 7, 2026. Outlets differ on Alpine's fixed package version numbers and on details of how the bug was found; we've noted where. Take the definitive fixed versions from OpenSSH's release notes and Alpine's security tracker.

We'll update this page if CISA adds CVE-2026-123158 to its Known Exploited Vulnerabilities catalog or if more distributions confirm they're affected.

← All Write-ups