Skip to main content
Mallory
UnratedVulnerability

CVE-2026-124749: pam-MySQL Authentication Bypass via Inverted PAM_DISALLOW_NULL_AUTHTOK Handling

Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days16 mentions · peak 10 in a dayToday
CVSS-Not scored
EPSS-30-day exploit probability
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-124749CWE-287

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity14Community discussion across Reddit, Mastodon, and other social sources.