Websites · Mobile Apps · Web Apps & SaaS · AI
Home / Blog / Technology

OpenSSH 'SSHole' CVE-2026-123158: Check Alpine and musl Servers, Then Restart sshd

OpenSSH 10.6p2 fixes CVE-2026-123158, a login bypass on musl-based Linux such as Alpine. Attempts were reported within hours. Here is who is affected and what to do.

OpenSSH 'SSHole' CVE-2026-123158: Check Alpine and musl Servers, Then Restart sshd
Quick answer

CVE-2026-123158, nicknamed SSHole, is an OpenSSH authentication bypass that affects sshd built for musl libc without PAM, which includes Alpine Linux's default OpenSSH server. In that setup an unauthenticated attacker can sign in to an account that has no usable password, such as root or a key-only user, by sending an oversized password. It is rated CVSS 8.1 and is fixed in OpenSSH 10.6p2, released on 5 November 2026. The Hacker News reports that threat intelligence firm Previdian saw exploitation attempts less than nine hours after the CVE was published, including a confirmed root login on a honeypot. glibc-based Linux, PAM-enabled sshd, Dropbear and non-Linux systems are not affected. Install the patched package, restart sshd, and check logs for password logins to accounts that should have none.

A lot of small businesses run Linux in places they do not think about: a container that serves their website, a build server, a router, a small cloud instance picked because its image was tiny. If any of those run Alpine Linux and expose SSH, this week's OpenSSH fix is for you. On 5 November 2026 the OpenSSH project released 10.6p2 to fix CVE-2026-123158, nicknamed SSHole, and security firms say attackers moved quickly. We have not tested the flaw, and this article leaves out how to trigger it.

A technician working at a laptop beside a server rackSSH is how most Linux servers are managed, so a login flaw there is worth a quick audit. Photo: Derrick Coetzee, CC0, via Wikimedia Commons

The short answer

  • What it is: an OpenSSH sshd authentication bypass on musl libc without PAM, tracked as CVE-2026-123158 with a CVSS 3.1 score of 8.1 per the CVE record.
  • Who is exposed: Alpine Linux's default OpenSSH server and other musl-based systems with the settings below. glibc distributions, PAM-enabled sshd, Dropbear and non-Linux systems are not affected.
  • Impact: sign-in as an account that has no usable password, including root or a key-only deploy user, without stealing a credential.
  • Exploitation: reported within hours by Previdian via The Hacker News, including a confirmed root login on a honeypot.
  • Fix: OpenSSH 10.6p2 or your distribution's patched package, then restart sshd.

What the sources say

The CVE record, published by MITRE and mirrored by NVD on 5 November 2026, says that 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 misinterpreting whether a string is a password hash. For some account configurations, an overlong password succeeds. It names Alpine Linux as an example platform and the weakness as CWE-394, unexpected status code or return value.

Orca Security's research note explains the cause in general terms. musl's password-hashing function returns an asterisk when it fails, and locked or key-only accounts also store an asterisk in their password field. When sshd checks passwords itself, without PAM, a password that makes hashing fail can produce a value that matches the stored asterisk, and the login is accepted. The Hacker News adds that the underlying behavior traces to a 2016 change meant to fix a username-enumeration bug, and credits the discovery to researcher Ozgun Kultekin.

Orca lists the conditions that must all hold for a system to be affected: sshd built without PAM, or running with UsePAM set to no, on musl libc; password authentication on, which is the default; at least one account with an asterisk as its password field; and at least one local account with a SHA-256 or SHA-512 hash. It names exposed accounts such as root on Alpine 3.16 and later, key-only service and deploy users, directory-backed users, and the default user in tiny-cloud images that has passwordless doas.

On exploitation, the sources differ because they were written at different times. Orca's note, published on 5 November, said no exploitation in the wild had been reported yet. The Hacker News, on 6 November, reports that Previdian observed the first attempt less than nine hours after the CVE was published, eight attempts in total from a single address, and a confirmed root login on an Alpine honeypot, with the attacker running basic reconnaissance commands. Safe Security, quoted in the same article, notes that the damage depends on the compromised account's privileges and that attackers may then reach deployment credentials and application secrets. We treat exposed, unpatched hosts as a priority.

Why this matters to a small business

You may not run Alpine on purpose. It is popular as a base image for containers because it is small, so it can be inside a Docker image someone built for you, a router or embedded device firmware, or a vendor appliance. The issue only matters if that environment runs an SSH server, which many containers do not. That is the point of the first task below: find out, don't assume.

The risk is also disproportionate to its complexity. The attacker needs no stolen password or key, just network access to the SSH port and a vulnerable setup. If the host can reach your database or cloud credentials, a root login is the start of a larger problem.

What to do this week

  1. List your Linux hosts and images. Include cloud servers, containers, routers and appliances. For each, note the distribution and the C library. Alpine and OpenWrt use musl.
  2. Find which ones run sshd. A container that does not run an SSH server is not exposed through this flaw.
  3. Check the settings. Look for sshd built without PAM and for password authentication being on.
  4. Patch. Install OpenSSH 10.6p2 or your distribution's patched package. Orca lists Alpine packages for each release: 10.6_p2-r0 on edge, 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, 10.0_p1-r11 on 3.22, 9.9_p2-r1 on 3.21 and 9.7_p1-r6 on 3.20.
  5. Restart sshd. Orca stresses that upgrading the package does not replace the daemon that is already running.
  6. If you cannot patch yet, set PasswordAuthentication no, which Orca says closes the hole, and confirm key-based login still works before you close your session.
  7. Check the logs. Alpine advises searching /var/log/messages for sshd lines reading Accepted password for accounts that should have no password.
  8. Review for signs of a break-in. Look at doas use, recently created users and files, and authorized keys. Alpine says to treat a machine as compromised if you cannot rule out a login.
  9. Rotate secrets on any suspect host. Change deployment keys, application secrets and cloud credentials it could reach.
  10. Reduce SSH exposure for good. Put SSH behind a VPN or an allow-list, and prefer keys only. Our custom software development team can help you tidy server access, and you can talk to us.

This is another case where speed matters, which our post on why faster AI bug-hunting means a faster patch routine argues in more detail. For a related Linux server fix this week, see the Linux kernel TCP flaw CVE-2026-98432.

Common mistakes to avoid

  • Upgrading and not restarting. The old sshd process keeps running with the old code.
  • Assuming "we use Ubuntu" means safe everywhere. The container image on top may be Alpine.
  • Assuming a locked account is a safe account. In the vulnerable setup, that is exactly the kind of account exposed.
  • Closing your own session before testing key login. If you switch off password login, test keys from a second window first.
  • Only checking the host, not the images. Rebuild and redeploy images that include the old OpenSSH.

Checklist

  • List all Linux hosts, containers and appliances and note the distribution.
  • Mark every system that uses musl libc, such as Alpine or OpenWrt.
  • Find which of them run sshd and are reachable from the internet.
  • Install OpenSSH 10.6p2 or the distribution's patched package.
  • Restart sshd on every patched system.
  • Rebuild and redeploy container images that bundle sshd.
  • Set PasswordAuthentication no where you cannot patch immediately.
  • Search logs for Accepted password lines on accounts that have no password.
  • Review users, authorized keys and recent files on exposed hosts.
  • Rotate keys and secrets on any host you cannot clear.
  • Restrict SSH access to a VPN or allow-list.

Key takeaways

  • CVE-2026-123158 (SSHole) is an OpenSSH login bypass on musl libc without PAM, rated CVSS 8.1 and fixed in 10.6p2.
  • It affects Alpine's default OpenSSH server and possibly other musl systems, not glibc distributions, PAM-enabled sshd or Dropbear.
  • The Hacker News reports exploitation attempts within nine hours and a confirmed root login on a honeypot, so exposed hosts are a priority.
  • Patch, then restart sshd, because the package upgrade alone does not replace the running daemon.
  • Check logs for password logins to accounts that should have none, and treat unclear cases as compromised.
  • Know what runs inside your container images, since small base images like Alpine are common.

Sources

Frequently asked questions

What is the SSHole vulnerability?

SSHole is the nickname for CVE-2026-123158, an authentication bypass in OpenSSH's sshd on Linux systems that use the musl C library without PAM. The CVE record says that in some account configurations a very long password succeeds. Accounts with no usable password, marked with an asterisk in the password field, are the ones exposed.

Which systems are affected and which are not?

Per Orca Security, affected systems have sshd built without PAM on musl libc, password authentication on (the default), at least one account with an asterisk as its password field and at least one local account with a SHA-256 or SHA-512 hash. Alpine Linux 3.16 to 3.24 and edge are named, and other musl systems such as OpenWrt, Buildroot and Yocto builds, and container images that run sshd, may also be exposed. glibc distributions, PAM-enabled sshd, Dropbear and non-Linux systems are not affected.

Is it being exploited?

The Hacker News reports that Previdian saw the first exploitation attempt less than nine hours after the CVE was published, eight attempts in total from one source address, and a confirmed root login on an Alpine honeypot. Orca's earlier write-up said no exploitation had been reported at that time. Treat exposed hosts as a priority.

How do I fix it?

Upgrade to OpenSSH 10.6p2 or your distribution's patched package, then restart sshd, because upgrading the package does not replace the daemon already running. On Alpine, Orca lists fixed packages for each release. If you cannot patch yet, Orca says setting PasswordAuthentication no closes the hole.

How do I tell whether someone already got in?

Alpine advises searching /var/log/messages for sshd lines reading Accepted password for an account that has no password, such as alpine, root or any key-only user, and reviewing doas use and recently created users, files and authorized keys. If you cannot rule out a login, treat the machine as compromised.

Written by the Susraj Tech team

We design and build websites, mobile apps, SaaS products and AI solutions. Have a project in mind? Tell us about it and we’ll send a clear, written quote.

Have an idea? Let’s build it.

Tell us what you need and we’ll reply with a clear, written quote. No pressure, no jargon.