The developers of OpenSSH, the software used to connect remotely to most of the world's servers, released an urgent security update for a flaw nicknamed SSHole. Under certain conditions, it allows logging into a server without knowing the password. It was rated high severity, and the fix is included in version 10.6p2. According to reports in the security press, attackers are already trying to exploit it.

The problem is not exactly in OpenSSH but in its interaction with musl, a basic library some Linux distributions use instead of the more common glibc. When OpenSSH checks passwords itself, without the PAM authentication mechanism, an especially long password makes the hashing function fail and return a value identical to the one marking a locked account. The result: the server accepts the attacker instead of rejecting them. Several conditions must hold for the attack to succeed, including password login being enabled.

Who is at risk? Mainly systems based on Alpine Linux, a lightweight distribution that is very popular as a base for cloud containers, as well as systems such as OpenWrt, used in routers and network equipment, and custom builds for embedded devices. Major distributions such as Debian, Ubuntu and Fedora, which use glibc, are generally not affected. Red Hat said its products are not affected.

What to do? Update OpenSSH to version 10.6p2 or your distribution's patched package and restart the SSH service. Anyone who cannot update immediately can disable password login and switch to SSH keys, a step recommended anyway. And check containers too: an old Alpine image running in production with SSH open is exactly the target this flaw is waiting for.

And the broader lesson: in the container world, many organizations do not know exactly which versions of which libraries they are running. A flaw that depends on a combination of a specific library and a specific setting is a reminder that an up-to-date software bill of materials (SBOM) is not bureaucracy but the only way to quickly answer the question 'are we exposed?'