NewsPluck

Critical OpenSSH Flaw Discovered in Alpine Linux: Immediate Action Required

Alpine Linux faces a severe vulnerability in OpenSSH that can be exploited easily. Users should update immediately.

A significant security flaw has been identified in Alpine Linux and some other Linux distributions, raising alarms among users and administrators. This vulnerability allows unauthorized access to systems, making it imperative for affected users to act swiftly.

Understanding the Vulnerability

The security issue lies within the OpenSSH implementation on Alpine Linux, specifically identified as CVE-2026-123158. A single character in the system's coding enables hackers to bypass authentication measures. When using the default configuration of the OpenSSH server without Pluggable Authentication Modules (PAM) and with PasswordAuthentication enabled, an attacker can gain access by sending a carefully crafted password between 257 and 1024 bytes in length.

Who is Affected?

All users running versions 3.21 to 3.24, alongside the older 3.16 to 3.20 releases of Alpine Linux, are at risk. The vulnerability can be exploited under certain conditions:

  • The openssh-server package is configured without PAM.
  • PasswordAuthentication is set to 'yes', which is the default setting.
  • There is at least one account with a * in the password field and another with a 5 or 6 password hash.

While the root account is not directly exposed, accounts that could escalate to root privileges are vulnerable. Specifically, Alpine's tiny-cloud images, which include an alpine user with a * password field and a passwordless command option, pose heightened risks when further user accounts are created.

Taking Action

In response to this critical vulnerability, Alpine has released updates for its various versions, including 3.21.10, 3.22.8, 3.23.8, and 3.24.4. These updates address the vulnerability and are crucial for maintaining system integrity. Users should execute:

apk upgrade -U -a

followed by restarting the OpenSSH daemon:

rc-service sshd restart

It’s essential to note that merely upgrading the package does not automatically replace the currently running daemon, hence the need for a manual restart.

What to Look For

Administrators are advised to inspect their logs for any suspicious activity. Specifically, they should search for:

Accepted password for

lines that indicate an unauthorized login attempt using an empty password field. If evidence of a breach is found, it is critical to treat the machine as compromised. Additional caution should be taken to review user permissions and any new accounts or SSH keys that may have been added.

Conclusion

The discovery of this vulnerability underscores the importance of maintaining robust security practices within Linux environments. Immediate updates are crucial to prevent exploitation, and administrators should exercise vigilance moving forward. While the technical intricacies of the bug may seem daunting, prioritizing system security will protect against potential breaches.