CVE-2026-123158 is a password authentication bypass in sshd from Portable OpenSSH before 10.6p2 on Linux systems built with musl libc and without PAM: a password of 257 to 1024 bytes logs into any account whose password field is '*' when another account has a $5$ or $6$ hash. CISA lists it as exploited. Update to 10.6p2 or set PasswordAuthentication no.
Vulnerability summary
CVSS base score
N/A
No NVD score published as of
EPSS score (FIRST)
18.9%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2026-123158 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| OpenBSD OpenSSH (Portable) sshd on Linux, musl libc, without PAM | cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* | Before 10.6p2 (CVE record); NVD lists versions before 10.6, 10.6 and 10.6p1, with Alpine Linux as the platform. Fixed in 10.6p2 |
| Alpine Linux openssh-server (and openssh-server-pam with UsePAM no) | cpe:2.3:o:alpinelinux:alpine_linux:*:*:*:*:*:*:*:* | Alpine 3.16 to 3.24 and edge; fixed in 10.6_p2-r0 (edge), 10.3_p1-r2 (3.24), 10.2_p1-r1 (3.23), 10.0_p1-r11 (3.22), 9.9_p2-r1 (3.21), 9.7_p1-r6 (3.20), 9.6_p1-r3 (3.19), 9.3_p2-r4 (3.18), 9.1_p1-r7 (3.17), 9.0_p1-r6 (3.16) (Alpine advisory 2026-11-05) |
| OpenWrt openssh-server package (built --without-pam) | pkg:openwrt/openssh-server | Package versions before 10.6_p2; the packages feed carries 10.6_p2-1 as of 2026-11-19 |
What does this mean for affected devices?
NVD carries MITRE's description: sshd in OpenSSH before 10.6p2 on Linux, "when musl libc is used without PAM, lacks a workaround for a password authentication bypass (related to misinterpretation of whether a string is intended to be a password hash). For some configurations of accounts, any password between 256 and 1024 characters succeeds." NVD published no Primary CVSS score as of 2026-11-19. MITRE, the CNA, scores it CVSS v3.1 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and classifies it as CWE-394 (unexpected status code or return value). The record was published on 2026-11-05 (NVD, CVE record).
How does the bypass work?
Alpine Linux's advisory of 2026-11-05 explains the root cause. Without PAM, sshd hashes the attempted password with crypt() and compares the result with the stored password field. For an account whose stored field is too short to hold a salt, sshd borrows the salt of another account. musl's crypt() returns the string * as an error when the key is over 256 bytes, and * is exactly what the stored field holds for an account with no password, so the comparison matches. Alpine lists the conditions: password authentication enabled (the OpenSSH default), an account whose password field is *, and at least one other account with a $5$ or $6$ hash. The attacker then sends a password of 257 to 1024 bytes. The OpenSSH 10.6p2 release notes call it "a critical security workaround that affects Linux systems that use the musl libc and PAM disabled" and say the project considers the root cause to be outside sshd.
Which devices and builds are affected?
Any Linux sshd before 10.6p2 built against musl without PAM, or built with PAM but run with UsePAM no, per Alpine. That is the default layout of several embedded build systems. OpenWrt's openssh package builds its openssh-server package with --without-pam, with PAM only in the separate openssh-server-pam package. Buildroot's openssh.mk passes --without-pam unless Linux-PAM is selected, and the OpenEmbedded-Core recipe does the same unless the pam distro feature is set. Key-only service accounts with * next to one admin account with a $6$ hash complete the conditions. Our OpenSSH vulnerabilities in embedded firmware guide shows how to read the libc, PAM setting and accounts from an image.
NVD's CPE configuration lists OpenSSH before 10.6, 10.6 and 10.6p1 together with Alpine Linux before 3.21.10, 3.22.0 to 3.22.7, 3.23.0 to 3.23.7 and 3.24.0 to 3.24.3 as the platform. A scanner that requires that platform match will not flag an OpenWrt, Buildroot or Yocto image that meets the same conditions. The Debian security tracker rates it unimportant for Debian and lists 1:10.6p2-1 as fixed in forky and sid as of 2026-11-19.
How do you fix CVE-2026-123158?
Update to Portable OpenSSH 10.6p2, or backport commit 4353fdc. It touches three files and rejects stored password fields shorter than four characters. Alpine shipped the fix in every branch back to 3.16 (9.0_p1-r6), and in 10.6_p2-r0 on edge. OpenWrt's packages feed, Buildroot and OpenEmbedded-Core all carried 10.6p2 on 2026-11-19. Restart sshd after the upgrade. Until then, set PasswordAuthentication no, which Alpine says closes the hole on its own. Alpine also advises reviewing /var/log/messages for Accepted password on accounts that have no password. Other OpenSSH flaws that a firmware scan often reports with this one are regreSSHion, CVE-2024-6387, and Terrapin, CVE-2023-48795.
Is CVE-2026-123158 exploited?
Yes. CISA added it to the KEV catalog on 2026-11-09 with a due date of 2026-11-12, and lists known ransomware campaign use as unknown, as of 2026-11-19 (catalog version 2026.11.18). FIRST EPSS gives it 0.189, the 97.4th percentile, in the 2026-11-18 dataset (CISA KEV, FIRST EPSS).
Evidence
- NVD: description (OpenSSH before 10.6p2 on Linux, musl libc without PAM, passwords of 256 to 1024 characters succeed for some account configurations, Alpine as example); no [email protected] metric; [email protected] Secondary CVSS 3.1 8.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H; CWE-394; CPE openssh before 10.6, 10.6, 10.6:p1 with non-vulnerable platform Alpine Linux before 3.21.10, 3.22.0-3.22.8, 3.23.0-3.23.8, 3.24.0-3.24.4 (end excluded); published 2026-11-05; status Analyzed, read 2026-11-19. — NVD
- CVE record (CNA MITRE): state PUBLISHED, published 2026-11-05; affected OpenSSH on Linux lessThan 10.6p2; CVSS 3.1 8.1; CWE-394; CISA ADP KEV dateAdded 2026-11-09, SSVC exploitation active. — CVE.org
- OpenSSH 10.6p2 release notes (2026-11-05): critical security workaround affecting Linux systems that use musl libc with PAM disabled; root cause considered outside sshd; reported by Ozgun Kultekin of Wakefield. — OpenSSH release notes
- Commit 4353fdc (Damien Miller, 2026-11-05) 'avoid password authn bypass': changes auth-passwd.c, port-uw.c, xcrypt.c; adds MIN_PASSWORD_HASH_LEN 4 so stored fields shorter than four characters never match. — openssh-portable GitHub
- Alpine advisory 2026-11-05: conditions (openssh-server without PAM or UsePAM no, PasswordAuthentication yes, an account with '*', another with $5$/$6$ hash; password 257-1024 bytes); musl crypt() returns '*' for keys over 256 bytes; fixed package versions per branch 3.16 to edge; PasswordAuthentication no closes the hole; check /var/log/messages for Accepted password. — Alpine Linux
- OpenWrt packages feed openssh Makefile: PKG_VERSION 10.6_p2, PKG_RELEASE 1; openssh-server variant without-pam (--without-pam); openssh-server-pam variant with-pam. Read 2026-11-19. — OpenWrt packages
- Buildroot openssh.mk: version 10.6p2; --with-pam only when BR2_PACKAGE_LINUX_PAM=y, otherwise --without-pam. Read 2026-11-19. — Buildroot
- OpenEmbedded-Core openssh_10.6p2.bb: --with-pam only when DISTRO_FEATURES contains pam, otherwise --without-pam. Read 2026-11-19. — OpenEmbedded-Core
- Debian: openssh fixed in 1:10.6p2-1 (forky, sid), urgency unimportant; bookworm and trixie listed vulnerable. Read 2026-11-19. — Debian security tracker
- In the CISA KEV catalog version 2026.11.18: dateAdded 2026-11-09, dueDate 2026-11-12, knownRansomwareCampaignUse Unknown, CWE-394. Checked 2026-11-19. — CISA KEV
- EPSS 0.189, percentile 0.97351, dataset 2026-11-18, read 2026-11-19. — FIRST EPSS

Related advisories
Sources
- NVD
- OpenSSH 10.6p2 release notes
- openssh-portable commit 4353fdc: avoid password authn bypass
- Alpine Linux security advisory: openssh-server password authentication bypass (2026-11-05)
- OpenWrt packages: openssh Makefile
- Buildroot: package/openssh/openssh.mk
- OpenEmbedded-Core: openssh_10.6p2.bb
- Debian security tracker: CVE-2026-123158
- CVE.org record CVE-2026-123158 (CNA: MITRE)
- CISA KEV
- FIRST EPSS
Frequently asked questions
Is an OpenWrt, Buildroot or Yocto device affected by CVE-2026-123158?
It can be. OpenWrt's openssh-server package, Buildroot without Linux-PAM and OpenEmbedded-Core without the pam distro feature all build sshd without PAM. The device is exposed if it also uses musl, runs OpenSSH before 10.6p2, allows password logins, has an account with '*' as its password field and another with a $5$ or $6$ hash (per the OpenWrt, Buildroot and OE-Core build files and Alpine's 2026-11-05 advisory).
Which version fixes CVE-2026-123158?
Portable OpenSSH 10.6p2, released on 2026-11-05, or a backport of commit 4353fdc. Alpine shipped fixed packages for every branch from 3.16 to edge, for example 10.3_p1-r2 on 3.24 and 9.0_p1-r6 on 3.16 (per the OpenSSH release notes and Alpine's advisory).
Is there a workaround for CVE-2026-123158?
Yes. Set PasswordAuthentication no and restart sshd. Alpine says this closes the hole on its own, and that openssh-server-pam with UsePAM yes is not affected (per Alpine's 2026-11-05 advisory).
Why does CVE-2026-123158 have no NVD score?
NVD published no Primary CVSS score as of 2026-11-19. The only score is MITRE's 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). CISA added it to the KEV catalog on 2026-11-09, and FIRST EPSS gives 0.189, the 97.4th percentile, in the 2026-11-18 dataset (per NVD, CISA KEV and FIRST EPSS).
Questions about this page?