Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-123158 — Python PoC exploit for CVE-2026-123158 ("sshole"), an OpenSSH authentication bypass on Alpine Linux without PAM, triggered by long passwords against musl crypt(). | Kitploit
Tools/GitHubGitHub/maalfer/cve-2026-123158
Vulnerability AnalysisExploitationWeb Application ExploitationAuthenticationLearning & EducationLabs & Practice
GitHubmaalfer/cve-2026-123158

CVE-2026-123158

Python PoC exploit for CVE-2026-123158 ("sshole"), an OpenSSH authentication bypass on Alpine Linux without PAM, triggered by long passwords against musl crypt().

View Repository
4120 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    957
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    768
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    595
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    509
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    463
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    357

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-123158 — SSH Authentication Bypass ("sshole") exploit

CVE-2026-123158 is an SSH authentication bypass vulnerability (SSH authentication bypass, login without a password) that affects OpenSSH compiled without PAM on Alpine Linux (musl libc). This repository contains the exploit / PoC (Proof of Concept) in Python that reproduces the flaw in a practical way.

Nicknamed "sshole", the vulnerability allows logging in via SSH to accounts without a real password without needing to know any credentials.

Keywords: CVE-2026-123158, sshole, OpenSSH exploit, Alpine Linux vulnerability, musl crypt bypass, SSH authentication bypass, SSH login without password, auth bypass PoC.

What is CVE-2026-123158?

The crypt() function of musl libc (the libc used by Alpine Linux) literally returns the * character when the submitted password exceeds 256 bytes and the hash stored in /etc/shadow is also * (account marked as "no valid password", typical of service or disabled accounts). OpenSSH, when compiled without PAM support, compares that result directly against the shadow field: when comparing "*" == "*" the server accepts the login without the attacker knowing any real password.

Impact: SSH authentication bypass / access without credentials on affected accounts.

Conditions required for the system to be vulnerable:

  • openssh-server compiled without PAM (--without-pam), as happens by default in many Alpine Linux images.
  • PasswordAuthentication yes in sshd_config.
  • An account with * in /etc/shadow (user without a real password assigned).
  • Any other account on the system with a $5$ or $6$ hash (necessary for musl to enter the vulnerable code path).

Exploit / PoC

pip install paramiko

python3 exploit.py <HOST> <PORT> <USER> [LEN]
# Ejemplo contra cuenta 'alice' con contraseña de 300 caracteres
python3 exploit.py 172.17.0.2 22 alice 300

The script first sends a short password (negative control) and then a long password (>256 bytes) to trigger the musl crypt() bug and confirm whether the login is accepted without valid credentials.

Demo

Screenshot of the CVE-2026-123158 exploit (sshole): SSH authentication bypass on Alpine Linux via a long password

Mitigation

# Actualizar y reiniciar sshd
apk upgrade -U -a
rc-service sshd restart

# O deshabilitar autenticación por contraseña
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
rc-service sshd restart

Docker Lab

Available at DockerLabs / BunkerLabs — Eseeseache machine — image eseseache:latest, freely accessible, to practice exploiting CVE-2026-123158 in a controlled environment.

References

  • Eseeseache machine on DockerLabs / BunkerLabs — hands-on lab for the vulnerability.

For educational purposes. Do not use against systems without express authorization.

Download Tool