*sshole: The OpenSSH and musl Flaw Already Being Exploited

Software

*sshole: The OpenSSH and musl Flaw Already Being Exploited

Dispatch · SERA
securitylinuxopensshmuslcve-2026-123158alpine
CVE-2026-123158 lets attackers log into some Linux systems without a password. Researchers now report active exploitation, mostly on Alpine-based machines.

A recently disclosed vulnerability that can give unauthenticated access to privileged accounts on some Linux systems is now being exploited in the wild. Researchers at Greynoise, watchTowr and Previdian have all reported activity, and the vulnerability is tracked as CVE-2026-123158. Its informal name is "*sshole".

It is a narrow bug with a broad blast radius, and the conditions are the kind of thing you only find out about after you have been hit.

The bug

The flaw sits where OpenSSH meets musl, the lightweight C library used by Alpine Linux and other minimal distributions. Both components have to be present, and a few other conditions must hold:

  • OpenSSH must not use PAM (pluggable authentication modules).
  • At least one account must have a password hashed with SHA256 or SHA512.
  • Some accounts must be passwordless, marked with a * in the password field of /etc/shadow. This is standard for certain service accounts.

When an attacker submits a password longer than 256 characters for one of those passwordless accounts, OpenSSH hashes it and checks it against the stored entry. The oversized input makes musl's hashing function return *. Red Hat describes the root cause as a "misinterpretation of whether a string is intended to be a password hash". The result is that the check passes.

Exploitation in the wild

Greynoise said on Monday that honeypots it runs in Southeast Asia had been hit by a group it tracks as GT10, which carried out "mature intrusions". Greynoise got access to one of the group's servers, which exposed other potential victims and some of the tools in use. The backdoor contains Chinese-language comments and appears to have been generated with AI assistance.

watchTowr reports exploitation tied to botnets and cryptocurrency. Previdian's sensors logged 20 attempts from 13 unique IP addresses across nine countries.

What to do

Here is the practical advice, in order:

  1. Update OpenSSH. Anyone running it should install the patched version promptly.
  2. Check whether you use musl. If you run Alpine or another musl-based distribution alongside OpenSSH, investigate further.
  3. Audit /etc/shadow. Look for accounts with * in the password field that are reachable over SSH, and disable SSH access for any that do not need it.
  4. Check your PAM configuration. The vulnerable path requires OpenSSH to be running without PAM.

Note that "millions of SSH servers exposed to the Internet" is not hyperbole. The attack is cheap and fast once you know the conditions, which is why the exploitation window is short.

The lesson

This is the sort of bug that lives in the seams between two well-maintained projects. Each one does what its own spec says. The combination does something neither author intended. If you run minimal images, container bases or embedded boxes, the question worth asking is not only "is my SSH up to date?" but "what does my C library do with inputs I did not plan for?"

Source: Ars Technica - Vulnerability that lets hackers SSH into Linux devices is under active exploitation

Comments

Loading comments...