TL;DR
-
The vulnerability: On Alpine Linux and other musl-based systems running OpenSSH without PAM, an attacker can log in to accounts that have no password, such as key-only users, by sending any password longer than 256 characters. On Alpine’s official AWS and Azure images, the default
alpineuser has passwordlessdoas, so this means full root access. -
Confirmed findings: IONIX’s safe exploitability test attempts two connections: on the first connection it sends a short warm-up password (which fails by design), then one over-length password. If the server answers with authentication-success, the exposure is proven, and IONIX closes the connection at that instant: no shell is opened, no command runs, and no data is read or changed. It only tries standard locked system accounts (alpine, root, daemon, nobody, bin) and never accounts like halt or shutdown that could power the host off. The sole trace is a normal "accepted password" line in your own auth log.
-
The potentially affected list: SSH servers in your attack surface, on any port, that accept password login. Password login is the precondition for this attack. The list also includes servers that are not vulnerable, such as non-OpenSSH servers and glibc-based Linux. On each listed server, upgrade OpenSSH to 10.6p2 or disable password login.
-
Spark can help further prioritize assets by identifying assets that have SSH password authentication and are of the relevant OpenSSH versions. E.g. you can use this Spark prompt: "Take a look at CVE-2026-123158 in the IONIX threat center. Then fetch all ‘Fix Network issue: SSH weak authentication method’ action items and for each of them check the identified technologies. Give me a short list of assets that are most likely effected (e.g. based on the OpenSSH versions they expose)."
Summary
SSHHole is a password authentication bypass in the OpenSSH server (sshd) on Linux systems that use the musl C library with PAM disabled, most notably Alpine Linux. An unauthenticated remote attacker who can reach the SSH port can log in to accounts whose password field is * (no password set, such as key-only users), without knowing any password. The CVSS v3.1 base score is 8.1 (High).
Technical details
-
Root cause: Without PAM,
sshdverifies a password by hashing the attempt withcrypt()and comparing the result to the stored password field. When an account’s stored field is too short to contain a salt (such as*),sshdborrows the salt from another local account’s$5$or$6$hash. musl’scrypt()returns*as an error indicator when the password is longer than 256 bytes. Because*is also the stored value for accounts with no password, the comparison matches and login succeeds. A single hashed account therefore exposes every*account on the host. OpenSSH 10.6p2 now rejects stored password hashes shorter than 4 characters, which closes this path. -
Trigger conditions: Password authentication is enabled (the default), at least one account has
*as its password field (for example a key-only user), and at least one local account has a$5$or$6$password hash. Locked accounts (!) are not affected. The attacker sends a password of 257 to 1024 bytes for the passwordless account. -
Attack vector: Network, against the SSH service, with no authentication and no user interaction. A single connection is enough. Public proofs of concept use two password attempts within that one connection.
-
Impact: Login as any passwordless account that is allowed to log in. Root is not directly reachable under the default
PermitRootLogin prohibit-password, but root is directly exposed ifPermitRootLogin yesis set (the root password field is*by default on Alpine base images since about 3.16). Any account that can escalate privileges (for example viadoas) can also become root. -
Cloud images: Official Alpine cloud images (tiny-cloud, 3.18.11 to 3.24.3) ship an
alpineuser with a*password and passwordlessdoas. These are safe on first boot but become exploitable to root as soon as any$6$password hash exists on the host, for example an admin-set console password.
Affected software
-
OpenSSH versions before 10.6p2 on Linux with musl libc and PAM disabled (
sshdbuilt without PAM, orUsePAM no) -
Alpine Linux
opensshpackages on all releases (verified on 3.15 through 3.24 and edge). Fixed packages are published for 3.16 and later and for edge. -
Note: Alpine backports the fix into older OpenSSH versions, so the OpenSSH version number alone does not show whether a host is patched.
-
Not affected: glibc-based systems, and systems using PAM with
UsePAM yes
Severity
-
CVSS v3.1 base score: 8.1 (High)
-
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
-
Immediate: Upgrade OpenSSH to version 10.6p2 or later, or to your distribution’s patched package. On Alpine, run
apk upgrade -U -a, then restart the daemon withrc-service sshd restart. Upgrading the package alone does not replace the runningsshd. Fixed Alpineopensshpackages: edge10.6_p2-r0, 3.2410.3_p1-r2, 3.2310.2_p1-r1, 3.2210.0_p1-r11, 3.219.9_p2-r1, 3.209.7_p1-r6, 3.199.6_p1-r3, 3.189.3_p2-r4, 3.179.1_p1-r7, 3.169.0_p1-r6. Rebuild and redeploy container images that installopenssh-server. -
If you cannot patch immediately: Set
PasswordAuthentication noandKbdInteractiveAuthentication noinsshd_config, validate withsshd -t, and restartsshd. Confirm that key-based login works first, and keep an existing session open while testing. Restrict who can reach the SSH port (IP allowlist, VPN or bastion host), and removesshdfrom container images that do not need it. -
Verify: From outside your network,
ssh -o PreferredAuthentications=none -o PubkeyAuthentication=no -o BatchMode=yes -v user@your-host 2>&1 | grep 'can continue'should list onlypublickey. -
Check for compromise: Review
/var/log/messagesforAccepted password forentries on accounts without a password (such asalpine,root, or key-only users), and reviewdoasusage, newly created users, newauthorized_keysentries, and unexpected cron jobs. If a login cannot be ruled out, treat the host as compromised.
How IONIX helps
IONIX already reports SSH services that offer password login as the action item "Fix Network issue: SSH weak authentication method", on every port where SSH is detected. These are the potentially affected assets: move them to key-only authentication or patch them first. A safe exploitability test is in progress.

