All articles

OpenSSH Authentication Bypass: Patch CVE-2026-123158 and Check SSH Access

An OpenSSH authentication bypass can affect musl-based Linux systems without PAM. Identify exposed SSH servers, apply fixes, and review access logs.

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:

bash
cat /etc/os-release
apk info -v | grep '^openssh'
/usr/sbin/sshd -V 2>&1

Check the effective server configuration (which can differ from individual config-file lines):

bash
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

  1. Record the distribution release, installed OpenSSH package version, and effective SSH authentication settings.

  2. Verify that a working SSH key and out-of-band/console recovery path are available before changing authentication settings.

  3. Install the vendor-patched OpenSSH package. On supported Alpine Linux releases:

    bash
    sudo apk update
    sudo apk upgrade openssh
  4. Validate the SSH configuration and restart the service from a session you keep open:

    bash
    sudo sshd -t
    sudo rc-service sshd restart
  5. Open 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):

bash
grep -Ei 'sshd.*Accepted password' /var/log/messages 2>/dev/null

Correlate 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

Published November 7, 2026. Check the vendor advisory for later updates.

See it on your own fleet

Enroll a few hosts and RemediForge shows what each one is missing.

Start free trial
OpenSSH Authentication Bypass: Patch CVE-2026-123158 and Check SSH Access | RemediForge