S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
2026-11-05 linux, homelab, self-hosting

Alpine Linux Patches Critical OpenSSH Password Bypass — Update and Restart sshd Now

Alpine Linux published a security advisory on November 5 for a password-authentication bypass in its openssh-server package, alongside four coordinated point releases — 3.21.10, 3.22.8, 3.23.8, and 3.24.4 — that carry the fix. An attacker who can reach your SSH port can log in to passwordless accounts without knowing any password, in what the advisory describes as one connection that works every time with no retries. There is a second half to the fix that is easy to skip: upgrading the package does not restart the running daemon, so you must restart sshd afterward or you are still vulnerable.

How the bypass works

The hole sits where Alpine's OpenSSH build checks passwords itself instead of handing them to PAM, combined with a quirk in musl libc's crypt() function. When a login password is longer than 256 bytes, musl's crypt() returns the string as an error indicator — and is exactly what sits in the password field of every account with no password set, so the comparison matches and the login succeeds. Upstream OpenSSH 10.6p2, released the same day, works around the problem in sshd, and Alpine's fixed packages carry the equivalent protection backported across versions.

A machine is exposed only when every condition lines up, as the advisory and independent analyses agree: it runs Alpine's default openssh-server build without PAM (or the PAM build with UsePAM no), password authentication is on (the OpenSSH default), at least one account has a * password field such as a key-only user, and at least one other local account holds a real $5$ or $6$ password hash. One ordinary user with a password is enough to make every passwordless account on the box reachable. The flaw was reported by researcher Özgün Kültekin of Wakefield, and OpenSSH developer Damien Miller's guidance was blunt: if you run an affected system, stop reading and set PasswordAuthentication=no or disable SSH for these systems IMMEDIATELY, as quoted in independent coverage of the release. No CVE identifier had been assigned when the advisory went out.

Why homelabbers should pay attention

Alpine is the default base image for a huge share of containers, and it is a popular pick for lightweight Proxmox LXC guests and VMs — so this lands directly in homelab territory. The good news first: containers that do not run sshd are not exposed, which covers the typical compose stack where SSH never runs inside the container. If you do run sshd inside an Alpine container, rebuild the image so it picks up the fixed package rather than just patching the host.

The sharper edge is Alpine's official cloud images. The tiny-cloud images from 3.18.11 through 3.24.3 ship an alpine user with a * password field and passwordless doas, according to the advisory. They are safe on first boot but become exploitable the moment any $6$ hash exists on the machine — setting a console password or adding a user via user-data is enough — at which point an attacker lands a shell as alpine and escalates to root. New images built from the fixed point releases include the patched package; every running instance of an older image needs the update or the workaround. Also note the release carries a second, separate fix: a security update to apk-tools 3.0.9 and 2.14.13 against crashes on malformed data, so a full upgrade covers both.

What to do right now

On any Alpine host or guest running sshd, update and then restart the daemon:

Confirm the running daemon picked it up, and check your package with apk info -v | grep openssh against the fixed versions in the advisory: 10.6_p2-r0 on edge, 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, 10.0_p1-r11 on 3.22, 9.9_p2-r1 on 3.21, with backports all the way to 3.16 — even though 3.21 reached end of support on November 1. If you cannot update yet, set PasswordAuthentication no in sshd_config and restart sshd, but confirm your key-based login works first or you will lock yourself out.

Then check whether someone already walked in. Look in /var/log/messages for sshd lines reading Accepted password for an account that has no password, and review doas use plus recently created users, files, and authorized keys on exposed machines. The advisory's rule is simple: if you cannot rule out a login, treat the machine as compromised.

What remains uncertain

No CVE exists yet, so scanners and dashboards that key off CVE identifiers will not flag this — track it by the advisory and package versions instead. Detectify reports no public exploitation as of November 5 but expects scanning now that the details are public, and Heise notes the developers rushed the release partly from fear that others could rediscover the bug with AI assistance. Beyond Alpine, other musl-based systems that run OpenSSH without PAM — some Buildroot or Yocto builds, and OpenWrt devices running OpenSSH — may be exposed too, while glibc distributions, PAM-based logins, and Dropbear-based devices are not affected. If you run anything musl-based with sshd beyond Alpine, verify its status with its own vendor rather than assuming the Alpine fix covers you.

Comments (0)

No comments yet — start the thread.

Log in to comment.