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

Source: [Open Source Security](https://seclists.org/oss-sec/2026/q4/788) · 2026-11-19 · Security
Page: https://themorning.dev/story/cve-2026-124749-pam-mysql-inverted-pam-disallow-null-authtok-gives-a-pre-auth-au-0df8e2c232ccb9da
Kind: security · Impact: high

## In 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.

## 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.

## CVEs

- CVE-2026-124749

## Timeline

- 2026-11-19: Vulnerability disclosed on oss-security by Andrey Vasilevsky

## Coverage

- [CVE-2026-124749: pam-mysql: inverted PAM_DISALLOW_NULL_AUTHTOK gives a pre-auth authentication bypass](https://seclists.org/oss-sec/2026/q4/788) — Open Source Security, 2026-11-19

Tags: security, pam, authentication, mysql, cve

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
