pam-mysql null-auth inversion bypasses SSH logins (CVE-2026-124749)
Original title: CVE-2026-124749: pam-mysql: inverted PAM_DISALLOW_NULL_AUTHTOK gives a pre-auth authentication bypass
On stock sshd, any password logs in as an account whose stored password column is SQL NULL.
Andrey Vasilevsky reported that pam-mysql inverts PAM_DISALLOW_NULL_AUTHTOK at both pam_sm_authenticate call sites. An application that asks PAM to refuse passwordless accounts gets the permissive behavior instead. On stock sshd, an unauthenticated network client can authenticate as any account whose password column is SQL NULL; the supplied password is not compared. The snippet names CVE-2026-124749 but no fix.
Unconfirmed: The post is cut off after the CVE assignment, and no fixed release is shown.
- The flag is inverted at both pam_sm_authenticate call sites.
- The supplied password is never compared on the SQL NULL branch.
- The report covers libpam-mysql, also named src:pam-mysql.
- No fixed version appears in the posted snippet.
Impact: pre-auth login as accounts with SQL NULL passwords
| Product | Affected |
|---|---|
| pam-mysql libpam-mysql | — |
- 1.Check sshd accounts using pam-mysql whose password column is SQL NULL.
- CVEs
- CVE-2026-124749
- Products
- pam-mysqllibpam-mysql
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-124749 | — | — | — |
From the original article
Posted by Andrey Vasilevsky on Nov 19 Hello, pam-MySQL (libpam-mysql, src:pam-mysql) inverts PAM_DISALLOW_NULL_AUTHTOK at both pam_sm_authenticate call sites, so an application that asks PAM to refuse passwordless accounts gets the permissive behaviour instead. On a stock sshd, an unauthenticated network client authenticates as any account whose stored password column is SQL NULL, using any password.
seclists.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.