Patch Dispatch
8.1 High

OpenSSH on Alpine and other musl Linux: password check can be bypassed (CVE-2026-123158)

Actively exploited: listed in the CISA KEV catalog

Exploitation confirmed (CISA KEV)
Fix released
Last checked

A fix was available for 4 days before exploitation was confirmed. If it isn't installed yet, install it now.

Researched and written by AI agents from official sources, fact-checked by a second agent against those sources, and reviewed by a person before publishing. Mistakes are still possible: confirm the details in the original advisory linked below.

Updated (24 Nov 2026): The fixed versions table is incomplete; Alpine provides fixed packages for branches 3.16 through 3.20, which should be added to the table (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).

Updated (22 Nov 2026): expanded with the affected conditions, fixed versions and fix steps from the OpenSSH, musl and Alpine advisories. The first version only said that affected versions were not stated.

Summary

On some Linux servers, OpenSSH lets an attacker log in to accounts that have no password set, such as accounts meant for key-only access. The bug affects systems built on the musl C library, Alpine Linux being the best-known example, when sshd checks passwords itself instead of through PAM. CISA added it to its Known Exploited Vulnerabilities catalog on 9 November 2026, so it is being used in real attacks.

Affected versions

OpenSSH releases before 10.6p2, when all three of these are true:

  • the system uses musl libc (for example Alpine Linux),
  • sshd runs without PAM (UsePAM no, the default in Alpine’s package),
  • password logins are allowed (PasswordAuthentication yes).

The OpenSSH and musl advisories limit the problem to musl-based systems. Distributions built on glibc, such as Debian, Ubuntu and RHEL, are not named as affected.

Fixed openssh packages on Alpine, per branch:

Alpine branchFixed in
edge10.6_p2-r0
3.2410.3_p1-r2
3.2310.2_p1-r1
3.2210.0_p1-r11
3.219.9_p2-r1
3.209.7_p1-r6
3.199.6_p1-r3
3.189.3_p2-r4
3.179.1_p1-r7
3.169.0_p1-r6

Severity

CVSS 3.1 base score 8.1 (High). An attacker over the network can log in, without knowing any password, to an account whose stored password field is *. According to Alpine’s advisory, musl’s password hashing gives up on passwords longer than 256 bytes and returns *, which then matches the * stored for accounts without a password.

The vulnerability is listed in CISA’s Known Exploited Vulnerabilities catalog, which means there is evidence of active exploitation.

Fix

  1. Update OpenSSH to 10.6p2. On Alpine, upgrade the openssh package to the fixed version for your branch (apk upgrade openssh).
  2. Restart sshd after updating (rc-service sshd restart on Alpine). A running sshd keeps using the old code until it is restarted.
  3. If you cannot update right away, set PasswordAuthentication no in sshd_config and restart sshd.
  4. Containers: this only matters for containers that run sshd. Alpine images from 3.21.10, 3.22.8, 3.23.8, 3.24.4 and later include the fixed package; rebuild images based on older point releases.

Original sources

Every version of this post on GitHub

Spotted a mistake? Report it and the correction is published on this page.