Zero Day Room
Live
Vulnerabilities

OpenSSH sshole vulnerability grants root access on Alpine Linux

A critical OpenSSH flaw, CVE-2026-123158, was exploited within hours of disclosure, allowing remote attackers to log into passwordless accounts on Alpine Linux and other musl-based systems using oversized passwords.

A critical OpenSSH flaw, CVE-2026-123158, was exploited within hours of disclosure, allowing remote attackers to log into...

A logic flaw in OpenSSH enables remote attackers to gain passwordless root access on Alpine Linux and other musl-based systems. The vulnerability, CVE-2026-123158, was exploited less than nine hours after its public disclosure on November 5, 2026.

The flaw exists in OpenSSH versions before 10.6p2 on Linux systems using the musl C library where PAM authentication is disabled. It allows unauthenticated login to accounts with an asterisk in the password field of the /etc/shadow file, which indicates a disabled password. When a password longer than 256 bytes is submitted, the musl crypt() function returns an asterisk. OpenSSH then incorrectly matches this result to the stored asterisk, granting access. Accounts with valid password hashes are not affected.

Impact on Alpine Linux and embedded systems

Alpine Linux is uniquely vulnerable due to its default musl libc and lack of PAM integration in its openssh-server package. Affected Alpine versions range from 3.18.11 through 3.24.3. The vulnerability also impacts many embedded environments and container base images that rely on musl.

These systems are common in routers, appliances, and CI/CD pipelines, especially where sshd is exposed for remote debugging. The default 'alpine' account in cloud images has passwordless doas privileges, which could lead to root access if PermitRootLogin is enabled.

Exploitation mechanics and AI acceleration

Attackers exploit the flaw by sending a password between 257 and 1,024 bytes after a failed initial login attempt. Security researchers warn that AI-driven tools are accelerating exploit development, dramatically shrinking the timeline between public disclosure and active weaponization.

Proof-of-concept code for the flaw, nicknamed 'sshole' by discoverer Özgün Kültekin, exists online. In observed attacks, the source IP used oversized passwords to bypass authentication and then ran reconnaissance commands like id and uname via non-interactive SSH sessions. The vulnerability is a logic error with a CVSS v3.1 score of 8.1, classified as High severity.

Mitigation and patch status

The vulnerability was fixed upstream in OpenSSH 10.6p2, released on November 5, 2026. Alpine Linux pushed patched packages for all supported and unsupported branches the same day. However, simply installing the patch is insufficient; the SSH service must be restarted to stop the old sshd binary from accepting malicious connections.

For immediate mitigation where patching is delayed, administrators must set PasswordAuthentication no in the sshd_config file and restart the service. The bypass is also blocked when UsePAM yes is configured, as PAM handles authentication instead of sshd's internal crypt path. Affected users should install OpenSSH 10.6p2 or their distribution's patched package and restart the sshd service.

Related coverage

More from Vulnerabilities