International
The Morning Dev

Only the news worth knowing

‹
 

Security · High impactFan score 44 · Tier B

CVE-2026-124749: pam-mysql: inverted PAM_DISALLOW_NULL_AUTHTOK gives a pre-auth authentication bypass

oss-security ·

The Brief

  • pam-mysql inverts the PAM_DISALLOW_NULL_AUTHTOK flag at both pam_sm_authenticate call sites.
  • Applications that ask PAM to refuse passwordless accounts instead get permissive behaviour, enabling a pre-authentication bypass.
  • Disclosed on oss-security on 2026-11-19 as CVE-2026-124749.

Why it matters

Systems using pam-mysql with applications that rely on PAM_DISALLOW_NULL_AUTHTOK may accept logins for accounts without passwords, which can allow unauthenticated access.

Who’s affected

  • Teams running pam-mysql (libpam-mysql) for PAM authentication
  • Operators of stock sshd configurations using pam-mysql

What to do

  1. Check whether pam-mysql is installed and used for PAM authentication on your systems.
  2. Apply a fixed pam-mysql version once available from your distribution.

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…

Timeline

  1. Vulnerability disclosed on oss-security by Andrey Vasilevsky

  2. Open Source Security

    CVE-2026-124749: pam-mysql: inverted PAM_DISALLOW_NULL_AUTHTOK gives a pre-auth authentication bypass

How do you feel about this?

0 Comments

    CVE-2026-124749: pam-mysql: inverted PAM_DISALLOW_NULL_AUTHTOK gives a pre-auth authentication bypass – The Morning Dev