
Paramiko proof-of-concept and lab write-up for a claimed OpenSSH password authentication bypass (CVE-2026-123158), with HTB evidence, proposed root cause, and defensive guidance.
Lab-only research. This repository documents a successful SSH authentication bypass observed on an authorized Hack The Box target on 2026-11-13. The CVE identifier CVE-2026-123158, upstream version claims, and root-cause explanation originate from the supplied PoC and have not been independently validated against an authoritative advisory. Do not treat them as verified vulnerability intelligence.
A Python/Paramiko proof of concept was tested against an HTB DoubleTake SSH service advertising SSH-2.0-OpenSSH_10.6. An oversized password attempt, following a priming attempt on the same SSH transport, authenticated as the alpine account without a known valid password. A post-authentication id; uname -a command executed successfully. A separate attempt against root was rejected.
| Attribute | Observed value |
|---|---|
| Target | 10.129.248.123:22 (ephemeral HTB lab address) |
| SSH banner | SSH-2.0-OpenSSH_10.6 |
| Authentication methods | publickey, password, keyboard-interactive |
| Accounts tested | root, alpine |
| root | denied, attempt 4 |
| alpine | bypass reported, attempt 2 |
| Payload | 300 bytes |
| Identity | uid=1000(alpine) gid=1000(alpine) groups=1000(alpine) |
| Remote command | id; uname -a |
Full terminal output: evidence/console-output.txt.
The supplied script describes a conditional interaction between OpenSSH password authentication without PAM, musl crypt() handling of oversized passwords, and a shadow password field containing *. According to the script, a first password attempt primes salt selection, and a later password longer than 256 bytes can produce a comparison against the locked-account marker. This mechanism has not been confirmed by inspecting the target's libc, SSH configuration, shadow entries, or package revisions.
The SSH banner alone does not establish vulnerability or patch status.
Requirements: Python 3 and Paramiko. Prefer a virtual environment rather than --break-system-packages.
python3 -m venv .venv
source .venv/bin/activate
pip install paramiko
python3 poc/poc_cve_2026_123158_sshole.py \
--target <LAB_IP> --port 22 --user alpine --check
python3 poc/poc_cve_2026_123158_sshole.py \
--target <LAB_IP> --port 22 --users root,alpine \
--command 'id; uname -a'
--check only fingerprints the banner and offered authentication methods; it does not prove exploitability. The second invocation attempts authentication and, if successful, executes the supplied command.
alpine account.root attempt failed; it must not be described as a root compromise.Review SSH package revisions and vendor advisories, disable password authentication where operationally possible, verify PAM and account-lock behavior, and investigate unexpected successful password logins to locked/key-only accounts. Confirm remediation through package inspection and controlled regression tests, not banner strings alone.
Testing was conducted against an authorized Hack The Box environment. Do not run the PoC against systems without explicit authorization. The lab IP is transient and is not a general-purpose target.
poc/poc_cve_2026_123158_sshole.py — original supplied Paramiko PoCevidence/console-output.txt — terminal transcript of lab checks and observed authentication.gitignore — local Python artifacts