Skip to content
Cybersecurity

OpenSSH Password Bypass CVE-2026-123158 (sshole): Who Is Affected, Alpine Linux and How to Fix It

An exploited OpenSSH flaw lets attackers log in without a password on musl systems like Alpine Linux. Who is affected, how to check, update and restart sshd.

  • Published
  • Updated
  • 4 min read
A system administrator at night typing on a laptop with a terminal window open, in front of a small rack of servers with blue status lights
A system administrator at night typing on a laptop with a terminal window open, in front of a small rack of servers with blue status lights. AI-generated illustration.

Key takeaways

  • CVE-2026-123158, nicknamed 'sshole', lets an attacker log in to some accounts without knowing the password on Linux systems where OpenSSH runs on musl libc without PAM, most notably Alpine Linux.
  • CISA added the flaw to its catalogue of actively exploited vulnerabilities on 9 November 2026; Ubuntu and Red Hat Enterprise Linux, which use glibc and PAM, say they are not affected.
  • Update OpenSSH (Alpine fixed packages or OpenSSH 10.6p2) and restart sshd, or set PasswordAuthentication no if you cannot update yet.
On this page
  1. What is the sshole flaw?
  2. Who is affected
  3. How to fix it
  4. 1. Update and restart sshd (recommended)
  5. 2. If you cannot update: turn off password logins
  6. 3. Containers and images
  7. How to check for a break-in
  8. Why it matters
  9. Conclusion

A flaw nicknamed "sshole" lets attackers log in over SSH without the right password on some Linux systems, and it is already being exploited. CVE-2026-123158 affects OpenSSH when it runs on the musl C library without PAM, a combination best known from Alpine Linux, the small distribution behind many Docker images and cloud instances.

On 9 November 2026 the US Cybersecurity and Infrastructure Security Agency (CISA) added it to its catalogue of known exploited vulnerabilities. Here is who is affected, how to check your systems and how to fix them.

What is the sshole flaw?

When OpenSSH is built without PAM, sshd checks a password by hashing it with the C library's crypt() function and comparing the result with the stored password field. According to Alpine's advisory, the problem is a collision of two special values:

  1. Accounts without a password (for example key-only users, or root on a fresh Alpine install) store * in the password field.
  2. musl's crypt() returns * as an error when it is given a password that is too long, over 256 bytes.

So an attacker who sends a very long password gets * back from crypt(), which matches the * stored for the passwordless account, and the login succeeds. The trick needs at least one other account on the machine with a real password hash, whose salt sshd borrows.

The OpenSSH developers say the root cause lies outside sshd but can be avoided there. OpenSSH 10.6p2, released on 5 November 2026, adds that workaround. The flaw was reported by Özgün Kültekin of Wakefield, according to the oss-security disclosure.

Who is affected

According to Alpine, you are affected only if all of these are true:

  • sshd is built without PAM (Alpine's openssh-server), or it is openssh-server-pam with UsePAM no;
  • PasswordAuthentication yes, which is the OpenSSH default;
  • the machine has an account whose password field is *, such as root on the base image, key-only users, directory-service users without shadow entries, or the alpine user in official tiny-cloud images;
  • at least one local account has a real $5$ or $6$ password hash.
SystemAffected?
Alpine Linux 3.16 to 3.24 and edge, running sshd with passwords enabledyes, until updated
Alpine-based containers that do not run sshdno
Any system with PasswordAuthentication nono
Ubuntu (glibc and PAM)no, according to Ubuntu
Red Hat Enterprise Linux (glibc and PAM)no, according to Red Hat

How to fix it

On Alpine:

apk upgrade -U -a
rc-service sshd restart

The restart is essential: upgrading the package does not restart a running sshd. Fixed openssh versions include:

Alpine branchFixed version
edge10.6_p2-r0
3.2410.3_p1-r2
3.2310.2_p1-r1
3.2210.0_p1-r11
3.219.9_p2-r1

Alpine has also published fixed packages for the unsupported 3.16 to 3.20 branches. If you build OpenSSH yourself against musl, update to 10.6p2.

2. If you cannot update: turn off password logins

Make sure you can log in with an SSH key first, and keep your current session open. Then, as root:

echo 'PasswordAuthentication no' > /etc/ssh/sshd_config.d/00-no-passwords.conf
sshd -t && rc-service sshd restart
sshd -T | grep -i passwordauthentication

The last command should print passwordauthentication no. Alpine reads the sshd_config.d drop-in directory from 3.19 onwards; on older releases, set the option in /etc/ssh/sshd_config instead.

3. Containers and images

  • Rebuild Docker images on an updated Alpine base, even if they do not run sshd today.
  • Check whether any container actually runs sshd. Most should not: use docker exec or your orchestrator instead.
  • In CI pipelines, pin to patched base image tags.

How to check for a break-in

Alpine recommends:

  • searching /var/log/messages for sshd lines reading "Accepted password for" an account that has no password, such as alpine, root or a key-only user;
  • reviewing doas use, newly created users, new files and authorized_keys on exposed machines;
  • treating the machine as compromised if you cannot rule out an unauthorised login.

Why it matters

Alpine runs in a huge number of containers, appliances and small cloud servers, often managed less carefully than big Linux hosts. Like the APT flaw in Debian and Ubuntu last week, sshole is a reminder to keep base images patched and to know which services actually face the internet. If you run workloads on virtual machines, our guide to IaaS, PaaS and SaaS explains which patching is your responsibility.

Conclusion

If you run Alpine or any musl-based system with SSH exposed, act now: update OpenSSH and restart sshd, or at least set PasswordAuthentication no. Then rebuild container images and check your logs for suspicious password logins. Ubuntu and Red Hat Enterprise Linux say they are not affected.

Frequently asked questions

Am I affected by CVE-2026-123158?

Only if sshd runs on Linux with musl libc and without PAM, password authentication is enabled, and the system has an account whose password field is '*' plus at least one account with a real password hash. Alpine Linux is the main example. Ubuntu and Red Hat Enterprise Linux use glibc and PAM and say they are not affected.

Is the OpenSSH flaw being exploited?

Yes. The US cybersecurity agency CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalogue on 9 November 2026, based on evidence of active exploitation.

Which version fixes it?

Upstream OpenSSH 10.6p2, released on 5 November 2026. On Alpine, fixed packages include openssh 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, 10.0_p1-r11 on 3.22 and 9.9_p2-r1 on 3.21. Restart sshd after updating.

Are Docker containers affected?

Only containers that actually run sshd with password authentication. According to Alpine, containers that do not run sshd are not affected, but you should still rebuild images on an updated Alpine base.

Sources and further reading

  1. Alpine Linux – Security advisory: openssh-server password authentication bypass (5 November 2026)
  2. OpenSSH – Release notes (OpenSSH 10.6p2)
  3. oss-security – 'sshole': password authentication bypass: OpenSSH + musl libc
  4. CISA – CISA Adds Four Known Exploited Vulnerabilities to Catalog (9 November 2026)
  5. Ubuntu Security – CVE-2026-123158
  6. Red Hat Customer Portal – CVE-2026-123158