Exploit database

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:H

Description

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 Program

Exploit source choices

25 sources
OpenSSH musl-libc crypt() Authentication Bypass
MSF-linux--ssh--openssh_musl_crypt_bypassMetasploitUnix / remotePreferred

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).

2026-11-05openssh_musl_crypt_bypass.rb
gabrielunknown/cve-2026-123158_sshole
GH-ea9a1f13d25e0e65ada9a69f95cea212GitHubUnofficial GitHub source

CVE-2026-123158 SSHole — OpenSSH authentication bypass via musl crypt() overflow on Alpine Linux (Exploit PoC)

2026-11-053 files · 11 stars
maalfer/cve-2026-123158
GH-b42fe06e0579e8c84971c1c22b32ce59GitHubUnofficial GitHub source

Exploit para explotar la vulnerabilidad CVE-2026-123158 (conocida como sshole).

2026-11-063 files · 5 stars
gotr00t0day/cve-2026-123158
GH-08f001a4f54d3edaca632973d0c40628GitHubUnofficial GitHub source

SSHole - OpenSSH Auth Bypass

2026-11-182 files · 4 stars
ersinkoc/sshole-check
GH-5a35ac8db9f043e230d9c68a9ba5692dGitHubUnofficial GitHub source

Audit & interim mitigation for CVE-2026-123158 (*SSHole) — OpenSSH password bypass on musl/Alpine — across Docker containers, images and host

2026-11-055 files · 3 stars
akarkode/alpine-openssh-sshole-auth-bypass
GH-e350e84e41758d17b10ba28295882a71GitHubUnofficial GitHub source

Vulnerability research, PoC reproduction lab, and technical analysis for Alpine Linux OpenSSH authentication bypass (CVE-2026-123158 / sshole)

2026-11-0613 files · 2 stars
avi99999/sshhole-scanner
GH-7bb6db2dcaefafa9ad105ede8f7e2591GitHubUnofficial GitHub source

A scanner which detects CVE-2026-123158

2026-11-1316 files · 1 stars
crash00xd/cve-2026-123158_sshrole_poc
GH-331aa76d837156ec790dcfa9867b9678GitHubUnofficial GitHub source

Prova de conceito para exploração da vulnerabilidade CVE-2026-123158.

2026-11-063 files · 1 stars
galaxy-sc/cve-2026-123158
GH-cab813ef5ae04f520423fc579abc2303GitHubUnofficial GitHub source

galaxy-sc/cve-2026-123158 source repository

2026-11-084 files · 1 stars
hackspeak/cve-2026-123158
GH-cb2fb39baf145b5e9a7776e375d5eefbGitHubUnofficial GitHub source

OpenSSH + musl password authentication bypass (sshole) checker: local precondition audit + remote verification; for authorized testing

2026-11-063 files · 1 stars
halilkirazkaya/cve-2026-123158
GH-fe2d0f0cf402ad916ac461c6f61e812aGitHubUnofficial GitHub source

sshole (CVE-2026-123158): OpenSSH password bypass on alpine Linux

2026-11-065 files · 1 stars
mikecase/check-sshole
GH-2224125214c7d169df491b1777e3043cGitHubUnofficial GitHub source

Read-only exposure and compromise check for CVE-2026-123158, the musl-only OpenSSH password-auth bypass

2026-11-073 files · 1 stars
rothoma2/cve-2026-123158-sshole
GH-9e58b1b07d2af967cb989d803e48485aGitHubUnofficial GitHub source

Scanner CVE-2026-123158 *SSHHole

2026-11-053 files · 1 stars
0xsyr0/cve-2026-123158-poc
GH-9f6a075b6d596f1eae4b3e0a3f030bc0GitHubUnofficial GitHub source

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.

2026-11-223 files · 0 stars
aciddust/cve-2026-123158-lab
GH-49b2dbabf168ced464797225d49ac0f4GitHubUnofficial GitHub source

musl libc를 쓰는 Apline의 OpenSSH에서 비밀번호 인증을 우회하는 취약점 (sshhole, CVE-2026-123158)을 이해하고 검증하기위해 작성함

2026-11-098 files · 0 stars
aparnaa19/cve-to-chaos
GH-174bb34c7609370aa742be9d1a63b9c8GitHubUnofficial GitHub source

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).

2026-11-1511 files · 0 stars
asvorg/cve-2026-123158-sshole-poc
GH-692df817a0e5d2730a661deeb8673a15GitHubUnofficial GitHub source

A proof of concept python exploit for CVE-2026-123157 SSHole CVSS3.1 8.1 HIGH

2026-11-262 files · 0 stars
cheats121/sshole-cve-2026-123158
GH-c3597d5629a2d37cfcd2ac30d3e58a17GitHubUnofficial GitHub source

Script for CVE-2026-123158, for CTF challenges.

2026-11-182 files · 0 stars
cveforge/cve-2026-123158
GH-5a7c44188dd1f05eb2a34d3326145750GitHubUnofficial GitHub source

PoC for CVE-2026-123158 — OpenSSH Authentication Bypass

2026-11-242 files · 0 stars
d1se0/cve-2026-123158
GH-e2605aca19c89f167da0ecc21ef11636GitHubUnofficial GitHub source

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.

2026-11-0916 files · 0 stars