⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-123158: OpenSSH Authentication Bypass Exposes Alpine Linux Servers | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-123158: OpenSSH Authentication Bypass Exposes Alpine Linux Servers

Affected Products: 10.6

Executive summary

CVE-2026-123158 is a high-severity authentication bypass affecting OpenBSD OpenSSH on Alpine Linux deployments that use the musl C library. The vulnerability, referred to in reporting as SSHole, can let a remote attacker authenticate with a password to an affected account without knowing a valid password or possessing an SSH key.

The flaw is not a cryptographic break and does not involve guessing credentials. It results from a comparison between a password-hash result and the value used by Linux to indicate that an account has no usable password. The bypass is most relevant when all of the following conditions are present:

  • An unpatched OpenSSH server is running on Alpine Linux or another musl-based system.

  • The server does not use PAM for authentication.

  • SSH password authentication is enabled.

  • The targeted account has a locked or otherwise unusable password field.

OpenSSH released its upstream fix in version 10.6p2 on November 5. Alpine shipped patched packages on the same day.

Technical analysis

OpenSSH normally verifies a password by hashing the supplied value and comparing the result with the credential hash stored for the account.

On affected systems, musl's crypt() function may return an error marker rather than a password hash. That marker can be identical to the stored value Linux uses to represent an account without a usable password. The unpatched OpenSSH code treats the resulting match as a successful authentication. The supplied password content is therefore irrelevant: the attacker does not need to recover, guess, or supply a valid credential.

The upstream correction has two principal components:

  1. Stored values that are too short to be valid password hashes are rejected.

  1. Account data is copied differently so that a later lookup cannot overwrite the value being checked.

The OpenSSH 10.6p2 release notes credit Özgün Kıltekin of Wakefield with reporting the issue.

Affected systems

The affected upstream product is OpenBSD OpenSSH. The linked vulnerability record identifies OpenSSH 10.6 as affected, while the fix is available in OpenSSH 10.6p2.

The first fixed Alpine package revisions identified in the supplied context are:

| Alpine release | First fixed OpenSSH package revision |

|---|---|

| 3.24 | 10.3_p1-r2 |

| 3.23 | 10.2_p1-r1 |

| 3.22 | 10.0_p1-r11 |

Administrators should verify the installed package revision rather than relying on the version string displayed in an SSH banner, since banner information may be outdated or misleading.

An Alpine base image is not vulnerable by itself. The attack path requires an affected SSH server with password authentication enabled and the account conditions described above. Containers that do not run sshd and systems using PAM are outside this specific path.

Alpine also identified a related concern in older tiny-cloud images that shipped with an alpine user capable of gaining root privileges through doas without a password. The images were reportedly not exposed on first boot, but later account changes could create an exploitable condition. Blocking direct root login does not mitigate a separate account that can escalate to root.

Exploitability and impact

A November 23 lab report cited by Cyber Security News demonstrated the bypass on an unpatched OpenSSH build running on Alpine Linux 3.24. The same login was rejected after installation of the patched Alpine package. This provides documented proof of concept, rather than details of a confirmed attack campaign.

The article's reference to a 257-byte password describes the size of the laboratory test input. It is not a universal credential or exploit string.

Once the environmental preconditions are met, exploitation is low complexity: the attacker needs network access to SSH and a valid username, but no valid password, private key, prior access, memory corruption, or race condition. Predictable account names, including those associated with the tiny-cloud images, can make targets easier to identify.

Cyber Security News also referenced earlier reporting of active exploitation. The supplied metadata does not provide a named campaign, exploit samples, or a confirmed victim list, so the scale and current status of exploitation cannot be independently established from the available information.

Mitigation

Upgrade OpenSSH

Install the first fixed package revision appropriate for the Alpine release in use. The upstream fixed version is OpenSSH 10.6p2.

After upgrading, restart the running daemon:

rc-service sshd restart

The active sshd process continues using the old code until it is restarted.

Disable password authentication when patching is delayed

First confirm that key-based access works. Then set:

PasswordAuthentication no

Restart sshd and keep the current session open until a fresh key-based login succeeds. This removes the password-authentication path from the reported attack scenario.

Review account and service configuration

  • Review accounts that may have a locked or unusable password field while retaining SSH access.

  • Use PAM for authentication where operationally appropriate, as this removes the specific non-PAM attack path.

  • Review older tiny-cloud images for the passwordless alpine user's doas privilege.

  • Avoid exposing sshd from containers that do not require SSH access.

Investigate suspected compromise

Review /var/log/messages for Accepted password entries associated with accounts intended to use SSH keys only. Compare those events with each account's configuration at the time of the login.

Also review doas activity, newly created users, unfamiliar files, and changes to authorized_keys. A failed login followed by a successful login is not, by itself, proof of exploitation. However, a password login to an account that should never accept one is significant and warrants investigation.

Alpine's guidance is to treat a system as compromised if unauthorized access cannot be ruled out.

advisory high CVE-2026-123158
·
← Back to Writeups