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
SSHOLE-POC — Minimal reproduction environment for CVE-2026-123158 (“*sshole”), an OpenSSH authentication bypass affecting musl-based Linux systems (Alpine Linux, OpenWrt, Buildroot, Yocto). | Kitploit
Tools/GitHubGitHub/diallocode/sshole-poc
Container SecurityVulnerability AnalysisExploitationSecurity VirtualizationAuthenticationMisconfigurationLearning & EducationLabs & Practice
GitHubdiallocode/sshole-poc

SSHOLE-POC

Minimal reproduction environment for CVE-2026-123158 (“*sshole”), an OpenSSH authentication bypass affecting musl-based Linux systems (Alpine Linux, OpenWrt, Buildroot, Yocto).

0 days agoNot yet reviewed
Share
View Repository

SSHole — Reproducible PoC in an Alpine Container (CVE-2026-123158, CVSS score 8.1)

Local PoC to reproduce and understand the SSHole authentication bypass (CVE-2026-123158) in a vulnerable OpenSSH configuration using musl libc.

Legal Disclaimer : This repository was designed solely for educational and demonstration purposes in an isolated environment. Using the techniques or configurations presented here against systems without explicit authorization is strictly illegal.

About

SSHole results from an interaction between sshd and musl's crypt() function. For certain overly long passwords, musl returns * as an error indicator. In a vulnerable configuration, this value can be interpreted as matching the * field of an account that has no usable password, resulting in an authentication bypass.

This repository provides a reproducible environment based on:

  • Vagrant, to start the lab virtual machine;
  • Docker Compose, to run the isolated target;
  • Alpine Linux 3.19 and musl libc;
  • OpenSSH 9.6p1, in an unpatched revision.

The PoC is kept for study and validation purposes. For any real-world use, apply the fixes indicated in the Fix section.


Technical Context & Vulnerability Prerequisites

The test only works if all relevant conditions are met:

  1. sshd uses musl and does not use PAM (UsePAM no, or compiled without PAM);
  2. the OpenSSH server has not received the SSHole patch;
  3. PasswordAuthentication yes is in effect;
  4. the targeted account has a * password field;
  5. another local account has a $5$ or $6$ hash;
  6. to target root, PermitRootLogin yes allows password login.

The string sent as the password must be 257 to 1,024 bytes long. The root account is not automatically accessible: the SSH configuration and the accounts present in the image determine the targeted accounts.

Alpine revisions and backported patches: the upstream version number 9.6p1 alone does not allow concluding that a package is vulnerable. Alpine backported the fix in openssh-server 9.6_p1-r3.


System Prerequisites (Host Machine)

On the host machine:

  • Git;
  • Vagrant;
  • the virtualization provider configured in the Vagrantfile (here VMware);
  • enough memory and disk space to start the VM.

Docker is used inside the lab VM. It does not need to be installed on the host; Vagrant provisioning already installs it.

Installing and Launching the Lab

Follow these steps in order to deploy the environment:

1. Clone the repository

git clone [https://github.com/](https://github.com/)diallocode/SSHOLE-POC.git
cd /SSHOLE-POC

2. Start the Vagrant environment

vagrant up

3. Connect to the VM and access the Docker directory

vagrant ssh
cd /vagrant/docker

4. Verify that the target container is operational

docker ps

You should see a container based on alpine:3.19 inside it under the name: docker-sshd-1

If the container was not started automatically by provisioning, start it:

docker compose up -d

5. Verify the effective vulnerable configuration in the container

Before testing, check the versions and configuration actually loaded:

docker compose ps
docker compose exec sshd cat /etc/alpine-release
docker compose exec sshd apk info -v openssh-server
docker compose exec sshd sshd -V 2>&1
docker compose exec sshd ldd /usr/sbin/sshd
docker compose exec sshd sshd -T | grep -E '^(usepam|passwordauthentication|permitrootlogin) '

Confirmez les points suivants :

  • la cible est bien Alpine 3.19 et sshd est lié à musl ;
  • la révision installée est vulnérable et n’inclut pas le correctif ;
  • usepam no et passwordauthentication yes sont effectifs ;
  • le compte choisi et les comptes nécessaires au scénario sont présents ;
  • pour un test sur root, permitrootlogin yes est effectif.

4. Identifier un compte cible sans mot de passe

La faille exploite les comptes dont le champ mot de passe dans /etc/shadow est *, typiquement les comptes configurés pour une authentification par clé uniquement.

cat /etc/shadow

On Alpine, root is often in this situation if no password has been set. Another non-root user with the same configuration is also present in this file for testing.

5. Attempt authentication bypass (PoC)

From the VM, retrieve the container's IP address:

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' sshole-lab-sshd-1

Start the SSH client, forcing password authentication:

ssh root@<ip_container>

Enter a fake password a first time to retrieve the salt of an existing user.

It will tell you Authentication failed, try again :

Then enter a password of 257 to 1,024 bytes. Reproduction is confirmed if the server opens a session for the targeted account without a valid password.

Verifying a fix

Updating OpenSSH

Update to a fixed version from the distribution. On Alpine 3.19, the fixed revision indicated is 9.6_p1-r3 or any later fixed revision available for that branch.

In the lab container:

docker compose exec -u root sshd apk upgrade -U -a
docker compose restart sshd
docker compose exec sshd apk info -v openssh-server

A restart is required for the service to use the updated binary.

Disabling password authentication

As a mitigation measure, configure the server with:

PasswordAuthentication no

Validate the configuration and check its effective value:

docker compose exec sshd sshd -t
docker compose exec sshd sshd -T | grep '^passwordauthentication '

The expected output is passwordauthentication no. Then restart the service and run the test again: password authentication must be refused.

A change made directly in a running container is temporary. To keep the fix, modify the source configuration used by Compose; the file is located in SSHOLE-POC/docker/config/sshd_config, then rebuild and restart the service. In a real system, first verify that another administrative access is working.

Post-fix verification

The connection must now fail with Permission denied.

capture to be inserted

Cleaning up the environment

From the VM, exit the session and then destroy the Vagrant machine:

exit
vagrant destroy -f

Screenshots

Step 1 — Active container

docker ps output showing the alpine:3.19 container

Step 2 — PoC before the fix

SSH connection with a long password resulting in a root shell Figure 1 — Successful authentication bypass: root shell obtained without a valid password.

Step 4 — PoC after the fix

Same attempt returning Permission denied after PasswordAuthentication no Figure 2 — After applying the mitigation, the connection is refused.

References

  • Alpine Linux security advisory — OpenSSH password authentication bypass

  • OpenSSH 10.6p2 release notes

  • sshhole.com

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    371
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    336
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    322

Explore all tools

Browse our collection of tools

View all tools →