Authentication Bypass by Primary Weakness Affecting openssh package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Attacked
EPSS
16.5% (98th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-OPENSSH-22249323
  • published5 Nov 2026
  • disclosed5 Nov 2026
  • creditÖzgün Kültekin

Introduced: 5 Nov 2026

NewCVE-2026-123158  (opens in a new tab)
CWE-305  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Authentication Bypass by Primary Weakness via sys_auth_passwd() accepting a crypt() failure value as a valid password hash. An attacker could log in as any account whose /etc/shadow password field is * (such as root or a key-only user) by submitting a 257–1024 character password.

Notes

Successful exploitation depends on all of the following:

  • sshd is built without PAM (UsePAM no or not compiled in) and linked against musl libc.
  • Password authentication is enabled (PasswordAuthentication yes, the default).
  • The target account has exactly * as its shadow password. A ! does not work.
  • At least one other account has a real password hash.
  • The attacker knows the target username.

CVSS Base Scores

version 4.0
version 3.1