# Alpine Linux OpenSSH Flaw Lets Anyone Log In Without a Password

Original title: Alpine Linux Security advisory: OpenSSH-server password authentication bypass

> Hacker News story 50379704 · language: en · submitted 2026-11-05
> Web version: https://zeli.app/story/50379704
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 626 · by [pantalaimon](<https://news.ycombinator.com/user?id=pantalaimon>) · 💬 2
[original](<https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/>) · [HN discussion](<https://news.ycombinator.com/item?id=50379704>)

## Summary

A critical bug in Alpine's OpenSSH server lets an attacker log in as any passwordless account by sending a long password — no retries needed. One account with a $5$ or $6$ hash is enough to expose every account with a '*' password field, including root and the tiny-cloud 'alpine' user. Every Alpine release from 3.16 through edge is affected. Upgrade openssh and restart sshd, or set PasswordAuthentication no.

## Key quote

> musl's crypt() returns the string * as an error indicator when the key is over 256 bytes long. * is also exactly what the stored field contains for every account with no password, so the "hash" matches and the login succeeds.

## HN discussion (2 comments)

### [NewJazz](<https://news.ycombinator.com/item?id=50380253>)

> musl’s crypt() returns the string * as an error indicator when the key is over 256 bytes long. * is also exactly what the stored field contains for every account with no password, so the “hash” matches and the login succeeds.
>
> Does anyone know why musl does this? Are they the only C library that behaves this way?
>
> For a C library that famously tries to adhere to POSIX as much as possible, this seems like a crazy choice. From POSIX standard:
>
> Upon successful completion, crypt() shall return a pointer to the encoded string. The first two bytes of the returned value shall be those of the salt argument. Otherwise, it shall return a null pointer and set errno to indicate the error.
>
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/c...

### [0127](<https://news.ycombinator.com/item?id=50382100>)

> IMO this is where languages like Rust shine. The design patterns built into the language for handling errors (Result) - force you to handle errors / function results with sentinels, null pointers, or errnos are so much more error prone than handling a Result<T,E> using a match statement.
>
> crypt() returning `*` is insane especially since these kinds of sentinels are all over /etc/passwd

### [throwa356262](<https://news.ycombinator.com/item?id=50380071>)

> Discussion from a few hours ago:
>
> https://news.ycombinator.com/item?id=50377221

### [drob518](<https://news.ycombinator.com/item?id=50382057>)

> Given Alpine’s broad use in the Docker ecosystem, this is going to hit a lot of folks, I think.

### [getfacl](<https://news.ycombinator.com/item?id=50383439>)

> I run Alpine on hardware. I was not effected by this as while I do use ssh keys, there are no user accounts without passwords on my server.

### [feearent](<https://news.ycombinator.com/item?id=50382986>)

> Not really related to the topic, but AI-popular sentences and language structure stand out to people right away these days right? I noticed some.
>
> "If you cannot update yet, at least disable password logins: set PasswordAuthentication no in your sshd configuration and restart sshd. Either one closes the hole." (only AI would characterize a critical SSH implementation vulnerability as a hole closing game)
>
> An attacker who can reach your SSH port can log in without knowing any password. It takes one connection, works every time, and needs no retries. (It sounds like the writer is bragging about the exploit instead of describing it. AI does this)
>
> The attacker needs the name of an account whose password field is * (an account with no password set, which is normal for key-only accounts), and needs the machine to have at least one other account with a $5$ or $6$ password hash. The attacker then sends a very long password (257 to 1024 bytes). One user with a password is enough: it makes every account without one reachable. (same as above made stronger with the 'statement: statement2' format)
>
> "Users coming from a directory service through musl-nscd (nslcd, winbind, sssd), since they have no shadow entry." (a human would be more clear about what a shadow entry is and give more context, I think)
>
> Hmm the rest of the article (the remaining 70-80%) seems quite human.
>
> Anyway, not sure why I spent 10+ minutes on this. It just jumps at me right away.

### [nodesocket](<https://news.ycombinator.com/item?id=50382863>)

> This is brutal because a lot of docker containerized apps are very slow to update the base image if at all.

### [AtNightWeCode](<https://news.ycombinator.com/item?id=50383334>)

> I always use certificates with SSH. Saved me this time.

---

## Cite

- Page: https://zeli.app/story/50379704
- Date: 2026-11-05
- Source: alpinelinux.org (https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/)
- Hacker News: https://news.ycombinator.com/item?id=50379704

## Other languages

- zh: https://zeli.app/zh/story/50379704 · markdown: https://zeli.app/zh/story/50379704.md
- ja: https://zeli.app/ja/story/50379704 · markdown: https://zeli.app/ja/story/50379704.md
- ko: https://zeli.app/ko/story/50379704 · markdown: https://zeli.app/ko/story/50379704.md
- de: https://zeli.app/de/story/50379704 · markdown: https://zeli.app/de/story/50379704.md
- es: https://zeli.app/es/story/50379704 · markdown: https://zeli.app/es/story/50379704.md
- ru: https://zeli.app/ru/story/50379704 · markdown: https://zeli.app/ru/story/50379704.md
