are you affected?

  • is your sshd running on musl? (alpine, openwrt, buildroot, yocto)
  • is it not using pam? alpine’s openssh-server doesn’t by default, or maybe you set UsePAM no
  • are password logins still on? they are by default
  • is there an account with just * as its password? key-only users, ldap users, root on alpine
  • and some other account with a real password?
  • then that * account takes any password between 257 and 1024 characters

on alpine’s official aws and azure images that’s the default alpine user, and it has passwordless doas. so it’s root

on debian, ubuntu, fedora or anything else with glibc? going through pam? dropbear? openbsd? you’re fine

  • irotsoma@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    People use * as an account password, or sysadmins allow that? I’d never allow that on any system or service of mine. No surprise, like most of these LLM discovered issues in the media lately, it hasn’t come up before. 💯 Good they’re getting fixed, but nothing so far has really been that urgent to fix for me.

    • smiletolerantly@awful.systemsOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      No, \* is being put as a hash of a password, originally precisely because that would mean no actual hash (over any input) ever matches it.

      • irotsoma@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        24 days ago

        Ah got it, so is that a hack to prevent a specific user from logging in rather than something like:

        Match User <username> PasswordAuthentication no

        • SteveTech@aussie.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          23 days ago

          Nah the hash function gives up after 256 bytes and outputs *, matching the ‘hash’.

          Edit: it’s unix tradition to put * as the hash for system accounts that should never be able to be logged in, this bug now means you can login (with the right config), using any password longer than 256 characters.

          • irotsoma@piefed.blahaj.zone
            link
            fedilink
            English
            arrow-up
            0
            ·
            23 days ago

            But how is that better than just disabling a user’s ability to log in with a password through the normal notation I mentioned? Just not sure why that was used at all. Is it something that some installer or distribution does by default? Why would that be used?

  • rtxn@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    That website is atrocious. It’s the web design equivalent of shoving five kilograms of sugar and whipped cream in a cup of coffee.

    • lagoon8622@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      “Cyber” ppl love to do this. This is basically their resume I guess? They have to sensationalize absolutely everything they can (not that this isn’t an important bug, but this could have been a 1-2 page white paper imo (like many of them))

      • rtxn@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        24 days ago

        Yes, it was a stroke of genius to label their mediocre confectionery as “coffee”, although it can lead to near fatalities when someone who’s only ever had Starbucks encounters real coffee for the first time.

        Still, my point stands. That website is like 20% useful content, 40% flair, and 40% wasted space.

  • Orygin@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    OP I know you’re trying to do good, but please try to understand the vulnerability before spreading FUD

  • i_am_not_a_robot@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    The container thing is extremely unlikely. However, having worked with developers before, I know there are people who are running those AWS and Azure images with internet-facing SSH password authentication. If they hadn’t already been hacked, they’ve all been hacked now. Somebody just had to check Shodan for hosts in those IP ranges running OpenSSH and try a few usernames.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    24 days ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    Git Popular version control system, primarily for code
    LXC Linux Containers
    SSH Secure Shell for remote terminal access

    3 acronyms in this thread; the most compressed thread commented on today has 8 acronyms.

    [Thread #159 for this comm, first seen 5th Nov 2026, 15:30] [FAQ] [Full list] [Contact] [Source code]

  • Venia Silente@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    If I’m running containers on Alpine, doesn’t that mean that they already don’t offer SSH (sshd)? The entire point of Alpine as a base is to not add stuff you don’t need.

  • Daniel Quinn@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    I’ve been setting UsePam = no for decades because leaving it on meant that it’d still present a password login of keys failed. Is this still the case, was I wrong from the beginning, or is this somehow ok?

    • needanke@feddit.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      23 days ago

      The way I read it, it is fine if you do not allow password authentication in general?

    • ScoffingLizard@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      22 days ago

      I’m not following. Are you saying you login with ssh keys and not the password, but leave “UsePam = no” so then if ssh fails you don’t have a pam error?

  • ComradeMiao@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    Why would a local server even have open internet access though?

    This alerts feel more relevant for public facing servers.

        • BuckFutter@timeyak.com
          link
          fedilink
          English
          arrow-up
          0
          ·
          24 days ago

          Yah I was trying to figure out why you would have ssh installed in a container that likely gives you console access through a hypervisor (i.e docker) and then have that ssh server exposed to the internet…hummm

        • drkt@scribe.disroot.org
          link
          fedilink
          English
          arrow-up
          0
          ·
          24 days ago

          Oh, forgive me; I did not see that this was the selfhosted community. I almost made the mistake of assuming anyone here might know how computers work! I will strive to do better moving forward, thank you for your patience.

        • terabyterex@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          24 days ago

          i was about to tell you why but then i realized i only ssh into proxmox and then pct enter ### to a container. so yeah

          (P.S. I am not the original commenter)

  • tofu@lemmy.nocturnal.garden
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    I mean, not that it’s not severe, but which container images have ssh baked in? If you’re using good stripped down images, you’re fine here.

    Not sure where the overlap is between"ssh is enabled" and “one of those OSes”. LXCs maybe?

    • Samsy@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      Linux phones? PostmarketOS is alpine-based. And a lot of people may ssh to their phone.

      • KaninchenSpeed@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        22 days ago

        checked on my phone, there are a few system users with !* as their password, from what i can tell ! blocks all logins and is not bypassed by this exploit, but their shell is set to /sbin/nologin anyways.

        The default firewall rules of nura block ssh from mobile data, so only wifi and usb connections would be affected if at all.

        Everyone should disable ssh password auth anyways, using the phones often short pin for ssh is not secure.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      Even if there is ssh it probably is going to be dropbear and it is unlikely that password based authentication would be enabled

    • robber@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      I used to run SFTPGO in a container as a NAS type service. Their default image is based on Debian, but they offer Alpine versions. Password authentication is enabled by default.

  • tapdattl@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    I’m assuming this is only if you allow password authentication? If you’re only allowing certificate based auth you should be safe, right?

    • smiletolerantly@awful.systemsOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      NO! Exactly the opposite, that is the problem. Key-only is a prerequisite for this.

      Edit: see also, the first thing that pops up under the link.

      • DrakiaXYZ@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        24 days ago

        The linked article literally says you need password login enabled at the ssh level. The account however needs to not have a password set

      • cecilkorik@piefed.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        24 days ago

        I think there is some confusion and potential for misinformation here. SSH in key-only mode (common configuration) protects you from this problem, because it never accepts or even attempts any passwords at all, regardless of length. SSH in password-allowed mode with at least one user who might be a key-only USER by merit of having a password hash of “*” (not a valid password hash) is a prerequisite for this. That is a very different and very common thing, as most systems come with at least one key-only user by default. But gaining access to that user with an incorrect, invalid password still requires having passwords enabled at all.

        To be clear: Password access enabled is a prerequisite, and by extension, password access disabled (key-only) prevents this.

        The website you linked clearly defines that all of these conditions must be true for you to be vulnerable, and as far as I can tell, it is exactly correct:

        is your sshd running on musl? (alpine, openwrt, buildroot, yocto)
        is it not using pam? alpine’s openssh-server doesn’t by default, or maybe you set UsePAM no
        are password logins still on? they are by default
        is there an account with just * as its password? key-only users, ldap users, root on alpine
        and some other account with a real password?

        then that * account takes any password between 257 and 1024 characters

        The * account which they suggest potentially being “key only” is the prerequisite you are talking about, but having SSH itself key-only (which is best practice anyway) prevents the attack entirely.

      • smiletolerantly@awful.systemsOP
        link
        fedilink
        English
        arrow-up
        0
        ·
        24 days ago

        NO! Exactly the opposite, that is the problem. Key-only is a prerequisite for this.

        Edit: see also, the first thing that pops up under the link.

        • AHemlocksLie@lemmy.zip
          link
          fedilink
          English
          arrow-up
          0
          ·
          24 days ago

          The “are you affected?” section directly contradicts this. It outright states you must have password authentication enabled. Otherwise, SSH never gives you a chance to even attempt a password.

        • HelloRoot@lemy.lol
          link
          fedilink
          English
          arrow-up
          0
          ·
          24 days ago

          Bottom of the page says what to do and gives 2 options to mitigate:

          # update. openssh 10.6p2 fixes it.
          $ apk upgrade openssh
          
          # can't update yet? turn password logins off.
          $ echo "PasswordAuthentication no" > /etc/ssh/sshd_config.d/00-no-passwords.conf
          $ rc-service sshd restart
          

          So if you disable password auth and only allow key auth, then you are unaffected (safe).

          The introis a bit confusing but it means that if you have password auth on - then even if your regular ssh login requires a key, you are not safe.

  • one_old_coder@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    Are your containers running Alpine?

    Most containers (99%) I have ever used were using Alpine because it’s small and fun. lol.

    • Orygin@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      24 days ago

      And 99.9% won’t have either ssh at all, or the port open, or password auth enabled.

      This is a nothing burger

  • GeneralDingus@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    I use alpine with an ssh port exposed to the internet so I can connect to it. This doesn’t seem to be an issue if you configured your settings to be secure.

    Never use just default settings.

  • lntl@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 days ago

    I wouldn’t recommend deploying any ssh server without reviewing the config and believe sane defaults are sane.