OpenSSH “SSHole” Bug: How Attackers Use Overlong Passwords Against Some Linux Servers
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

A flaw in OpenSSH can let an attacker log in to passwordless accounts on certain Linux systems using an overlong password. The issue, tracked as CVE-2026-123158, affects a narrow configuration involving musl, password authentication without PAM, and accounts with a “*” password field. OpenSSH released version 10.6p2 on November 5; GreyNoise reported a successful attack roughly 40 hours later.

OpenSSH released version 10.6p2 on November 5 to fix a flaw that can let attackers log in without a valid password to certain accounts on some Linux systems using musl. Tracked as CVE-2026-123158 and rated High in the supplied source, the bug requires a specific combination of server and account settings; it does not affect every OpenSSH installation.

Before you orderOffer from Amazon

Get privacy and security gear delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

The bypass occurs when OpenSSH checks passwords without PAM, the common Linux authentication framework. In the affected setup, a password longer than 256 bytes causes musl’s crypt() function to return “*” as an error indicator. Some accounts that have no usable password store the same character in their password field. The matching values can cause the authentication check to succeed.

Alpine Linux says the attack also requires PasswordAuthentication to be enabled, an account with a “*” password field, and at least one local account with a $5$ or $6$ password hash. The supplied material identifies Alpine’s standard openssh-server package as a prominent affected case. OpenSSH published the fix as version 10.6p2.

Exploit code appeared publicly about four hours after the release, according to GreyNoise and BleepingComputer, as summarized in the source. GreyNoise reported its first successful break-in on a sensor about 40 hours after the release. CISA added the vulnerability to its exploited vulnerabilities list on November 9. These reports indicate observed exploitation, though the supplied material does not describe its scale.

At a glance
updateWhen: Fix released November 5, 2026; CISA add…
The developmentOpenSSH released a fix for CVE-2026-123158 after researchers found that overlong passwords could bypass authentication on some musl-based Linux systems.
Checklist graphic: are your SSH servers affected by CVE-2026-123158? Only if all five conditions are true: 1, Linux with musl libc, Alpine is the best-known case; 2, sshd without PAM; 3, password logins on, the OpenSSH default; 4, an account with an asterisk as its password field; 5, at least one account with a real $5$ or $6$ password hash. Highlighted: if all five are true, update OpenSSH and restart sshd today, or set PasswordAuthentication no. Not affected: Linux with glibc such as Debian, Ubuntu and Red Hat builds, PAM, PasswordAuthentication no, Dropbear and non-Linux systems, containers that do not run sshd
The five conditions for the *sshole bypass. Sources: Alpine Linux advisory, OpenSSH, musl, Ubuntu, Red Hat. Graphic: Thorsten Meyer AI.

Exposure Depends on Server Configuration

The flaw matters most to administrators of Alpine and other musl-based Linux systems that accept SSH password logins without PAM. Under the required conditions, an attacker who can reach the SSH service may access an account that has no usable password. If that account can gain elevated privileges, the consequences can extend beyond the initial login.

Alpine specifically warns that OpenSSH’s default root-login restriction does not protect a system if another reachable account can become root, for example through doas. The source names Alpine cloud images containing an alpine account with a “*” password field and passwordless doas as a scenario that may become exploitable once a qualifying $6$ hash exists. Administrators should check their actual configuration rather than infer exposure from the distribution name alone.

Alpine advises updating OpenSSH and restarting sshd. If an update is not immediately possible, disabling password authentication with PasswordAuthentication no removes a necessary condition for the described attack. Administrators should also review authentication logs for password logins to accounts intended to have no password.

Products Worth Considering

Jackery Explorer 300 Portable Power Station with 40W Solar Panel

Jackery Explorer 300 Portable Power Station with 40W Solar Panel

Bose QuietComfort Wireless Bluetooth Noise-Cancelling Headphones, Sandstone

Bose QuietComfort Wireless Bluetooth Noise-Cancelling Headphones, Sandstone

As an affiliate, we earn on qualifying purchases.

Why the Password Check Failed

On Linux, a password field containing “*” is commonly used for an account that should not authenticate with a password. Alpine’s advisory explains that, in the affected path, musl returns the same character when crypt() receives an overlong password. OpenSSH can then compare an error indicator with the account’s stored field as though it were a password hash.

The parties’ descriptions differ on where the underlying defect belongs. OpenSSH said the root cause is outside sshd, but that it can be exploited through the server and avoided there. Musl maintainer Rich Felker described the issue as an erroneous use of the library by the caller and said musl would likely change the mechanism in an upcoming release cycle.

The supplied material says Debian, Ubuntu and Red Hat report their OpenSSH builds are not affected. Ubuntu cites its use of glibc and PAM; Red Hat says its products are unaffected. Debian’s security tracker lists the fixed upstream version in its unstable branch. The source also reports that Medcrypt reproduced the issue on a stock Yocto image, so embedded Linux deployments may need separate review.

““We consider the root cause of this bug to be outside sshd, but it is exploitable via sshd and can be avoided there.””

— OpenSSH

Embedded Builds Need Checking

The full set of affected systems is not established by the supplied material. It names OpenWrt, Buildroot and Yocto as environments where musl-based builds may be used, and reports Medcrypt’s reproduction on a stock Yocto image. That does not establish that every image or configuration from those projects is vulnerable.

The reports also do not provide a count of affected systems or a measure of the attacks’ broader reach. Exposure depends on the combination of library, authentication path, password-login setting and account records. The source does not say how many administrators have applied the fix since its release.

Patch and Review SSH Access

Administrators should check whether their Linux systems run OpenSSH with musl and whether password authentication is handled without PAM. Those who meet the conditions should install OpenSSH 10.6p2 or the applicable distribution fix and restart sshd. Where patching must wait, disabling password authentication reduces exposure to this bypass.

Teams should review SSH authentication logs for unexpected password logins to accounts intended to be locked, and examine whether any such account can obtain elevated privileges. Embedded-device vendors and maintainers will need to confirm how their builds link OpenSSH and handle authentication. The supplied material says musl may change its error behavior in a future release cycle, but gives no release date.

Key Questions

Does this affect every OpenSSH server?

No. The described bypass requires a particular configuration: Linux with musl, password checks without PAM, password authentication enabled, an account with a “*” password field and a local account with a $5$ or $6$ hash.

What should an administrator do?

Install OpenSSH 10.6p2 or the relevant distribution fix, then restart sshd. If an update cannot be applied promptly, disable password authentication and review logs for unexpected logins to passwordless accounts.

Are Debian, Ubuntu and Red Hat affected?

The supplied source says those distributions report their OpenSSH builds are not affected. Ubuntu cites glibc and PAM, while Red Hat says its products are unaffected. Administrators should check their distribution’s current advisory for their specific packages.

Was the flaw exploited?

GreyNoise reported a successful break-in on one of its sensors about 40 hours after the OpenSSH fix was released. CISA added the flaw to its exploited vulnerabilities list on November 9. The source does not quantify the broader extent of exploitation.

Source: Thorsten Meyer AI

You May Also Like

CVE-2026-88772: Citrix NetScaler Improper Restriction Of Operations Within The Bounds Of A Memory Buffer Vulnerability Actively Exploited (CISA KEV)

CISA lists CVE-2026-88772 in its Known Exploited Vulnerabilities catalog. The supplied notice gives few details on affected versions or remediation.

What Responsible Vulnerability Disclosure Actually Means

Learn what responsible vulnerability disclosure really involves, why it matters, and how to do it safely. Essential for ethical security research and protecting everyone.

Cisco Firewall Security Check: Could Attackers Switch Off Your VPN?

Cisco says attackers are exploiting CVE-2026-76418 to force some Secure Firewall devices to reload. The company urges customers to upgrade.

How to Track Vulnerabilities Across Multiple Products

A practical guide to tracking vulnerabilities across products: SBOMs, CVE matching, prioritization, and remediation records that hold up.