
Python proof-of-concept for CVE-2026-123158 (SSHole), an OpenSSH authentication bypass on musl libc systems without PAM, using oversized passwords to gain access.
A Python proof-of-concept (PoC) for CVE-2026-123158, also known as SSHole, a high-severity authentication bypass vulnerability affecting OpenSSH on certain Linux systems.
CVE-2026-123158 affects OpenSSH versions before 10.6p2 on Linux systems using musl libc without PAM, such as certain Alpine Linux configurations.
The vulnerability occurs when OpenSSH incorrectly handles password hashing errors. Under specific conditions, this allows an attacker to bypass SSH password authentication using an oversized password, potentially gaining unauthorized access to affected accounts.
Severity: High (CVSS 8.1)
The Python PoC demonstrates the authentication-bypass technique using Paramiko.
The original exploit script:
The script includes an animated ASCII banner and interactive configuration prompts.
This script is intended for educational purposes and authorized CTF environments only. Do not use it against systems without explicit permission.