CVE-2026-123158

HIGH(8.1)KEVElevated Risk

OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability

Description

CVE-2026-123158 is a password authentication bypass in sshd of OpenSSH before 10.6p2 on Linux systems that use musl libc without PAM, such as Alpine Linux. In this configuration, sshd lacks a workaround for a case in which a stored string is misinterpreted as to whether it is a password hash, so for some account configurations any password between 256 and 1024 characters is accepted. An attacker who reaches an affected SSH server can therefore log in to such accounts without knowing the real password and take over the system. CISA lists CVE-2026-123158 in its Known Exploited Vulnerabilities (KEV) catalog, public exploit code is available, and the EPSS score of 18.9% places this OpenSSH vulnerability in the 97th percentile.

KEV Information

Vendor
OpenBSD
Product
OpenSSH
Date Added
November 9, 2026
Due Date
November 12, 2026
Required Action
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

CVSS Score

Vector String
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in Calculator
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
2.2
Impact Score
5.9

CWEs

Affected Products

VendorProductVersion
openbsdopenssh< 10.6; 10.6

References

Weakness Type

CWE-394: Unexpected Status Code or Return Value

This weakness occurs when software checks some return values of a function but fails to handle legitimate values it did not anticipate. In CVE-2026-123158, sshd on musl-based systems without PAM does not correctly handle the result of the password check for certain account entries whose stored value is not a regular password hash, so an unexpected outcome is treated as a successful authentication when a very long password is supplied.

Learn more: CWE-394 — Unexpected Status Code or Return Value

Impact Analysis

CVE-2026-123158 has a CVSS v3.1 base score of 8.1 (HIGH). It is remotely exploitable without physical access, requires no authentication and no user action, but attack complexity is high because exploitation only works on Linux systems with musl libc, without PAM, with password authentication enabled and with accounts in a specific configuration. Where these conditions are met, Confidentiality, Integrity and Availability are all rated High: an attacker obtains an interactive shell as the affected user, which can mean full system control for privileged accounts. Because musl-based distributions such as Alpine Linux are common in containers, appliances and embedded systems, the EPSS score of 18.9% and confirmed exploitation make this a high-priority issue.

Exploit Maturity

CISA has confirmed active exploitation in the wild by adding CVE-2026-123158 to the KEV catalog on November 9, 2026, with a due date of November 12, 2026; ransomware usage is not known. Public exploit code is available for CVE-2026-123158 in the sshhole-lab and sshhole-repro repositories on GitHub. The EPSS score of 18.9% (97th percentile) indicates a very high likelihood of exploitation activity compared to other vulnerabilities, so exposed musl-based SSH servers should be assumed to be targeted already.

Remediation

  1. Upgrade OpenSSH to 10.6p2: Follow the KEV required action to "apply mitigations in accordance with vendor instructions" and install OpenSSH 10.6p2 or the patched package of your distribution as described in the OpenSSH release notes and the Alpine Linux advisory; the CISA due date was November 12, 2026.
  2. Disable password authentication: Set PasswordAuthentication no and KbdInteractiveAuthentication no in sshd_config and rely on public-key authentication, which removes the vulnerable code path entirely.
  3. Check images and appliances: Inventory Alpine-based and other musl-based container images, routers and embedded devices that run sshd, rebuild images with the fixed package and restrict SSH access to trusted networks or a bastion host.
  4. Hunt for abuse: Review authentication logs for successful password logins using unusually long passwords or from unexpected sources, and check affected systems for new keys in authorized_keys, new accounts and unknown processes.
  5. Long-term hardening: Review account entries for locked or placeholder password fields, enforce key-only SSH as a baseline, and apply MFA for administrative access where possible.

Technical Details

CVE-2026-123158 arises in the password authentication path of sshd when OpenSSH is built against musl libc without PAM. In this case sshd verifies passwords itself against the stored account entry, and the referenced patch adds a workaround for a misinterpretation of whether that stored string is actually a password hash; without it, the check returns an unexpected result for certain account configurations (CWE-394), and any password between 256 and 1024 characters is accepted. The CVSS v3.1 vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H reflects an unauthenticated network attack without user interaction whose high complexity stems from the narrow platform and account preconditions, with full impact on the affected host once they are met. The fix is tracked in the openssh-portable commit 4353fdc.

Frequently Asked Questions

Is CVE-2026-123158 being actively exploited?

Yes. CISA added CVE-2026-123158 to the Known Exploited Vulnerabilities catalog on November 9, 2026, and public exploit code is available on GitHub. The EPSS score of 18.9% is in the 97th percentile; ransomware usage is not known.

What products are affected by CVE-2026-123158?

OpenSSH sshd before 10.6p2 is affected on Linux systems that use musl libc without PAM, for example Alpine Linux. Systems using glibc or PAM are not affected by this specific bypass.

How do I fix CVE-2026-123158?

Upgrade to OpenSSH 10.6p2 or your distribution's patched package. As an immediate mitigation, disable password authentication in sshd and use public-key authentication only.

How severe is CVE-2026-123158?

CVE-2026-123158 has a CVSS v3.1 score of 8.1 (HIGH); the attack complexity is high because only specific musl-based configurations are vulnerable. Where those conditions apply, it allows a password-free login, and confirmed exploitation plus a 97th-percentile EPSS score make it critical in practice.

CVSS Score

8.1
HIGH(8.1)

EPSS Score

EPSS Score18.90%
EPSS Percentile97.3%

Dates

PublishedNovember 5, 2026
Last ModifiedNovember 10, 2026
StatusAnalyzed
CVSS Versionv3.1

Need Help With Vulnerability Management?

Our security experts can help you prioritize and remediate vulnerabilities effectively.