OpenSSH rushes out 10.6p2 as AI agents rediscover critical bugs within hours

OpenSSH 10.6p2 has been released with a workaround for a critical vulnerability

OpenSSH 10.6p2 ships a workaround for a critical vulnerability affecting Linux systems using musl libc without PAM, such as Alpine Linux, which should disable password authentication immediately. The bug doesn't touch non-Linux, glibc, or PAM-based systems. Maintainer Damien Miller says the root cause lies outside OpenSSH, but the team moved fast because AI agents have been rediscovering bugs within hours, making long embargoes dangerous.

We have recently observed multiple cases of rapid bug rediscovery by AI agents, sometimes within hours, and so now consider long embargo periods to be a dangerous practice that primarily benefits attackers.
  1. NewJazz

    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...

  2. amluto

    Wow, what a bug. I expect the exploit is literally as simple as trying to ssh in as a user with the password has ‘*’ in /etc/shadow and typing anything as the password.

    To the extent that systems that are configured in the vulnerable manner exist in the wild, I’m surprised they weren’t exploited years ago by trivial ssh bots.

    P.S. Wow, I’m reminded of just how awful traditional UNIX-y C APIs and code are.

    P.P.S. The musl code in question is nuts. The API it implements is awful. Seriously, here’s the manpage:

    https://man.archlinux.org/man/crypt.3.en

    You can’t call this function correctly. sshd’s “fix” is basically to assume that a too-short return is an error return instead of a success return.

    PAM is also awful, but this is worse.

  3. dust42

    > We are making this release as fast as possible (we learned of the problem yesterday) because we have recently observed multiple cases of rapid bug rediscovery by AI agents, sometimes within hours, and so now consider long embargo periods to be a dangerous practice that primarily benefits attackers.

    I think this will likely become standard. Nevertheless, a few stormy months are ahead.

  4. throwa356262

    musl only, the quick fix:

    PasswordAuthentication=no

    Which is a good advice in general.

  5. Kuraj

    > At least one local account has a $5$ or $6$ password hash.

    I'm not sure this gets the point across when (according to https://sshhole.com/) it effectively means "any other user with a real password"

  6. MPSimmons

    Is this actually effective against Alpine? The default install seems to use ! as the placeholder in /etc/shadow instead of * and trying the attack doesn't seem to work.

  7. feearent

    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.

  8. 0127

    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

More from this day

2026-11-05