Published Nov 24, 2026, 4:00 PM EST Umair Khurshid is a technology writer and developer with a strong focus on Linux, FreeBSD, cloud infrastructure, and automation. Before focusing on writing, Umair worked as a developer and DevOps engineer building and automating cloud-native systems. A serious security vulnerability in a Linux authentication module could allow attackers to log in to affected servers using practically any password. What makes this particularly concerning is that the vulnerability can be triggered even when an SSH server has been configured to reject empty passwords. In fact, the very hardening setting intended to prevent this kind of authentication can help expose the flaw. A security check that does the opposite of what it should The problem lies in how pam-mysql handles empty passwords Linux authentication is more complicated than simply comparing the password you enter with the one stored on your computer. Many Linux distros use Pluggable Authentication Modules (PAM), a framework that allows applications to use different authentication mechanisms. For example, a sysadmin might configure a server to authenticate users against a MySQL database instead of maintaining separate passwords for every account in the local system. This is where pam-mysql comes in. It connects the PAM authentication system to a MySQL database, allowing applications that support PAM to verify credentials stored there. The vulnerability tracked as CVE-2026–124749 involves a security flag called PAM_DISALLOW_NULL_AUTHTOK. Its purpose is relatively straightforward that when an application sets this flag, authentication modules are supposed to reject accounts that do not have a password. Unfortunately, vulnerable versions of pam-mysql handle this flag incorrectly. A logic error effectively reverses the intended behavior, allowing certain accounts without stored passwords to authenticate when they should have been rejected. The researcher who disclosed the vulnerability, Andrey Vasilevsky, proposed a CVSS score of 9.8 out of 10, placing it in the critical severity category. However, he also acknowledged that a score of 8.1 (high severity) could be more appropriate given the specific database conditions required for exploitation. Debian has confirmed fixes for its two stable releases. Both security advisories were published on November 19, 2026, and Debian’s security tracker still (at the time of writing) lists the testing and unstable branches as vulnerable. Ubuntu acknowledged the vulnerability on November 20, but Ubuntu has assigned the issue Medium priority. Even the default SSH security settings can be affected PermitEmptyPasswords does not protect against this flaw One particularly interesting aspect of this vulnerability is how it interacts with OpenSSH. OpenSSH has a configuration directive called PermitEmptyPasswords, which controls whether accounts with empty passwords can authenticate using SSH password authentication. By default, this setting is disabled. An admin can also explicitly configure it in /etc/ssh/sshd_config: PermitEmptyPasswords no Under normal circumstances, that is exactly what you want. There is rarely a good reason to allow remote users to log in without providing a password. However, when OpenSSH disallows empty passwords, it sets the PAM_DISALLOW_NULL_AUTHTOK flag during authentication because vulnerable versions of pam-mysql interpret this flag incorrectly, the authentication module can end up accepting an account that should have been rejected. This is why the vulnerability is more concerning than an ordinary misconfiguration: you might have followed recommended SSH hardening practices and still be exposed because the underlying authentication module is behaving incorrectly. There is also an important warning here. Changing PermitEmptyPasswords to yes is not a safe workaround. Although doing so changes the behavior that triggers this particular bug, it also relaxes OpenSSH's own protection against empty passwords. The researcher specifically cautioned against making that change. The proper solution is to install a corrected version of pam-mysql and address any accounts with missing password records. The vulnerability affects multiple versions of pam-mysql, although the exact conditions depend on which version is installed. In the 0.8.x series, the authentication bypass requires an account whose password column contains SQL NULL. The 1.0.0 beta series has an additional problem that accounts with an empty password string can also be vulnerable. That is important because a database column can contain an empty string even when its schema prohibits SQL NULL values. If you are using the newer beta series, you need to check for both conditions. The original disclosure identified potentially affected packages across several Linux distros, including Debian, Ubuntu, Fedora, Gentoo, and others. However, the presence of a vulnerable package does not necessarily mean that every installation is exploitable, as the module must be used in an affected authentication configuration. How to check whether your Linux server is vulnerable Start by checking your installed authentication modules If you manage a Linux server, the first thing to establish is whether it actually uses pam-mysql. On Debian and Ubuntu, you can check whether the package is installed with: dpkg-query -W libpam-mysql On Fedora or another RPM-based distro, you can search for installed packages using: rpm -qa | grep -i pam.mysql Finding an installed package is only the first step. You should also examine the PAM configuration used by your SSH server and other applications to determine whether they actually invoke the module. On systems using the conventional /etc/pam.d configuration directory, you can search for references with: sudo grep -R 'pam_mysql' /etc/pam.d/ If your server uses the module, check the relevant database records for SQL NULL password entries and empty password strings. The exact query will depend on your database schema. You should also install the latest security updates available from your distro. Debian users can retrieve the patched packages through their configured security repositories. Avoid modifying PAM configuration on a production server without a tested recovery method. An incorrect authentication change can lock administrators out of the system. There is no confirmed evidence of attacks in the wild The researcher demonstrated that the vulnerability could be exploited against a real SSH server, which establishes that the problem is more than a theoretical weakness. However, there is currently no confirmed evidence that attackers are actively exploiting it in the wild. Another complication is that an SSH login completed through this bypass can look like an ordinary successful password login in the authentication logs, but the situation is more serious for those who rely on database-backed credentials for SSH or other network-accessible services. If an affected account exists, the vulnerability could undermine an important part of the server’s authentication process. The original technical disclosure is available on the oss-security mailing list.
This Linux vulnerability could let attackers bypass your server's password protection
Full Article
Original Source
Read the full article at Howtogeek →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.