OpenSSH: CVE-2026-123158 password bypass — unauthorised server access
Update OpenSSH and restart sshd on affected Alpine Linux systems. CVE-2026-123158 can let attackers bypass password authentication on exposed servers.
TL;DR — Update OpenSSH to Alpine Linux's fixed package for your branch and restart sshd. CVE-2026-123158 can let an attacker bypass password authentication on affected Linux servers using musl libc without PAM, when the required account and configuration conditions are present.
What is CVE-2026-123158?#
CVE-2026-123158 is a password authentication bypass in OpenSSH's sshd service on certain Linux configurations. An attacker who can reach the SSH service and knows the name of a suitable account can log in without knowing its password. Alpine Linux says exploitation also requires password authentication to be enabled and another local account to have a particular type of password hash. The issue has a CVSS base score of 8.1 out of 10.
Who is affected?#
The issue affects OpenSSH before 10.6p2 on Linux when musl libc is used without PAM and the relevant configuration and account conditions are met. Alpine Linux identifies the following fixed packages; distribution package versions differ from the upstream version.
| Product | Affected | Fixed |
|---|---|---|
| OpenSSH on Linux | Before 10.6p2, with musl libc without PAM and relevant settings | See vendor advisory |
| Alpine Linux edge | Affected configurations | 10.6_p2-r0 |
| Alpine Linux 3.24 | Affected configurations | 10.3_p1-r2 |
| Alpine Linux 3.23 | Affected configurations | 10.2_p1-r1 |
| Alpine Linux 3.22 | Affected configurations | 10.0_p1-r11 |
| Alpine Linux 3.21 | Affected configurations | 9.9_p2-r1 |
| Alpine Linux 3.20 | Affected configurations | 9.7_p1-r6 |
| Alpine Linux 3.19 | Affected configurations | 9.6_p1-r3 |
| Alpine Linux 3.18 | Affected configurations | 9.3_p2-r4 |
| Alpine Linux 3.17 | Affected configurations | 9.1_p1-r7 |
| Alpine Linux 3.16 | Affected configurations | 9.0_p1-r6 |
On Alpine, the affected configuration includes the standard openssh-server package, or openssh-server-pam with UsePAM no. Password authentication must be enabled, an account must have * as its password field, and at least one local account must have a $5$ or $6$ password hash.
Alpine says systems using openssh-server-pam with UsePAM yes are not affected, nor are systems with password authentication disabled. Containers that do not run sshd inside the container are also outside the affected group.
Is it being exploited?#
CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalogue on 9 November 2026. CISA's due date for US federal agencies is 12 November 2026. The entry does not indicate ransomware use.
The EPSS score is 0.01014, or approximately 1.014%. In plain English, that is an estimate of the probability of exploitation activity in the next 30 days, not the probability that your particular server will be compromised. CISA's listing confirms that exploitation has occurred.
How does the attack work?#
An attacker first needs a way to reach an affected server's SSH service and the name of an account that meets Alpine's conditions. The flaw lets the attacker pass the password check without knowing the account's password. Once signed in, what happens next depends on that account's permissions. Alpine notes that an account able to use doas can become root; its advisory describes that risk for affected tiny-cloud images.
What should you do now?#
- Update OpenSSH and restart sshd. On Alpine Linux, install the fixed package for your branch shown in the table above. Alpine lists fixed packages from 3.16 through 3.24 and edge. The upgrade alone does not replace the running daemon, so restart sshd after upgrading.
- If you cannot update yet, disable password logins. Alpine says to set
PasswordAuthentication noand restart sshd. First make sure SSH key login works, and keep your current session open until you have tested a new login. Follow Alpine's advisory for configuration guidance, including differences on older releases. - Confirm the change. Compare the installed package version against the fixed version for your Alpine branch and confirm the daemon was restarted. For the temporary mitigation, check that the effective configuration reports
passwordauthentication no. - Review exposed machines for signs of access. Alpine recommends looking in
/var/log/messagesfor sshd entries sayingAccepted passwordfor an account that has no password. Reviewdoasuse and recently created users, files and authorised keys. If you cannot rule out a login, Alpine says to treat the machine as compromised.
Our recommendation#
Prioritise the official OpenSSH update and daemon restart on affected, reachable servers. Check the account and authentication settings as well as the installed package version; a package upgrade without a restart is not enough. Use Alpine's password-login mitigation only while an update is unavailable.
Our vulnerability assessment identifies affected OpenSSH installations; we advise your team on remediation and retest to confirm the fix.
Frequently asked questions#
Am I affected by CVE-2026-123158?#
OpenSSH sshd before 10.6p2 on Linux is affected when it uses musl libc without PAM and the relevant account and password settings are present. Alpine Linux lists affected releases and configuration conditions in its advisory.
Is CVE-2026-123158 being exploited?#
Yes. CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalogue on 9 November 2026 and set 12 November 2026 as the due date for US federal agencies.
What should I do about the OpenSSH vulnerability?#
On affected Alpine Linux systems, update OpenSSH to the fixed package for your branch and restart sshd. Alpine warns that upgrading the package alone does not replace the running daemon.
Is there a workaround if I cannot update OpenSSH yet?#
Alpine Linux says to disable password logins by setting PasswordAuthentication no and restarting sshd. First confirm that SSH key login works and keep your existing session open until you have tested a new login.
How can I confirm the OpenSSH fix is in place?#
Compare the installed Alpine OpenSSH package version with the fixed version for your branch in Alpine's advisory, and confirm that sshd was restarted after the upgrade. If using the temporary password-login mitigation, also check that the effective configuration reports passwordauthentication no.
Sources#
Vulnerability Assessment
The weak spots in your systems, found and checked by hand.

