Skip to content
NewA calmer, faster ZeroHour

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

oss-security ()
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the article

Impact: pre-auth login as accounts with SQL NULL passwords

ProductAffected
pam-mysql libpam-mysql—
What to do
  1. 1.Check sshd accounts using pam-mysql whose password column is SQL NULL.
Analyze CVE-2026-124749 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
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.

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.