CVE-2026-124749: pam-MySQL Authentication Bypass via Inverted PAM_DISALLOW_NULL_AUTHTOK Handling
CVE-2026-124749 is an authentication bypass in pre-fix releases of pam-MySQL, also packaged as libpam-mysql. Both pam_sm_authenticate call sites invert PAM_DISALLOW_NULL_AUTHTOK when deriving the null_inhibited argument. Consequently, an application explicitly requesting rejection of passwordless accounts instead enables authentication without password comparison for qualifying database records. The 0.8.x branch is exploitable with SQL NULL stored passwords; the 1.0 line additionally treats empty stored passwords as qualifying. OpenSSH's default PermitEmptyPasswords=no setting supplies the flag that triggers the defect when vulnerable pam-MySQL participates in authentication. An attacker can supply an arbitrary password to impersonate an affected account.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Unauthenticated attackers can access affected accounts without knowing a valid password, bypassing the calling application's explicit prohibition on passwordless authentication. Successful exploitation exposes the resources and operations authorized to the impersonated account, potentially causing substantial confidentiality, integrity, and availability losses. Actual impact depends on account privileges, service exposure, and any additional authentication requirements. Controlled exploitation was demonstrated against OpenSSH; exploitation in the wild has not been confirmed.
Mitigation
If you can’t patch tonight, do this now.
Until patched, remove or disable credential-less records in authentication tables, or assign valid nonempty password credentials. Exclude both SQL NULL and empty stored passwords: NOT NULL constraints prevent the former, but empty values require separate enforcement. Avoid empty-string defaults. Do not enable OpenSSH PermitEmptyPasswords as a workaround, because doing so removes OpenSSH's own empty-password protection. For retrospective investigation, correlate successful authentication events with historical database records, using backups or database binary logs where available; ordinary OpenSSH success messages do not distinguish bypasses from legitimate password authentication.
Remediation
Patch, then assume compromise.
Upgrade Debian stable (trixie) pam-mysql to 0.8.2-2.1+deb13u1 or a later security-fixed package. For other distributions, install a vendor update incorporating the combined upstream correction, or backport that correction if no package is available. The complete fix corrects flag polarity at both pam_sm_authenticate call sites and introduces a nullok option disabled by default. Passwordless authentication must require explicit nullok permission and must remain prohibited whenever PAM_DISALLOW_NULL_AUTHTOK is set. Validate rejection of SQL NULL and empty stored passwords under both PAM flag states. Do not apply an empty-password branch change without the accompanying polarity correction, because that can introduce an additional bypass.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-124749 exploited in the wild?
- As of Nov 22, 2026, Mallory has no reports of CVE-2026-124749 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-124749?
- As of Nov 22, 2026, Mallory has found no public exploit for CVE-2026-124749.
- Is there a patch for CVE-2026-124749?
- Upgrade Debian stable (trixie) pam-mysql to 0.8.2-2.1+deb13u1 or a later security-fixed package. For other distributions, install a vendor update incorporating the combined upstream correction, or backport that correction if no package is available.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.