high CVSS 8.1 Actively exploited EPSS 96%

CVE-2026-123158·OpenSSH vulnerability

sshd in OpenSSH before 10.6p2 on Linux, when musl libc is used without PAM, lacks a workaround for a password authentication bypass (related to misinterpretation of whether a string is intended to be a password hash). For some configurations of accounts, any password between 256 and 1024 characters succeeds. An example of a platform using musl libc without PAM is Alpine Linux.

Severity
high
Software
OpenSSH
Fixed in
10.6
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 96% — in the top 0.1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 10.6

Fixed in: 10.6

How to fix this CVE

Update OpenSSH to version 10.6p2 or later to close a critical authentication bypass affecting musl libc-based systems without PAM. This vulnerability allows attackers to bypass password authentication on certain account configurations using abnormally long passwords (256-1024 characters). Immediate patching is essential as this vulnerability is actively exploited in the wild.

sudo dnf update openssh-server openssh-clients

Defensia detects this vulnerability

How to check if you are affected

  1. Check installed OpenSSH version: ssh -V or sshd -v
  2. Verify if musl libc is in use and PAM is disabled: ldd /usr/sbin/sshd | grep musl && grep -i 'usepam' /etc/ssh/sshd_config
  3. Search auth logs for failed login attempts with unusually long password fields: grep 'Failed password' /var/log/auth.log | awk '{print length($0)}' | sort -n | tail -20
  4. Confirm patch installation: sshd -v | grep -E '10\.6p[2-9]|10\.[7-9]|1[1-9]\.'
  5. Verify sshd service is running the patched version: systemctl restart sshd && sleep 2 && sshd -v

FAQ

What is CVE-2026-123158?

CVE-2026-123158 is an authentication bypass vulnerability in OpenSSH that affects systems using musl libc without PAM support. It allows attackers to authenticate with passwords between 256 and 1024 characters regardless of the correct credentials, effectively bypassing password-based access controls.

Is CVE-2026-123158 being actively exploited?

Yes, CVE-2026-123158 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and is actively being exploited in real-world attacks. No public proof-of-concept exploit code has been officially released, but attack activity confirms practical exploitation.

What versions of OpenSSH are affected by CVE-2026-123158?

All OpenSSH versions prior to 10.6p2 are vulnerable when running on musl libc systems without PAM. Alpine Linux and other minimal Linux distributions using musl are particularly at risk.

How do I check if my server is vulnerable to CVE-2026-123158?

Run 'sshd -v' to check your OpenSSH version. If it shows a version earlier than 10.6p2 and your system uses musl libc (check with 'ldd /usr/sbin/sshd | grep musl'), your server is vulnerable. Additionally, verify PAM is disabled with 'grep UsePAM /etc/ssh/sshd_config'.

Does Defensia detect CVE-2026-123158?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If OpenSSH is installed on a monitored server, CVE-2026-123158 will appear in your dashboard with remediation steps.

Related OpenSSH CVEs

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-123158. Free for 1 server.

Get started free