Security

OpenSSH 'sshole' Flaw Opens Passwordless Alpine Accounts, and Attacks Are Reported Within Hours

OpenSSH 10.6p2 fixes CVE-2026-123158, a password bypass affecting musl-based Linux such as Alpine. Researchers report attacks under nine hours after the CVE. What it is and what to do.

Key facts: Fixed in OpenSSH release, 10.6p2; CVSS 3.1 severity score, 8.1; First exploit attempt after CVE publication, per Previdian, < 9 hours; Oversized password length that triggers the bug, 257-1,024 bytes; Alpine branches with patched packages, 3.16 to edge, 10.

A newly disclosed flaw in OpenSSH, nicknamed “sshole” and tracked as CVE-2026-123158, lets a remote attacker log in to certain accounts on Alpine Linux and other musl-based systems without knowing any password. The fix shipped on 5 November, and security firm Previdian says it saw the first attack attempt less than nine hours after the CVE was published.

A note on method: technical details come from the write-ups of Help Net Security, The Hacker News, Ethiack and Cycode, which in turn cite the Alpine Linux advisory and the OpenSSH 10.6p2 release. Our attempts to open the Alpine, OpenSSH and researcher pages directly were blocked, so we cite them only as relayed. Analysis is labelled as ours.

What happened

According to Ethiack’s timeline, the OpenSSH project learned of the bug on 4 November. On 5 November the CVE was published, OpenSSH 10.6p2 was released, and Alpine Linux published an advisory and patched packages. The flaw was found by researcher Ozgun Kultekin, who told reporters, as relayed by Help Net Security, that AI agent swarms played a part in the work.

In plain terms, sshd can be tricked into treating a failed password check as a success. On Alpine, an account with no password has the literal value “” in its shadow file. The reporting says the musl C library returns “” as an error signal when it is handed an overlong password. Because both values are the same string, sshd concludes that they match. The Hacker News reports that an oversized password of 257 to 1,024 bytes is enough, and that no stolen credentials or keys are needed.

The bug is rated 8.1 (High) on CVSS 3.1, according to Ethiack and Cycode.

Who is and is not affected

Based on the write-ups, exposure requires several conditions to hold at once:

  • sshd runs on musl libc without PAM, which is Alpine’s default OpenSSH setup.
  • Password authentication is enabled, which is the default.
  • At least one account has “*” as its hash, such as a key-only user. Locked accounts are not vulnerable, per Ethiack.
  • At least one other local account has a normal password hash.

Not affected, according to the reporting: glibc distributions such as Debian, Ubuntu and Fedora, systems that authenticate through PAM, Dropbear and OpenBSD. Help Net Security names OpenWrt, Buildroot, Yocto and some Docker images as other musl-based systems to check.

Root is not directly exposed in a default setup, since the default PermitRootLogin setting blocks it. Help Net Security notes, however, that official Alpine AWS and Azure images include a default “alpine” user with passwordless doas, which can give indirect root access. Access through the bug carries whatever permissions the compromised account already holds.

Exploitation: sources differ

Reports disagree on whether the flaw is being exploited. Previdian, quoted by The Hacker News and Help Net Security, says its first observed attempt came less than nine hours after the CVE was published, and that an attacker reached root on an Alpine honeypot. Telemetry showed eight attempts from one IP address geolocated to Japan, followed by reconnaissance commands. Ethiack’s write-up, by contrast, says no in-the-wild exploitation had been reported and lists the status as proof of concept. The likeliest explanation is timing: the sources were written at different points. We treat exploitation as reported by Previdian, not independently confirmed. Help Net Security adds that CISA had not added the flaw to its Known Exploited Vulnerabilities catalog at the time of writing, and that public proof-of-concept code on GitHub is unverified and may contain malware.

Background

According to Help Net Security, the root cause is an interaction between two old decisions. In 2016 OpenSSH changed how it handles accounts without usable hashes (the fix for CVE-2016-6210, a username-enumeration issue) by hashing the password against another account’s salt. Separately, musl’s crypt() has long rejected some long inputs by returning “*”. Neither choice was a bug alone. Together they opened a door that stayed unnoticed for years.

The fix in OpenSSH 10.6p2 adds a check that rejects any stored hash shorter than four characters, per Ethiack. Alpine backported fixes to every supported branch from 3.16 through edge, and the fixed package versions differ from the upstream number, so admins should use apk upgrade rather than compare version strings. Alpine releases older than 3.16 get no package, so disabling password authentication is the only remedy there, according to Cycode.

Why it matters

Industry and users. Alpine is a popular base for container images because it is small. A flaw in its default SSH server is therefore a supply-chain concern: an old image that nobody rebuilt can carry the bug. Cycode’s testing found that popular images such as Gitea, Gogs and the Jenkins SSH agent disable password logins by default, so most are not exposed, but a small number were vulnerable under their documented setup.

Wandertech angle for software teams (our opinion). The practical risk sits in forgotten places: build agents, jump hosts, appliance images and containers that expose port 22 for convenience. A short checklist:

  1. Run sshd -T | grep -i -E 'passwordauthentication|usepam'. If password logins are off or PAM is on, you are not exposed, according to Cycode.
  2. Upgrade to your distribution’s fixed package and restart sshd. Help Net Security stresses that the update does not restart the running daemon, so the vulnerable process keeps serving until you do.
  3. If you cannot upgrade, set PasswordAuthentication no after confirming key logins work.
  4. Search logs for “Accepted password for” entries tied to accounts that should have no password, and review doas usage, new users and authorized_keys files. Alpine advises treating a system as compromised if a login cannot be ruled out.
  5. Rebuild container images that were built on older packages.

Different perspectives and risks

Ryan Dewhurst of Previdian called the bug “particularly trivial to exploit,” per Help Net Security, which helps explain the speed of the first attempts. Damien Miller of OpenSSH urged affected admins to disable password authentication or SSH immediately, as relayed by the same outlet. On the other hand, the conditions are narrow. Many Alpine deployments use key-only authentication with password login disabled, and any glibc system is untouched. The headline number of exposed hosts is unknown; none of the sources we read gave a count, and we will not guess.

What to watch next

  • Whether CISA adds CVE-2026-123158 to its Known Exploited Vulnerabilities catalog.
  • Whether other musl-based distributions and embedded firmware issue their own advisories.
  • Whether researchers publish measurements of how many internet-facing hosts are exposed.
  • Whether OpenSSH or musl tightens the interaction that caused the bug.

Conclusion

The sshole flaw is a reminder that small, individually sensible choices can combine into an authentication bypass. The fix is available and the exposure conditions are specific, so the quickest win is to check your configuration, patch, and restart sshd.

Sources