CVE-2026-124749: How One Inverted Flag in pam-mysql Lets Attackers Log In With Any Password
A reversed flag in a Linux login module allowed attackers to bypass password checks and log in with any password.
Overview
A researcher named Andrey Vasilevsky found a serious flaw in pam-mysql, a software component that helps Linux and BSD systems check login passwords against a MySQL databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. The bug exists because a single boolean value is reversed, causing the system to allow passwordless accounts when it should refuse them. This means an unauthenticatedDone without logging in or holding a valid account on the target system network client can log in as any account with a NULL stored password using any password at all. The issue affects every released version of the software, including the 0.8.x line and the 1.0.0 betas. Red Hat assigned the identifier CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-124749 to this vulnerability, which the researcher scores as 9.8 on the CVSS 3.1The standard rating scale used to score how severe a software security flaw is scale. The most exposed setup is a default PAM-enabled sshd where PermitEmptyPasswords is set to no, meaning administrators who changed nothing are currently vulnerable.
Terms in this story
- SQL
- The standard query language used to read, add, update, and delete records in relational databases. Almost every banking, retail, and hospital system stores its records in a database controlled by SQL, which is why SQL injection bugs that alter those queries are so dangerous.
- database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
- unauthenticated
- Done without logging in or holding a valid account on the target system. An unauthenticated flaw is especially urgent in the news because any stranger on the internet can trigger it without needing a username or password first.
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- CVSS 3.1
- The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
- SSH
- An encrypted network protocol that administrators and developers use to log in to remote servers and run commands. Attackers constantly scan the internet for servers with open SSH ports and weak passwords, while defenders protect SSH access with cryptographic keys instead of passwords.
- disclosure
- The process of reporting and publishing details about a newly discovered security flaw in software or hardware. In security news, disclosure refers either to a researcher privately alerting a vendor about a bug or to a company publicly notifying customers about a breach.
- authentication bypass
- A security flaw that lets someone into an account or system without logging in properly. An authentication bypass in a router or web app might let an attacker visit an admin page directly or send a crafted request that skips the password check.
- misconfiguration
- An insecure setting in a server, cloud account, or application that leaves data or access exposed. Many major data leaks happen without any clever exploit because an administrator leaves a cloud storage bucket or database open to the public through a simple misconfiguration. Security+ objective 2.3 lists the term
- configuration
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- authentication
- Verifying that a user, device, or program really is who it claims to be before allowing access. When you enter a password, scan a fingerprint, or present a key, authentication checks your identity before a server decides what your account is allowed to do.
- pre-authentication
- Happening before a user or device has logged in to the system. A pre-authentication vulnerability in a VPN or mail server is critical because an attacker on the internet can exploit it at the login screen without having an account.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The CyberSec Guru website. Cite the article, not this page.
Read the full article on The CyberSec Guru (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"...pre-authentication bypass in pam-mysql..." Found by reading the article; these exact words are in it - Who is affected: "Linux and BSD systems..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"CVE-2026-124749: How One Inverted Flag in pam-mysql..." Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"CVE-2026-124749: How One Inverted Flag in pam-mysql..." Found in the headline - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......pam-mysql Lets Attackers Log In With Any Password..." Found in the headline - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"......pam-mysql Lets Attackers Log In With Any Password..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"CVE-2026-124749: How One Inverted Flag in pam-mysql..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......the bug works, affected distros, fixes, and detection This post first appeared at - The..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of the components of an authentication system.
"PAM module that lets Linux..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of access authentication methods.
"...pre-authentication bypass in pam-mysql..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role