Security · High impactFan score 44 · Tier B
CVE-2026-124749: pam-mysql: inverted PAM_DISALLOW_NULL_AUTHTOK gives a pre-auth authentication bypass
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
- Check whether pam-mysql is installed and used for PAM authentication on your systems.
- Apply a fixed pam-mysql version once available from your distribution.
- CVE-2026-124749
- #security
- #pam
- #authentication
- #mysql
- #cve
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…