OpenSourceVerdict

OpenSSH vulnerability CVE-2026-123158 (password bypass)

OpenSSH vulnerability CVE-2026-123158 (password bypass): 257-byte passwords got in on Alpine

What we found

We install self-hosted apps, try to break them, and tell you if they're worth your time. Today, a Security Report: the OpenSSH password bypass, CVE-2026-123158, fixed in OpenSSH 10.6p2 on 5 November 2026.

Who is affected, from Alpine Linux's advisory: an Alpine system where all four are true: sshd runs without PAM, password logins are on, one account has * as its password field, and another account has a SHA-256 or SHA-512 password hash. A container that runs no SSH server is not affected.

What we measured on OpenSSH 10.6p1, built from its release on Alpine 3.22 in an isolated test VM, with sshd's penalty for failed logins switched off for our test client: random passwords of 257, 300 and 1,024 bytes got in on 15 of 15 connections, each on the second password of the connection; 8, 255, 256 and 1,025 bytes were refused; with one password per connection, 0 of 35 connections got in. With no other account holding a password hash, or with the account locked, those passwords were refused; with password logins off, sshd offered no password at all. OpenSSH 10.6p2 built the same way, the fixed openssh-server package Alpine 3.22 served on 14 November 2026 (10.0_p1-r11) and 10.6p1 built on Debian 13 refused every one.

If you run sshd on Alpine: update openssh and restart sshd; if you cannot update yet, make sure your SSH key login works, then switch password logins off and restart sshd. Alpine's advisory has the commands: https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/

The official images of the tools in our reviews, at the versions we tested, read from their registries: 27 images, 14 built on Alpine (from ntfy, Pi-hole, AdGuard Home, Nextcloud and OpenCloud), none with an SSH server inside.

Not tested: logins on OpenSSH built with PAM (we only read the PAM package's UsePAM setting), Alpine's own package from before its fix, Alpine's cloud images, other systems built on musl, the restart command.

The Shorts

Chapters

  1. 0:00 OpenSSH password bypass: who is affected
  2. 1:40 Is your Alpine server affected: the checks
  3. 3:49 How to fix OpenSSH on Alpine
  4. 4:57 Why the OpenSSH bypass worked
  5. 6:37 OpenSSH 10.6p1 tested: which passwords got in
  6. 9:14 Nextcloud, ntfy, Pi-hole and the other images

The full narration

What the video says, word for word, by chapter.

Opening (host)

Watch from 0:00

This is a security report on CVE-2026-123158, the OpenSSH password bypass.

If you run an Alpine Linux server with SSH on, a very long password could log in to an account that has no password at all, the kind meant only for key logins, when another account does have one.

That needs four things to be true at once, and a container that runs no SSH server is not affected.

On the unfixed OpenSSH we built in our lab, it took two tries in one connection; the fix is one update and one restart.

We install self-hosted apps, try to break them, and tell you if they're worth your time. Today: who is affected, how to check your server, and how to fix it.

What it means for you

Watch from 0:52

OpenSSH is how you log in to a server from another computer, with a password or with a key. The part that runs on the server and lets you in is called sshd. Alpine Linux is a small Linux system built on a C library called musl.

Picture a door that is meant to open only with a key: on these servers, a long enough password opened it too.

On the fifth of November 2026, OpenSSH 10.6p2 came out with what its release notes call a critical security workaround. Four days after the fix, the American cybersecurity agency added the bug to its catalogue of vulnerabilities known to be exploited.

Is this you?

Watch from 1:40

Alpine's advisory gives four conditions, and all four have to be true. Here is how to check each one, as root on your own server; the grey line above each command says what it does.

First, the release and the package: on ours, Alpine 3.22.8 with openssh-server 10.0_p1-r11.

Alpine lists 10.0_p1-r11 as the fixed version for 3.22, so ours already had the fix, and lists one for every release from 3.16 to 3.24. If yours is older than the fixed one, or you're not sure sshd has restarted since you updated, read on; and if it was ever exposed, the log check near the end of the fix is for you too.

One: sshd runs without PAM, which is how Alpine's standard openssh-server package is built.

Alpine's PAM package counts too, if its own sshd prints usepam no; on ours, freshly installed, it did.

Two: password logins are on; sshd's own list of settings says passwordauthentication yes, which is OpenSSH's default.

Three: an account has a star as its password field, which Alpine calls normal for accounts that log in only with a key. On ours, this line listed root and osvUser.

Four: at least one other account has a real password, stored as a SHA-256 or SHA-512 hash. On ours, this one listed testUser.

Root has the star in Alpine's base image, but OpenSSH's default refuses root logins by password. Alpine warns that this does not help if another account that can log in can become root, for example through doas.

And if no SSH server is running, the bug has nothing to get in through; the check shows sshd running on ours.

How to fix it

Watch from 3:49

Alpine's advice is to update openssh now and then restart sshd.

On our test system the update changed one package, zlib; openssh-server was already the fixed version. The restart matters: Alpine says upgrading the package alone does not replace the running daemon.

If you can't update yet, Alpine says to switch password logins off and restart sshd, after making sure your key login works. Keep your current session open until a new login works, Alpine adds.

We ran Alpine's commands for that on its package, all but the restart, and sshd's own check then read passwordauthentication no. That check reads sshd's files; we started no server there, and a running one needs the restart.

To see whether someone got in, Alpine says to look in the log for "Accepted password for" an account that has no password. If you cannot rule out such a login, Alpine says to treat the machine as compromised.

Why it worked

Watch from 4:57

A server doesn't keep your password; it keeps a hash, a scrambled form of it, and it scrambles every attempt the same way to compare. On Alpine, an account meant only for key logins often has a single star in that place instead. For that account, sshd scrambles a try with the start of another account's real hash, so such an account has to exist. In our test, musl's scrambler handled a 256-byte password normally, and for 257 bytes it answered with a single star. Alpine's advisory says that star is how musl reports an error. A star from the library, a star in the file: sshd compared the two, and they matched.

Two stars, and for once that counted as a perfect match.

So why, on the 10.6p1 we built, never on a connection's first password? Looking up that other account overwrites the star sshd had just read, so the first try has nothing to match. From the second try on, sshd keeps that borrowed part, so it looks nothing up and the star is still there.

On Debian, where crypt comes from a separate password library, the same call scrambled our 300-byte password normally.

The fix in 10.6p2: a password now matches only a stored field of four characters or more, so a lone star never does.

The OpenSSH team says the root cause is outside sshd, but sshd is where it could be exploited, so that is where they closed it.

Our lab test

Watch from 6:37

We built OpenSSH 10.6p1, the last release before the fix, from its source on Alpine 3.22, in an isolated test VM. We added two accounts: osvUser, with the star, and testUser, with a normal password.

We changed one setting: our test client was exempt from sshd's penalty for repeated failed logins. Without that, sshd would have shut our client out after a few wrong passwords. Every other setting stayed at the build's default.

Then we sent osvUser random passwords of different lengths, from short ones to very long ones. Each length got five connections, with up to three passwords in each. At 8, 255 and 256 bytes, every connection was refused. At 257, 300 and 1,024 bytes, all 15 connections got in, each one on its second password. At 1,025 bytes it was refused again: sshd itself rejects any password longer than 1,024. So if you heard "any 300-character password", 300 does work here, on the second try.

With only one password per connection, none of 35 more connections got in.

Alpine's advisory says the attack needs no retries. In our test, on the 10.6p1 we built, it needed a second password, inside the same connection.

Then we changed one thing at a time. With no other account holding a password hash, it was refused; with the account locked, refused too. With password logins off, sshd didn't offer a password at all.

And the fix: OpenSSH 10.6p2, built the same way, refused every one of those passwords. So did Alpine 3.22's fixed openssh-server package, version 10.0_p1-r11, as Alpine's 3.22 repository served it to our lab. And the unfixed 10.6p1, built the same way on Debian 13, refused every one as well.

In the run with up to three passwords, our 10.6p1 server wrote "Accepted password for osvUser" 20 times. That is the 15 logins above, plus 5 more connections that sent a short wrong password before a 300-byte one.

The tools we reviewed

Watch from 9:14

What about the tools we have reviewed on this channel?

We read their official images straight from the registries, 27 images, at the versions we tested. 14 of the 27 are built on Alpine, from five tools: ntfy, Pi-hole, AdGuard Home, Nextcloud and OpenCloud. None of the 27 has an SSH server inside, so as shipped, none of them can be reached this way.

The machine they run on is another matter: if it is Alpine with sshd, check it today.

What we did not test

Watch from 9:47

We sent no passwords to OpenSSH built with PAM; we only read its UsePAM setting. Nor did we test Alpine's own package from before its fix, Alpine's cloud images, or other systems built on musl. And we did not run the restart command, because it needs a booted Alpine system, and ours ran as containers inside the test VM.

Every result here was measured with sshd's penalty for failed logins switched off for our test client.

Outro

Watch from 10:18

That was the OpenSSH password bypass, as it behaved in our lab. Next: our Vaultwarden review, a password manager you run yourself.

We read the docs. Then we measured. Haste ye back.

Sources

Snapshots of 2026-11-14, pinned to the commit we tested.

How this was checked

74 claims, each checked against its cited source by a verifier that did not write them; every number recomputed from the raw lab data by a second verifier. How we test: the method.

Corrections

None so far. Found a mistake? Tell us.