On musl-libc based systems (Alpine Linux, OpenWrt, Buildroot, etc.), OpenSSH password authentication can be bypassed for accounts whose /etc/shadow password field is "*" (locked). musl's crypt() implementation returns "*" when given a password longer than 256 bytes. sshd compares this return value directly against the shadow field, which is also "*", so authentication succeeds. The exploit requires two password attempts on the same SSH connection: the first (any short password) primes sshd's internal fake-salt cache with a real $5$/$6$ hash from another account on the system, and the second (>256 byte) password triggers the musl crypt() bypass. All five conditions must be true: 1. OpenSSH built against musl (not glibc) 2. sshd built without PAM, or UsePAM no (Alpine default) 3. PasswordAuthentication yes (OpenSSH default) 4. Target account has "*" in /etc/shadow password field 5. At least one other account has a real $5$ or $6$ hash musl has returned "*" on overlength passwords since 2012. sshd started borrowing other accounts' salts in 2016. The bug is exploitable on OpenSSH as far back as 7.5p1 (musl 1.1.16, 2017). Fixed in OpenSSH 10.6p2 (2026-11-05).
Vulnerability
CVE-2026-123158
Vulnerability details
- Score
- 8.1
- Severity
- high
CVSS 3.1 · mitre
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
sshd in OpenSSH before 10.6p2 on Linux, when musl libc is used without PAM, lacks a workaround for a password authentication bypass (related to misinterpretation of whether a string is intended to be a password hash). For some configurations of accounts, any password between 256 and 1024 characters succeeds. An example of a platform using musl libc without PAM is Alpine Linux.
CVE ProgramExploit source choices
25 sourcesCVE-2026-123158 SSHole — OpenSSH authentication bypass via musl crypt() overflow on Alpine Linux (Exploit PoC)
Exploit para explotar la vulnerabilidad CVE-2026-123158 (conocida como sshole).
SSHole - OpenSSH Auth Bypass
Audit & interim mitigation for CVE-2026-123158 (*SSHole) — OpenSSH password bypass on musl/Alpine — across Docker containers, images and host
Vulnerability research, PoC reproduction lab, and technical analysis for Alpine Linux OpenSSH authentication bypass (CVE-2026-123158 / sshole)
coboliqcom/cve-2026-123158-sshole-safe-rust source repository
ghackdeveloper-dotcom/cve-2026-123158-sshhole source repository
CVE-2026-123158
A scanner which detects CVE-2026-123158
Prova de conceito para exploração da vulnerabilidade CVE-2026-123158.
galaxy-sc/cve-2026-123158 source repository
OpenSSH + musl password authentication bypass (sshole) checker: local precondition audit + remote verification; for authorized testing
sshole (CVE-2026-123158): OpenSSH password bypass on alpine Linux
Read-only exposure and compromise check for CVE-2026-123158, the musl-only OpenSSH password-auth bypass
Scanner CVE-2026-123158 *SSHHole
Proof-of-concept exploit for CVE-2026-123158, a password authentication bypass in OpenSSH server builds running on musl-based Linux distributions such as Alpine Linux.
musl libc를 쓰는 Apline의 OpenSSH에서 비밀번호 인증을 우회하는 취약점 (sshhole, CVE-2026-123158)을 이해하고 검증하기위해 작성함
ansonhsu-ai/sshhole-cve-2026-123158-ste source repository
A live, searchable browser for CISA's Known Exploited Vulnerabilities (KEV) catalog, with charts on recent additions and patch deadlines. Also includes a hands-on detection lab and a Sigma rule for the SSHole OpenSSH bypass (CVE-2026-123158).
A proof of concept python exploit for CVE-2026-123157 SSHole CVSS3.1 8.1 HIGH
Script for CVE-2026-123158, for CTF challenges.
A scanner for *sshole SSH vulnerability (CVE-2026-123158)
PoC for CVE-2026-123158 — OpenSSH Authentication Bypass
Entorno A/B en Docker y PoC del bypass de autenticación por contraseña de OpenSSH 10.6p1 sobre musl sin PAM (CVE-2026-123158), con documentación de reproducción y parcheo.