Alpine Linux’s SSH password bypass affects hosts only when specific OpenSSH, PAM, authentication, and account conditions line up. Alpine published its advisory on November 5, 2026, and lists fixed package revisions for branches 3.16 through 3.24 and edge. Check your host against those conditions, install the revision for your branch, and restart sshd to load the fix. Alpine’s security advisory gives the full scope and remediation steps.
Check whether the host meets Alpine’s conditions
Alpine identifies two affected package configurations: openssh-server built without PAM, or openssh-server-pam running with UsePAM no. The SSH service must also have PasswordAuthentication yes, the targeted account’s password field must be *, and another local account must have a $5$ or $6$ password hash. The attempted password is 257–1,024 bytes. An attacker also needs network access to SSH and the username of an account with the * field.
A key-only account is not automatically protected if password authentication remains enabled and the other conditions apply. Alpine lists openssh-server-pam with UsePAM yes, effective PasswordAuthentication no, accounts marked with !, and systems without a qualifying hash among the configurations it says are not affected. Containers that do not run sshd are also outside the advisory’s affected scope.
Why an overlong password can pass this check
The failure involves two uses of the same marker. Alpine says musl’s crypt() returns * as an error indicator when the input exceeds 256 bytes. In OpenSSH’s non-PAM password-checking path, that result can match an account’s stored * field. A $5$ or $6$ hash on another local account supplies the salt needed for the check. The package and account requirements determine whether that collision can affect a particular host.
Match the Alpine branch to its fixed package
Install the revision listed for the host’s branch. Alpine lists these fixed OpenSSH package versions:
| Alpine branch | Fixed OpenSSH package revision |
|---|---|
| edge | 10.6_p2-r0 |
| 3.24 | 10.3_p1-r2 |
| 3.23 | 10.2_p1-r1 |
| 3.22 | 10.0_p1-r11 |
| 3.21 | 9.9_p2-r1 |
| 3.20 | 9.7_p1-r6 |
| 3.19 | 9.6_p1-r3 |
| 3.18 | 9.3_p2-r4 |
| 3.17 | 9.1_p1-r7 |
| 3.16 | 9.0_p1-r6 |
Run Alpine’s package update command, then restart the SSH daemon:
apk upgrade -U -a
rc-service sshd restart
Installing the package does not replace an already-running daemon. Restarting sshd loads the updated executable; Alpine’s remediation calls for a daemon restart, not a full system reboot.
Disable password logins safely if you cannot patch yet
Use this interim mitigation only after confirming you can log in with an SSH key. Keep your existing session open until a fresh connection succeeds.
Keep the current SSH session open until you have verified a new key-based login after the change.
- Verify key access. Open a separate SSH connection using a key and confirm that you can reach the host before changing its authentication settings.
- Keep the existing session open. Leave it connected while you make the change and test another login, so a configuration mistake does not immediately cut off your remote access.
- Disable password authentication. Set
PasswordAuthentication noin the SSH server configuration the release actually reads. - Check the configuration syntax. Run
sshd -tbefore restarting the service. - Restart the daemon. Apply the setting with
rc-service sshd restart. - Check the effective setting and reconnect. Run
sshd -T | grep -i passwordauthenticationand confirm that the effective value ispasswordauthentication no. Test a fresh key-based login before closing the original session.
Alpine says its default configuration drop-in directory is read from release 3.19 onward; older releases ignore it. Put the setting in a configuration file that your release reads.
Check Alpine tiny-cloud instances and logs
Alpine identifies official tiny-cloud qcow2, VHD, and AMI artifacts from versions 3.18.11 through 3.24.3. They contain an alpine account with a * password field and passwordless doas. Alpine says the images are safe on first boot; the exposure conditions can arise after a $6$ hash exists, such as after setting a console password or adding a user with hashed_passwd. Update running instances or disable password authentication; rebuilding an image does not update a VM that is already running.
If you are reviewing a host for possible unauthorized access, Alpine recommends checking /var/log/messages for successful sshd entries such as Accepted password for accounts without passwords, including alpine, root, or key-only users. Also review doas use, new users, files, and authorized keys. Alpine advises treating the machine as compromised if you cannot rule out a login.