AgentbeamBeta
Known exploited vulnerability · OpenBSD

CVE-2026-123158: OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability

highCVSS 3.1 8.1Exploited

OpenSSH sshd before 10.6p2 on Linux with musl libc and no PAM, such as Alpine Linux, accepts any password of 257 to 1024 bytes for accounts whose password field is `*`. That gives remote login to accounts that should have no password. Upgrade to OpenSSH 10.6p2 or the patched distribution package, restart sshd, or disable password authentication.

Published Nov 5, 2026 · Updated Nov 10, 2026 · Analysis Nov 9, 2026

What an attacker can do

Without PAM, sshd checks a password by hashing the attempt with crypt() and comparing the result with the stored field. musl's crypt() returns * as an error value when the key is longer than 256 bytes. An account with no password also stores *, so the comparison succeeds and the login is accepted. When a stored field is too short to hold a salt, sshd reuses another account's salt, which enables this path.

An attacker needs network access to sshd and a username whose password field is *. On Alpine, that includes root in the base image if PermitRootLogin yes is set, key-only users created without a password, directory-service users (nslcd, winbind, sssd), and the alpine user in tiny-cloud images. At least one local account must also hold a $5$ or $6$ hash. The attacker then logs in with a long junk password and gets a shell as that user. The CVSS rates complexity as high because of these conditions.

Who is affected

Linux hosts running sshd built without PAM on musl libc, with PasswordAuthentication yes (the default). Alpine's notice names openssh-server, or openssh-server-pam with UsePAM no, on releases 3.21 to 3.24, edge, and the unsupported 3.16 to 3.20.

Not affected: UsePAM yes, PasswordAuthentication no, locked accounts (!), and containers that do not run sshd. Check with:

sshd -T | grep -i passwordauthentication
apk info -v openssh-server

How to fix it

Upgrade to OpenSSH 10.6p2. On Alpine, fixed packages are 10.6_p2-r0 on edge, 10.3_p1-r2 on 3.24, 10.2_p1-r1 on 3.23, 10.0_p1-r11 on 3.22 and 9.9_p2-r1 on 3.21. Run apk upgrade -U -a, then rc-service sshd restart, because upgrading does not replace the running daemon.

If you cannot update, set PasswordAuthentication no. Alpine suggests a drop-in file /etc/ssh/sshd_config.d/00-no-passwords.conf, then sshd -t and a restart. Test key login in a second session first.

CISA added this to the KEV catalog on 2026-11-09 with a due date of 2026-11-12, which binds US federal agencies. CISA's action is to apply vendor mitigations under BOD 26-04 and its forensics triage requirements.

CISA 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.

How to tell if you were hit

Check /var/log/messages for Accepted password for lines on accounts that have no password, such as alpine, root or key-only users. Review doas use, recently created users, new files and changes to authorized_keys. Alpine advises that if you cannot rule out a login, you should treat the host as compromised.

Original advisory

From the National Vulnerability Database. This product uses the NVD API but is not endorsed or certified by the NVD.

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.

Questions

Is every OpenSSH server affected by CVE-2026-123158?

No. It needs Linux with musl libc, sshd without PAM, password authentication on, and an account whose password field is *. Glibc systems and PAM-enabled builds are not affected.

Is this exploited in the wild?

Yes. CISA added it to the KEV catalog on 2026-11-09. The references also include a GreyNoise events page and a SANS ISC diary about it.

Is restarting sshd required after the upgrade?

Yes. Alpine says upgrading the package does not replace the running daemon, so restart sshd after you upgrade.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

Coverage on the Beam blog

More OpenBSD vulnerabilities

All OpenBSD entries