CVE-2026-124749 can affect a server only when its PAM authentication stack invokes pam-mysql and the database contains a password record matching the vulnerable condition. Researcher Andrey Vasilevsky reports that condition as SQL NULL in the 0.8.x series, and SQL NULL or an empty string in 1.0.0 beta versions. Debian published fixes for Debian 13 trixie and Debian 12 bookworm.

Check both parts of the exposure path: whether PAM actually calls pam-mysql and whether the relevant password records exist.

What CVE-2026-124749 affects

PAM, the Pluggable Authentication Modules system, lets Linux services use configurable modules to authenticate users. pam-mysql connects that authentication path to records in a MySQL database.

Debian says the module mishandled the PAM_DISALLOW_NULL_AUTHTOK flag and authenticated users with SQL NULL passwords contrary to the PAM specification. Vasilevsky describes the vulnerable branch as skipping the password comparison. SQL NULL means the database value is absent; it is different from an empty string (''). His disclosure identifies SQL NULL records as the relevant condition in pam-mysql 0.8.x, and reports that 1.0.0 beta versions also treat empty stored strings as vulnerable. Vasilevsky’s technical disclosure describes those version-specific cases; Debian’s advisory confirms the NULL-password authentication flaw.

Check whether your server uses the affected authentication path

Check the installed package, the PAM configuration for the service you are assessing, and the password records used by that configuration. Package presence alone does not establish that a service invokes the module.

  1. Check whether pam-mysql is installed. Look for the pam-mysql or libpam-mysql package in your system’s package manager. If it is absent, this particular module is not part of that server’s authentication path.
  2. Inspect the service’s PAM configuration. Determine whether its authentication stack calls pam-mysql. If it does not, the module’s reported flaw does not apply to that service through this path.
  3. Check the records used for authentication. For a 0.8.x version, look for accounts with SQL NULL in the stored-password field. For a 1.0.0 beta, check for both SQL NULL and empty strings. The relevant database and field depend on your configuration.

OpenSSH’s PermitEmptyPasswords no setting does not, by itself, prevent this flaw in the described path. Vasilevsky says OpenSSH sets PAM_DISALLOW_NULL_AUTHTOK when that setting is no, but vulnerable pam-mysql reverses the flag’s intended effect. Do not change the setting to yes: Vasilevsky warns that doing so disables OpenSSH’s separate protection against empty passwords. His disclosure explains the interaction.

Debian’s fixed package versions

For Debian 13 trixie, the fixed pam-mysql package version is 0.8.2-2.1+deb13u1. For Debian 12 bookworm, it is 0.8.2-2+deb12u1.

Debian releaseFixed pam-mysql package version
Debian 13 trixie0.8.2-2.1+deb13u1
Debian 12 bookworm0.8.2-2+deb12u1

The versions come from Debian’s trixie security advisory and Debian LTS’s bookworm advisory. Compare your installed package with the entry for your release and apply Debian’s security update if you are running an affected version.

Debian’s fix adds the nullok option. When enabled, it permits authentication with a SQL NULL password unless the caller sets PAM_DISALLOW_NULL_AUTHTOK; the advisories describe the option’s behavior, not a recommendation to enable it.

Investigating a possible past login

Ordinary OpenSSH log entries for accepted passwords do not identify whether a login used the bypass. Vasilevsky proposes correlating accepted usernames with the authentication database’s password records. For the relevant version, check whether those records contained SQL NULL, or—on 1.0.0 beta versions—an empty string.

The database’s current contents do not establish what it held at the time of an earlier login. Historical binary logs or backups from the relevant period may be needed for that comparison. Vasilevsky outlines this investigation method.