Long Passwords Bypass SSH Auth on musl Linux Systems

A newly disclosed OpenSSH flaw lets attackers authenticate to accounts that have no password set, simply by submitting an oversized password string.

A newly disclosed OpenSSH flaw lets attackers authenticate to accounts that have no password set, simply by submitting an oversized password string. The bug, tracked as CVE-2026-123158 and nicknamed SSHole, hits Linux systems running OpenSSH with musl libc and without PAM support. OpenSSH shipped version 10.6p2 on November 5, 2026, with a workaround, and Alpine Linux pushed updated packages the same day for its affected branches.

The attack works by sending a password between 257 and 1,024 bytes long over the network to an SSH service. On a vulnerable configuration, that oversized input lets the attacker authenticate to an account with no password configured, provided the system also has at least one account with a supported password hash. No credential guessing or brute forcing is needed. The attacker needs only network access to the SSH service.

Musl libc and missing PAM create the opening

SSHole is configuration-dependent, not a universal OpenSSH bug. It requires Linux systems built on musl libc, OpenSSH compiled without PAM or with PAM disabled, password authentication enabled, and at least one passwordless account alongside one account that does use a supported password hash. Alpine Linux is the clearest example, since its standard OpenSSH server package ships in exactly this combination. Systems running glibc, non-Linux platforms, or OpenSSH configured with PAM for password authentication fall outside the affected set.

Key-only accounts turn out to be reachable anyway

The most uncomfortable part of SSHole is what it breaks: the assumption that an account set up for SSH key authentication only is safe from password-based access. Under the vulnerable configuration, that assumption does not hold. The flaw sits in how OpenSSH, musl libc, and PAM settings interact, not in any single component acting alone. A hardening policy that looks correct on paper can still leave a gap if the underlying authentication stack does not enforce it the way administrators expect.

Patch path for Alpine and musl deployments

Alpine-based containers and other lightweight musl deployments are the practical front line here, given how common that OpenSSH packaging is in minimal Linux images. Administrators running affected systems should update OpenSSH or the relevant Alpine package to the patched release and restart the SSH daemon immediately afterward. Where immediate patching is not possible, set PasswordAuthentication no to close the path until the update can be applied. Review SSH authentication logs now for unexpected access attempts, particularly against accounts that were supposed to be key-only, and treat any unexplained successful logins from unfamiliar sources as a potential compromise requiring further investigation.

Read the source →