Cybersecurity · AltTab Dad

Alpine OpenSSH password bypass: how to tell if your SSH was hit

Quick answer

Alpine Linux published a Nov 5 advisory: on openssh-server builds without PAM (the default package), an attacker who can reach your SSH port can log into accounts whose password field is * by sending a 257–1024 byte password — no real password needed. The issue is tracked as CVE-2026-123158. Fix: update openssh and restart sshd, or set PasswordAuthentication no and restart (Alpine advisory, Nov 5; OpenSSH 10.6p2 / GHSA-4fcc-vm97-gx3x).

Who’s affected

You are in scope if all of these are true:

Affected releases Alpine checked: 3.16 through 3.24 and edge.

Who’s not affected

How to check

  1. Confirm you are on Alpine and running sshd (rc-service sshd status or ps | grep sshd).
  2. Check auth settings: sshd -T | grep -i passwordauthentication and whether PAM is in use.
  3. Look for shadow * accounts: getent shadow | awk -F: '$2=="*"{print $1}' (as root).
  4. Review logs for impossible password logins: /var/log/messages lines like Accepted password for on accounts that have no password (alpine, root, or key-only users).
  5. On exposed hosts, also review doas use and recently added users, files, and authorized_keys.

What to do

  1. Update now: apk upgrade -U -a, then restart sshd (rc-service sshd restart). Package upgrade alone does not replace the running daemon. Fixed point releases include Alpine 3.21.10, 3.22.8, 3.23.8, 3.24.4 (and backports through 3.16).
  2. If you cannot update yet: set PasswordAuthentication no (keep a working key session open; test a new login before you disconnect), then restart sshd.
  3. If you cannot rule out a login: treat the machine as compromised — rotate keys, audit accounts, and rebuild from a known-good image when needed.
  4. tiny-cloud images: older images become exploitable once any $6$ hash appears (for example after setting a console password). Update or disable password auth on every running instance.

FAQ

Sources

Primary sources

Secondary sources