Free tech learning for everyone, from basics to pro

Photo: Domaintechnik on Unsplash

NewsBeginner

A very long password could open some Linux servers: update OpenSSH on Alpine

In short: A flaw nicknamed "sshole" (CVE-2026-123158) let anyone log in over SSH to certain locked accounts on Alpine Linux and other musl-based systems by typing any password longer than 256 characters. It only affects systems that use OpenSSH without PAM and allow password logins. Fixed packages are out, and attackers began trying it within hours.

What happened

On 5 November 2026 OpenSSH released version 10.6p2 and Alpine Linux shipped fixed packages for a flaw now tracked as CVE-2026-123158, nicknamed "sshole". It was found by researcher Özgün Kültekin, who tested SSH servers with thousands of unusual login attempts.

On affected systems, an account that should never accept a password (one marked with * in /etc/shadow, such as a key-only user) would accept any password between 257 and 1,024 characters long. In other words, the "locked" door opened for anyone who typed a long enough string.

How three sensible changes added up to one bad bug

No single project made an obvious mistake. The problem came from three separate decisions meeting each other:

  1. musl, a small C library used by Alpine and many embedded systems, returns * instead of nothing when password hashing fails, because many programs never checked for an error.
  2. musl's SHA-512 password hashing fails for passwords over 256 bytes, so it returns that *.
  3. Since 2016, OpenSSH still hashes the password for accounts without a usable hash, so attackers cannot tell from the response time which accounts exist.

Put together: a 300-character password is hashed, musl gives back *, OpenSSH compares it with the * stored for the locked account, and they match. It went unnoticed for about ten years because OpenSSH is mostly tested on OpenBSD and glibc systems, and most Linux distributions handle passwords through PAM instead.

Who is affected

A server is at risk only when all of these are true:

  • it runs OpenSSH on musl (mainly Alpine Linux, plus some embedded systems built with Buildroot or Yocto, and OpenWrt devices where OpenSSH replaced the default server);
  • OpenSSH checks passwords itself, without PAM (Alpine's standard openssh-server package works this way);
  • password logins are allowed, which is OpenSSH's default;
  • at least one account is locked with *, and another account has a real password.

Alpine's cloud images on AWS and Azure create an alpine user locked with * that can become root without a password, so they are a particular concern once any account has a password set.

Not affected: Debian, Ubuntu, Fedora and other glibc-based distributions; systems where PAM handles passwords; and Dropbear, the SSH server OpenWrt uses by default.

A security firm logged the first attack attempt less than nine hours after the details were published, and working attack code is public, so this is not a "patch it next month" issue.

What it means for you

If you run Alpine containers, cloud servers or home-lab boxes with SSH open, check them today. It is also a good reminder of a basic rule: use SSH keys and turn off password logins on anything reachable from the internet. Our comparison of SSH and Telnet explains why SSH is the right tool, and keeping devices updated covers the habit that fixes most problems like this one.

How to fix it

  1. Update and restart SSH: apk update && apk upgrade, then rc-service sshd restart. Check the version with apk info -v | grep openssh.
  2. Rebuild any Alpine-based container images that run sshd, so they pick up the fixed package.
  3. If you cannot update yet, set PasswordAuthentication no in /etc/ssh/sshd_config (check Match blocks too), make sure your key login works, and restart sshd. Or limit SSH to trusted addresses with a firewall.
  4. Look for warning signs: run grep "Accepted password" /var/log/messages. If an account whose password field is only * ever logged in with a password, treat the machine as compromised.

Key takeaways

  • On Alpine and other musl systems, locked SSH accounts accepted any password longer than 256 characters.
  • Only OpenSSH without PAM, with password logins on, is affected; Debian, Ubuntu, Fedora and Dropbear are not.
  • Fixed packages came out on 5 November, and attack attempts started within hours.
  • Update with apk upgrade, rebuild containers and switch SSH to key-only logins.

Understand the basics

New to this topic? These short FM TecHub guides explain the ideas behind this story.

Sources and further reading

Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

© 2026 FM TecHub. Original content written for FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: