OpenSSH Authentication Bypass: Patch CVE-2026-123158 and Check SSH Access
OpenSSH released 10.6p2 on November 5, 2026 to address CVE-2026-123158, an authentication-bypass issue nicknamed SSHole. The flaw concerns particular Linux configurations using musl libc with OpenSSH password authentication without PAM. It does not mean that every OpenSSH server is vulnerable.
Action: Prioritize internet-facing musl-based SSH servers, especially Alpine Linux installations. Apply your distribution's patched OpenSSH package and separately review logs for unexpected successful password logins.
Which systems need attention?
The risk depends on the effective configuration, not only the version string. Assess systems where all of these conditions may occur:
- OpenSSH server uses musl libc and authenticates passwords without PAM.
- PasswordAuthentication is enabled.
- A target local account has a
*password field and the system has another account with a compatible password hash.
Standard glibc-based distributions using their usual authentication setup are not affected by this specific musl interaction. Confirm the vendor's package advisory before deciding a host is safe or vulnerable. A distribution may backport the fix without changing the upstream version to 10.6p2.
Check the installed version and SSH configuration
On Alpine Linux:
cat /etc/os-release
apk info -v | grep '^openssh'
/usr/sbin/sshd -V 2>&1Check the effective server configuration (which can differ from individual config-file lines):
sudo sshd -T | grep -Ei '^(passwordauthentication|usepam|permitrootlogin) 'For settings conditional on the connecting user or source, evaluate them with the relevant sshd -T -C connection parameters. Do not assume ssh -V (the client version) proves the server is patched.
Patch safely
Record the distribution release, installed OpenSSH package version, and effective SSH authentication settings.
Verify that a working SSH key and out-of-band/console recovery path are available before changing authentication settings.
Install the vendor-patched OpenSSH package. On supported Alpine Linux releases:
sudo apk update sudo apk upgrade opensshValidate the SSH configuration and restart the service from a session you keep open:
sudo sshd -t sudo rc-service sshd restartOpen a new SSH session and verify key-based login, the installed package version, and effective authentication settings before closing the original session.
Temporary mitigation: If patching cannot be completed immediately, disable SSH password authentication where operationally possible by setting PasswordAuthentication no, validating with sshd -t, and restarting the service. Verify that drop-in files and conditional Match rules do not override the intended setting. This is a mitigation, not a substitute for patching.
Check for possible exploitation
Review successful SSH password logins, particularly for privileged accounts or accounts intended to be key-only. On Alpine systems, check whichever logging destination is configured (for example /var/log/messages, syslog, or centralized logging):
grep -Ei 'sshd.*Accepted password' /var/log/messages 2>/dev/nullCorrelate suspicious logins with source IPs, account changes, authorized_keys modifications, unexpected processes, and outbound connections. A successful password-login event is not automatically proof of exploitation; a clean log search does not rule it out. If compromise is suspected, preserve evidence and follow your incident-response process.
What should security teams track?
For each potentially affected SSH endpoint, record its owner, distribution and release, OpenSSH package version, internet exposure, PAM and password-authentication settings, patch status, service restart time, and post-patch login validation. Track compromise assessment separately from patch completion.
Sources
- OpenSSH: Release Notes for 10.6p2
- Alpine Linux: OpenSSH Password Authentication Bypass
- Red Hat: CVE-2026-123158
Published November 7, 2026. Check the vendor advisory for later updates.