
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 branch | Fixed in |
|---|---|
| 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 |
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
- Update OpenSSH to 10.6p2. On Alpine, upgrade the
opensshpackage to the fixed version for your branch (apk upgrade openssh). - Restart sshd after updating (
rc-service sshd restarton Alpine). A running sshd keeps using the old code until it is restarted. - If you cannot update right away, set
PasswordAuthentication noinsshd_configand restart sshd. - 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
- https://nvd.nist.gov/vuln/detail/CVE-2026-123158
- https://www.cve.org/CVERecord?id=CVE-2026-123158
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://www.openwall.com/lists/oss-security/2026/11/05/2
- https://www.openwall.com/lists/musl/2026/11/05/4
- https://alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/
- https://github.com/openssh/openssh-portable/commit/4353fdc43ef646c43a8dda7025cc1a898caf1482
Every version of this post on GitHub
Spotted a mistake? Report it and the correction is published on this page.