Critical Authentication Bypass in Alpine Linux OpenSSH (CVE‑2026‑123158) Allows Password‑less Logins
What It Is – An authentication‑bypass flaw in the OpenSSH server shipped with Alpine Linux (and other musl‑based distros) was disclosed as CVE‑2026‑123158. The bug lives in the way the musl C library’s crypt() function handles password strings longer than 256 bytes. When OpenSSH is built without Pluggable Authentication Modules (PAM) and PasswordAuthentication is left enabled (the default), an attacker who can reach the SSH port can send a password payload of 257‑1024 bytes. Musl’s crypt() returns the literal string for such inputs, which OpenSSH then mistakenly treats as a successful hash match for any account whose password field already contains (i.e., password‑less or key‑only accounts). The result is a single‑connection, 100 % reliable login to any such account, without needing a private key or a valid password.
Affected Products – Alpine Linux releases 3.16 through 3.24 (including edge), the “tiny‑cloud” images (3.18.11‑3.24.3), and any other musl‑based Linux distribution that ships OpenSSH without PAM (e.g., Adélie Linux, Void Linux, Sabotage Linux, OpenWrt, Yocto Project builds, Wind River Linux).
Why It Matters for Trust & Control Assurance – The flaw directly violates the control objective of robust authentication mechanisms; a single mis‑configuration renders password‑based accounts trivially exploitable. Capability: ACCESS_CONTROLS – continuous verification of authentication settings and evidence of hardened SSH configurations.
Recommended Actions –
- Patch immediately. Run
apk upgrade -U -ato install the updated OpenSSH package (10.6p2 or Alpine‑specific patches) and then restart the daemon withrc-service sshd restart. - Disable password authentication if you cannot patch right away: set
PasswordAuthentication noin/etc/ssh/sshd_config, verify key‑based login works, then restart SSH. - Audit existing accounts. Search
/var/log/messages(or your system journal) forAccepted password forentries that reference accounts with a*password field. - Review privileged escalation paths (e.g.,
doasconfigurations) that could let an attacker reach root after initial compromise. - Implement multi‑factor authentication (MFA) for any remaining password‑based logins and enforce strict key management.
Source: ZDNet – Alpine Linux and OpenSSH patch flaw that’s as bad as it can get