The Morning Dev

Only the news worth knowing

‹
 

Security · High impactFan score 96 · Tier S19 sources193 comments in the community

Re: "sshole": password authentication bypass: OpenSSH + musl libc

oss-security ·

The Brief

  • OpenSSH 10.6p2 was released with a workaround for a critical flaw, CVE-2026-123158 (nicknamed *sshole), that affects Linux systems using musl libc without PAM.
  • On affected systems, some accounts accept any password between 257 and 1024 characters, which lets attackers log into accounts that have no password, such as key-only accounts.
  • Help Net Security reports that threat intelligence firm Previdian has warned the flaw is already being exploited in the wild.

Why it matters

Servers running Alpine or other musl-based distributions without PAM may accept logins to passwordless accounts over the network, so exposed SSH hosts and Alpine-based containers should be patched or hardened now.

Who’s affected

  • Alpine Linux server operators
  • Teams running Alpine-based Docker images
  • Linux systems using musl libc without PAM

What to do

  1. Upgrade OpenSSH to 10.6p2 or apply the workaround
  2. Set PasswordAuthentication no in sshd configuration and restart sshd
  3. Verify that public key login works before disabling password authentication to avoid lockout
  4. Update base images of Alpine-based containers
  • OpenSSH 10.6p2
  • CVE-2026-123158
  • #openssh
  • #alpine-linux
  • #musl
  • #authentication-bypass
  • #ssh
  • #vulnerability

Posted by Jeffrey Walton on Nov 05 One general comment that does not fit well into most of the discussions around sshole... The practice of using a single character "*", or a shorter string of random characters so hashes do not match, likely provides the conditions for a side…

What developers are saying

Based on 193 comments · Mixed reactions

Commenters largely agree the bug is a serious musl and crypt() design problem and that disabling password authentication is good practice. Some criticise the musl API and Alpine's track record, and others argue the risk is overstated for most setups, while praising the fast release and short embargo.

  • musl crypt() error handling30%
  • Disable password auth or use certificates25%
  • Alpine and Docker exposure20%
  • Praise for fast disclosure15%
  • Criticism of C and memory safety10%

In favour

  • + Fast release and short embargo are seen as reasonable given rapid rediscovery by AI agents
  • + Disabling PasswordAuthentication is sound hardening regardless of this bug
  • + Certificate-based SSH setups were not affected

Concerns

  • − musl crypt() error behaviour and API are seen as poor design
  • − Alpine-based Docker images may stay unpatched for a long time
  • − Following the mitigation without checking key auth risks lockout
  • − The release is called a critical workaround but is not listed on OpenSSH's security page

“I would say that PasswordAuthentication=yes is by itself a vulnerability.”

zajio1am on Hacker News

“I keep saying that no one should be using alpine or musl, but people keep replying that static linking is totally worth it.”

0x457 on Hacker News

“This is brutal because a lot of docker containerized apps are very slow to update the base image if at all.”

nodesocket on Hacker News

Timeline

  1. Flaw disclosed as *sshole

  2. OpenSSH 10.6p2 released with workaround

  3. Hacker News: Front Page

    OpenSSH 10.6p2 has been released with a workaround for a critical vulnerability

  4. Hacker News

    170 points · 81 comments

  5. LWN.net

    Critical security vulnerability affects OpenSSH on Alpine Linux systems

  6. Hacker News: Front Page

    OpenSSH 10.6p2 Critical workaround for alpine without PAM

  7. Hacker News

    131 points · 7 comments

  8. Hacker News: Front Page

    Alpine Linux Security advisory: OpenSSH-server password authentication bypass

  9. Hacker News

    539 points · 105 comments

  10. The Hacker News

    OpenSSH Issues Emergency Fix for Flaw Letting Long Passwords Bypass SSH Auth on Alpine Linux

  11. BleepingComputer

    OpenSSH flaw lets attackers log into password-disabled Linux accounts

  12. Open Source Security

    Re: "sshole": password authentication bypass: OpenSSH + musl libc · +6 replies

  13. Biz & IT - Ars Technica

    Meet *sshole, the vulnerability that lets hackers SSH into Linux devices

  14. Previdian warns of in-the-wild exploitation

  15. Risky.Biz

    Risky Bulletin: Some OpenSSH instances take any password longer than 256 characters

  16. SecurityWeek

    OpenSSH Rushes Patches for ‘SSHole’ Authentication Bypass

  17. Help Net Security

    OpenSSH flaw exploited in the wild just hours after disclosure (CVE-2026-123158)

  18. The Hacker News

    Hackers Target OpenSSH SSHole Flaw Within Hours of Disclosure, Gain Root on Honeypot

  19. Techmeme

    Researcher: *sshole, a decade-old OpenSSH flaw, lets attackers use a password of 256+ characters to log into passwordless accounts on some musl Linux systems (Lawrence Abrams/BleepingComputer)

Full coverage · 19 sources

How do you feel about this?

0 Comments