SSHole: a long password opened passwordless accounts on Alpine, and the patch needs a restart

CVE-2026-123158 let attackers log in to passwordless accounts on musl systems like Alpine, and the first attempts came about eight hours after disclosure. What broke, which AWS images are exposed, and why upgrading the package is not enough.

Antivenom5 min read

On November 5, OpenSSH shipped version 10.6p2 to fix a password authentication bypass on "Linux systems that use the musl libc and PAM disabled." Alpine Linux, the most common musl distribution, published its advisory the same day: an attacker who can reach the SSH port can log in, without a password, to an account whose password field is *. It "takes one connection, works every time, and needs no retries." The bug is CVE-2026-123158, and its finder named it SSHole.

Attackers moved fast. Threat intelligence firm Previdian says its sensors saw the first attempt less than nine hours after the CVE was published. CISA added it to the Known Exploited Vulnerabilities catalog on November 9.

Diagram: a timeline from the fix on November 5 to the first attempts about eight hours later and the CISA KEV listing on November 9, above the chain of conditions that makes a host exploitable and the three controls that each break it.

What happened

The researcher, Özgün Kültekin of Wakefield, traces the bug to three decisions that were each reasonable on their own, made years apart by different projects.

  • In 2012, musl's crypt() started returning "*" on failure instead of NULL, and its SHA-512 implementation rejects passwords longer than 256 bytes.
  • In 2016, to fix a username timing leak (CVE-2016-6210), OpenSSH started hashing the supplied password with a salt borrowed from another account, even when the target account has no usable hash.
  • Around Alpine 3.16, the root account shipped with * in its password field, and key-only users, users from directory services and the default cloud user carry the same marker.

Put together, an oversized password makes crypt() fail, the failure value is "*", and "*" matches what is stored for the account. The OpenSSH maintainers wrote that they "consider the root cause of this bug to be outside sshd, but it is exploitable via sshd and can be avoided there."

Kültekin says he built sshd in many configurations and used AI agent swarms to send about 17,600 unusual login attempts. Only the musl build without PAM accepted logins it should have refused.

Who is exposed

The Alpine advisory lists four conditions, and all must hold:

  • sshd is the openssh-server package built without PAM, or openssh-server-pam with UsePAM no.
  • PasswordAuthentication is yes, which is the OpenSSH default.
  • An account has * as its password field.
  • At least one local account has a real $5$ or $6$ password hash.

Glibc distributions such as Debian, Ubuntu and Fedora, setups that go through PAM, Dropbear and OpenBSD are not affected, according to the researcher. Alpine is not the only musl system. Help Net Security's report also names OpenWrt, Buildroot, Yocto and many container images.

Direct root login is less of a worry than it sounds. OpenSSH's default PermitRootLogin setting blocks it unless an admin changed it, per Help Net Security. The indirect path is the problem.

What it means on AWS

Alpine's official tiny-cloud images from 3.18.11 through 3.24.3 are affected, including the AMI builds. Their default user, alpine, has * in its password field and passwordless doas. Alpine says these images are safe on first boot. They become exploitable once any $6$ hash exists on the machine, for example after an admin sets a console password for a rescue login. From there, the path is a shell as alpine, then doas to root.

That condition is the kind that hides well. Nobody remembers setting a console password eight months ago during an outage. The security group that allowed port 22 from anywhere "for a quick look" is often still there too.

Containers deserve a look as well. Most containers do not run sshd, and Alpine says those are not affected. But some do: debugging sidecars, bastion containers, SFTP endpoints, CI runners. Those images froze whatever OpenSSH package was current when they were built.

Previdian has kept counting. Its CVE page lists 46 attempts from 27 IP addresses in 16 countries between November 6 and November 16, and notes that these figures do not show that the target was vulnerable or that the attempt succeeded. Help Net Security reports that Previdian confirmed root access on a honeypot running real Alpine Linux and OpenSSH.

Why the patch alone is not enough

Alpine released fixed packages for every branch from 3.16 through edge on November 5, and fixed point releases 3.21.10, 3.22.8, 3.23.8 and 3.24.4. But the advisory has one sentence that matters more than the version table: "Upgrading the package alone does not replace the running daemon." The old sshd binary stays in memory and keeps accepting the bypass until you restart the service.

A fleet patch job that installs packages and reports success can leave every host exposed. The compliance dashboard turns green and the attack still works.

What to do this week

  • Find every reachable sshd on musl. List EC2 instances launched from Alpine AMIs, and container images built on Alpine that install openssh-server. Then check which ones have port 22 open in a security group.
  • Update and restart. Run the package upgrade, then restart sshd. Confirm the running process started after the upgrade, not just that the package version changed.
  • Turn off password logins. If you cannot update today, set PasswordAuthentication no and restart sshd. Alpine suggests confirming with sshd -T | grep -i passwordauthentication. Keep an existing session open and test key login first.
  • Close port 22. Use Session Manager where you can. AWS describes it as node access without inbound ports, bastion hosts or SSH keys, governed by IAM.
  • Rebuild container images that include OpenSSH, and redeploy them. A patched base image does nothing for a running task.
  • Look for a past login. Search /var/log/messages for Accepted password for entries that name accounts with no password, such as alpine, root or key-only users. Review doas use, new users and authorized_keys files.
  • If you cannot rule out a login, treat the host as compromised. Alpine says so directly. Replace it, and rotate anything its instance role or local files could reach.

The pattern

Three teams made sensible choices over ten years, and the combination opened a door in one connection. The fix took a day. The first attempts took about eight hours. And the step most likely to be skipped is the boring one: restarting a daemon.

That is why we build Antivenom as a loop, not a report. An AI red team works only against your own systems, with your permission, and checks whether the running service still accepts the path, not whether a package version changed. An AI blue team closes it, and the red team retests to prove it is closed. For more on how fast that window now closes, read the patch window went negative.

← All posts
  • SSHole
  • CVE-2026-123158
  • OpenSSH
  • Alpine Linux
  • zero-day
  • AWS security
  • cloud security
  • CISA KEV

The arms race has started

Evolve as fast as the attacker.

Antivenom is opening to a small group of security and platform teams first. Join the waitlist to get early access.