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 — Advisory and defensive analysis of CVE-2026-123158 (SSHhole), an OpenSSH password authentication bypass on musl libc systems, with detection commands and remediation guidance. | Kitploit
Tools/GitHubGitHub/ashrafzaryouh/cve-2026-123158
Defensive ToolsVulnerability AnalysisPenetration TestingAuthenticationLearning & Education
GitHubashrafzaryouh/cve-2026-123158

CVE-2026-123158

Advisory and defensive analysis of CVE-2026-123158 (SSHhole), an OpenSSH password authentication bypass on musl libc systems, with detection commands and remediation guidance.

Share
View Repository
1113 days agoNot yet reviewed

🔐 CVE-2026-123158 — SSHhole

Gemini_Generated_Image_p2bdcip2bdcip2bd

OpenSSH Password Authentication Bypass via musl libc

CVE CVSS Platform Status

Security Research • Vulnerability Analysis • Defensive Testing


📌 Overview

CVE-2026-123158, also known as SSHhole, is a password authentication bypass vulnerability affecting OpenSSH servers running on certain Linux configurations using musl libc without PAM support.

The vulnerability occurs because of an interaction between OpenSSH password verification and the error-handling behavior of musl libc's crypt() function.

Under specific account configurations, an attacker may authenticate using an incorrectly supplied password between 256 and 1024 characters.

Successful exploitation can result in unauthorized SSH access.

🎯 Vulnerability Information

AttributeDetails
CVE IDCVE-2026-123158
NameSSHhole
VendorOpenBSD
ProductOpenSSH
Componentsshd
Vulnerability TypeAuthentication Bypass
CWECWE-394
CVSS Version3.1
CVSS Score8.1
SeverityHigh
Attack VectorNetwork
Privileges RequiredNone
User InteractionNone
Affected Librarymusl libc
Affected EnvironmentLinux without PAM
Fixed VersionOpenSSH 10.6p2
Disclosure DateNovember 5, 2026

⚠️ Affected Environments

The vulnerability requires a specific combination of conditions.

Potentially affected configurations:

  • Linux systems using musl libc.
  • OpenSSH servers built or configured without PAM.
  • SSH password authentication enabled.
  • Accounts with password fields containing *.
  • Applicable account and password-hash configurations.

Examples of potentially affected environments:

  • Alpine Linux
  • OpenWrt
  • Buildroot-based systems
  • Yocto-based systems

Important: The presence of musl libc alone does not establish vulnerability. All relevant conditions must be evaluated.

Unaffected Configurations

  • OpenSSH using PAM for password authentication.
  • Systems using glibc rather than musl for this authentication path.
  • OpenSSH versions containing the upstream security fix.
  • Systems with vendor-patched packages.

🔬 Technical Analysis

1. Root Cause

The issue involves the interaction between:

  • OpenSSH password authentication.
  • musl libc crypt() implementation.
  • Unix shadow password fields.

When a password exceeds musl's supported input length, crypt() can return * to indicate an error.

Some Unix account configurations also use * as the stored password field for accounts that cannot authenticate using a password.

In the affected OpenSSH authentication path, these values can be incorrectly interpreted as a successful password match.

2. Authentication Failure

The underlying problem can be represented conceptually:

Submitted password
       |
       v
OpenSSH password verification
       |
       v
musl crypt() function
       |
       v
Password exceeds supported length
       |
       v
Returns "*" as an error indicator
       |
       v
Stored account password field is "*"
       |
       v
Incorrect string comparison
       |
       v
Authentication bypass
gvsqK2w_ HWbulm-bcAA9qvY

This behavior depends on the affected account configuration and runtime environment.

3. Security Impact

Potential consequences include:

  • Unauthorized SSH access.
  • Confidential information disclosure.
  • Unauthorized modification of system data.
  • Access to accounts intended for key-based authentication only.
  • Further privilege escalation where additional permissions are available.

Note: Root access is not automatic. The resulting privileges depend on the account and system configuration.

🧪 Detection & Verification

The following commands are intended for authorized system auditing.

1. Identify the Linux distribution

cat /etc/os-release

2. Check the OpenSSH version

ssh -V

For the SSH server binary:

sshd -V 2>&1

3. Identify the C library

ldd --version

On Alpine Linux, musl is the standard C library.

4. Inspect SSH authentication configuration

sudo sshd -T | grep -Ei 'usepam|passwordauthentication'

Expected configuration fields:

usepam no
passwordauthentication yes

These values indicate potentially relevant conditions, not confirmed exploitability.

5. Inspect the installed Alpine package

apk info openssh-server

Compare the installed package revision against the official Alpine security advisory.

6. Review SSH authentication logs

sudo grep 'Accepted password' /var/log/messages

Investigate unexpected successful password logins, especially involving accounts intended to use SSH keys only.

🛡️ Remediation

Recommended Fix

Upgrade to OpenSSH 10.6p2 or later, or install the corresponding security-patched package supplied by your Linux distribution.

Alpine Linux

Update installed packages:

sudo apk upgrade -U -a

Restart the SSH service:

sudo rc-service sshd restart

Verify the installed package revision after updating.

Temporary Mitigation

If immediate patching is not possible, disable SSH password authentication.

Edit:

sudo nano /etc/ssh/sshd_config

Set:

PasswordAuthentication no

Validate the configuration:

sudo sshd -t

Restart SSH:

sudo rc-service sshd restart

Warning: Confirm that SSH key-based access works before disabling password authentication. Keep an existing administrative session open while testing to avoid locking yourself out.

🔍 Defensive Security Checklist

  • Identify systems using musl libc.
  • Identify OpenSSH versions and package revisions.
  • Check whether PAM is enabled.
  • Review password authentication settings.
  • Identify accounts with passwordless or locked password fields.
  • Install vendor security updates.
  • Review SSH authentication logs.
  • Investigate suspicious successful logins.
  • Validate SSH key-based authentication.
  • Document remediation.

🧰 Security Research Environment

Suggested lab:

ComponentEnvironment
Attacker workstationKali Linux
Vulnerable test environmentAlpine Linux
SSH serviceOpenSSH
C librarymusl libc
AnalysisLinux authentication logs
TestingIsolated virtual machine

Only perform security testing against systems you own or have explicit permission to assess.

📚 Official References

  1. MITRE CVE-2026-123158

  2. OpenSSH 10.6p2 Release Notes

  3. OpenSSH Official Security Fix

  4. Alpine Linux Security Advisory

  5. CVE Details — OpenCVE

  6. More information here ==> https://sshhole.com/

⚖️ Disclaimer

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.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    547
  • 3

    ARTEX

    baarai/artex

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

    369
  • 4

    redforge

    cybersecurity91/redforge

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

    366
  • 5

    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.

    309
  • 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.

    282

Explore all tools

Browse our collection of tools

View all tools →