PT-2026-152354
CVE-2026-124749
·
Published
2026-11-19
·
Updated
2026-11-21
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions
pam-mysql versions prior to 0.8.2-2.1+deb13u1
Description
An authentication bypass exists in pam-mysql due to a logic error where a boolean flag is inverted at both authenticate call sites. When a service like OpenSSH is configured with the default
PermitEmptyPasswords no, it sets the PAM DISALLOW NULL AUTHTOK flag to instruct PAM to refuse empty passwords. However, pam-mysql processes this as !(flags & PAM DISALLOW NULL AUTHTOK), causing the module to take a permissive path. If an account has a stored password that is SQL NULL, the password comparison is skipped, allowing an unauthenticated client to log in as that account using any password. In the 1.0 beta line, accounts with empty stored passwords are also exploitable.Technical details include:
- API Endpoints: The issue affects the
pam sm authenticatecall sites. - Vulnerable Parameters or Variables: The
PAM DISALLOW NULL AUTHTOKflag is incorrectly handled. - Function Names: The logic error occurs within the
pam mysql.cfile, specifically affecting the authentication flow wherevresultis evaluated.
Recommendations
Update pam-mysql to version 0.8.2-2.1+deb13u1 or 0.8.2-2+deb12u1 depending on the distribution.
Purge all rows from authentication tables that have NULL or empty passwords.
Modify the password column in the database to be
NOT NULL with no empty-string default.
Restrict the use of the pam-mysql module for SSH logins until the system is patched and the database is cleaned. Found an issue in the description? Have something to add? Feel free to write us 👾