Alpine Linux Addresses Critical OpenSSH Password Bypass Vulnerability
Alpine Linux has issued a security advisory for a critical vulnerability in the OpenSSH-server package, allowing attackers to bypass password authentication restrictions under specific conditions.
Vulnerability Overview and Affected Systems
Alpine Linux has issued a security advisory regarding a critical vulnerability in the OpenSSH-server package, which could allow attackers to bypass password authentication restrictions. The flaw, named '*sshole,' affects systems running sshd on Alpine Linux and other musl-based distributions. If an account is configured to disable password authentication, an attacker could still gain access by submitting an oversized password. This vulnerability arises when the OpenSSH server checks passwords without using the Pluggable Authentication Module (PAM) interface, and when at least one other account on the system has a password enabled. Users are advised to update the openssh package immediately and restart the sshd service to mitigate the risk. The advisory was reported by Lawrence Abrams in a November 5, 2026, article, highlighting the potential impact of this flaw on system security.
Exploitation Conditions and Attack Vector
Exploitation of the OpenSSH-server password authentication bypass vulnerability requires specific conditions. According to Kultekin, the attack is possible only if OpenSSH is running on a musl-based Linux system, such as Alpine Linux, OpenWrt, Buildroot, or Yocto (bleepingcomputer.com). The attacker must have network access to the server and the name of an account whose password field is set to *—an account with no password, which is typical for key-only accounts (Hacker News). Additionally, the system must have at least one other account with a $5$ or $6$ password hash. The attack also requires the use of a password between 257 and 1,024 bytes long (thehackernews.com). These conditions limit the scope of the vulnerability but highlight the importance of proper configuration and monitoring on affected systems.
Mitigation and Fixes
Alpine Linux users affected by the OpenSSH-server password authentication bypass vulnerability are advised to apply the necessary updates to mitigate the issue. According to the release announcement, Alpine 3.21.10, 3.22.8, 3.23.8, and 3.24.4 include the fixed package. Administrators should execute apk upgrade -U -a to update all packages, followed by a restart of the sshd service using rc-service sshd restart, as upgrading the package alone does not restart the running sshd process. The vulnerability has been addressed in OpenSSH 10.6p2, and Alpine Linux administrators are advised to update their OpenSSH packages using apk upgrade openssh to ensure the fix is applied.
Impact and Affected Accounts
The Alpine Linux Security Advisory highlights a potential password authentication bypass in OpenSSH-server, impacting specific account configurations. Key-only users created with adduser without a password, or with usermod -p '*', are affected. Additionally, users from a directory service via musl-nscd lack shadow entries, making them vulnerable. The root account, which has historically been set to root:* in Alpine 3.16 and later, is also impacted. However, root is protected by the default PermitRootLogin prohibit-password setting, limiting direct access unless explicitly configured with PermitRootLogin yes. The alpine user in official cloud images built with tiny-cloud is similarly affected. These configurations are attributed to Alpine Linux and are documented in the advisory.
Detection and Monitoring
Detection and monitoring of the OpenSSH-server password authentication bypass vulnerability involves examining system logs for suspicious activity. According to the Alpine Linux Security Advisory, administrators should look in /var/log/messages for sshd lines that indicate an Accepted password event for an account that should not allow password-based authentication, such as alpine, root, or any key-only user. Kultekin notes that admins can also check for signs of exploitation by reviewing SSH authentication logs for password-based logins on accounts that are configured to disallow them. These steps help identify potential unauthorized access attempts and confirm whether the vulnerability has been exploited. The advisory explicitly recommends these log checks as part of a comprehensive monitoring strategy to detect and respond to the issue effectively.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.