Testing Blog

CVE-2026-123158: SSHole — OpenSSH Password Authentication Bypass on musl libc

Written by Uptycs Threat Research | Nov 23, 2026, 2:33:36 PM

Severity: High (CVSS 3.1 8.1) · Exploitation: Actively exploited (CISA KEV since 2026-11-09) · Fix available: Yes

Summary

CVE-2026-123158, known as SSHole, is an authentication bypass vulnerability in OpenSSH's sshd daemon on Linux systems that use musl libc without PAM enabled. When an account has no password hash (the shadow file contains * in that field), sshd incorrectly interprets musl libc's crypt() return value for passwords between 256 and 1,024 characters as a successful match, granting access without valid credentials. An unauthenticated remote attacker who knows the name of such an account — a common configuration on Alpine Linux in its default state — can log in and gain full control of the system. The vulnerability was publicly disclosed on 2026-11-05 and was added to the CISA Known Exploited Vulnerabilities catalog on 2026-11-09. A fix is available in OpenSSH 10.6p2.

Technical details

The root cause is a misinterpretation of a return value (CWE-394). On systems using musl libc without PAM, crypt() returns * rather than NULL when it receives a password longer than 256 bytes. When the target account has no password hash — represented as * in /etc/shadow — sshd compares the two * strings, finds them equal, and incorrectly concludes that authentication succeeded. The attacker needs only a valid account name and the ability to reach the SSH port; no prior authentication or special privilege is required.

The CVSS 3.1 vector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H reflects network reachability with no required privileges or user interaction, though high attack complexity acknowledges that exploitation depends on the specific libc and account configuration. Post-authentication impact is rated high across confidentiality, integrity, and availability. The exact affected code path has been described publicly, and public proof-of-concept code is available.

Affected products

  • OpenSSH (OpenBSD) on Linux with musl libc and PAM disabled versions before 10.6p2 — fixed in 10.6p2
  • Alpine Linux (all versions using musl libc default configuration) — fixed by upgrading the openssh package to 10.6p2 or later
  • OpenWrt (all versions with musl libc and PAM disabled) — fixed by upgrading to OpenSSH 10.6p2 or later
  • Buildroot (all versions with musl libc and PAM disabled) — fixed by upgrading to OpenSSH 10.6p2 or later
  • Yocto Project (all versions with musl libc and PAM disabled) — fixed by upgrading to OpenSSH 10.6p2 or later

Impact

  • Unauthenticated remote access: An attacker with network access to the SSH port can authenticate as a no-password account — including root on many default Alpine Linux installations — without supplying any valid credential.
  • Full system compromise: Successful exploitation gives the attacker an interactive shell with the privileges of the bypassed account, enabling command execution, file access, and lateral movement.
  • Credential theft and persistent access: Threat actors exploiting this vulnerability have been observed stealing credentials and establishing persistence through new accounts, cron jobs, and system services.
  • Broad container and embedded-device exposure: Alpine Linux is widely used as a base image for containers and in embedded devices, significantly expanding the attack surface beyond traditional server deployments.

Exploitation status

Active exploitation was observed within hours of public disclosure on 2026-11-05, with SANS ISC honeypot data recording exploit attempts beginning that same day and rising sharply through 2026-11-06. CISA added CVE-2026-123158 to its KEV catalog on 2026-11-09, citing confirmed in-the-wild exploitation and setting a mandatory federal remediation deadline of 2026-11-12. Public proof-of-concept code is available, botnets and cryptominers have already adopted it, and the combination of mass-deployed Alpine Linux container images and internet-exposed SSH ports makes this vulnerability exceptionally high priority for immediate patching.

Recommended actions

  1. Upgrade OpenSSH to 10.6p2 or later on all Linux systems using musl libc. On Alpine Linux, run apk update && apk upgrade openssh. For OpenWrt, Buildroot, and Yocto environments, rebuild with the fixed OpenSSH version and redeploy.
  2. If immediate patching is not possible, disable password-based SSH authentication (PasswordAuthentication no in sshd_config) in favour of key-based authentication, or enable PAM support (UsePAM yes) as an interim workaround.
  3. Audit /etc/shadow for all accounts with * or empty password hash fields. Lock any such accounts that do not require interactive login using passwd -l <username>.
  4. Restrict SSH access at the network perimeter by limiting inbound connections on port 22 to known, trusted IP ranges. Block or alert on connections from the following observed attacker IPs (defanged): 109.94.173[.]13, 112.162.23[.]132, 121.163.224[.]97, 121.190.39[.]238, 152.233.50[.]185, 154.80.128[.]173, 156.238.252[.]37, 183.99.38[.]238.
  5. Hunt for signs of post-exploitation activity: review authentication logs for successful root password-based SSH logins on musl-based hosts; inspect /tmp and /dev/shm for unexpected executables or recently created files with broad execute permissions; check for new user accounts, cron entries, or systemd services created after any anomalous SSH login.
  6. Inventory all musl libc deployments, including container base images derived from Alpine Linux, and treat any unpatched instance with password authentication enabled as potentially compromised, following full incident response procedures.

How Uptycs helps

Uptycs vulnerability management continuously identifies hosts, containers, and cloud workloads running affected versions of OpenSSH on musl-based Linux systems, enabling security teams to prioritize patching efforts based on real-time exposure. Uptycs Threat Research continues to monitor SSHole exploitation activity and will update this bulletin if new indicators, techniques, or affected products are identified.

References

Update history

  • 2026-11-23 (v2): Refreshed.