Empty Password Authentication Bypass in Linux-Pam

linux-pam Updated 02 Oct 2025

Summary

18/12/2020
N/A
Yes i
Critical
9.8

CVE-2020-27780: A flaw was found in Linux-Pam in versions prior to 1.5.1 in the way it handle empty passwords for non-existing users. Affects linux-pam across 2 version ranges.

< 1.5.1 >= 62d826471e87e27b39a36ccbeee58999e2514a92, < 225f17470eed9f44282f435ad1ed64c94d9a2ddf

Fixed in 1.5.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Linux-Pam is a library that provides a flexible and secure system authentication mechanism for Linux systems. It is responsible for authenticating users and managing their access to various services. This vulnerability affects versions of Linux-Pam prior to 1.5.1. The vulnerability allows an attacker to bypass authentication when attempting to log in with an empty password for a non-existing user. The flaw occurs because Linux-Pam tries to authenticate with the root user when the specified user does not exist, and it successfully authenticates if the password is empty.

Vulnerability Detail

The vulnerability (CVE-2020-27780) in Linux-Pam allows an attacker to gain unauthorized access to a system by exploiting the empty password authentication bypass. When a user with an empty password attempts to log in, Linux-Pam incorrectly authenticates the user as the root user. This can lead to various security risks, such as unauthorized access to sensitive data, privilege escalation, and potential system compromise. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

1.5.1

This is the first release that contains the fix.

sudo apk add --upgrade linux-pam

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, you can enforce strong password policies and ensure that all user accounts have non-empty passwords. This will prevent the exploitation of the empty password authentication bypass vulnerability. Additionally, regularly monitoring and auditing user accounts can help detect any unauthorized access attempts.

Conclusion

The empty password authentication bypass vulnerability in Linux-Pam (CVE-2020-27780) poses a critical security risk, allowing unauthorized access to systems. It is crucial to update Linux-Pam to version 1.5.1 or later to mitigate this vulnerability. Regularly enforcing strong password policies and monitoring user accounts can also help prevent unauthorized access attempts. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for linux-pam →

Share this vulnerability

FAQ

Linux-Pam is a library that provides system authentication for Linux systems. It manages user authentication and access to various services.

Versions of Linux-Pam prior to 1.5.1 are affected by this vulnerability.

When a non-existing user with an empty password attempts to log in, Linux-Pam tries to authenticate with the root user. If the password is empty, the authentication is successful, granting unauthorized access.

The vulnerability can lead to unauthorized access to sensitive data, privilege escalation, and potential system compromise.

To fix the vulnerability, update Linux-Pam to version 1.5.1 or later using the package manager specific to your Linux distribution.

Related vulnerabilities

Recent vulnerabilities recorded for linux-pam.

How To Fix

Minimum fixed version

1.5.1

This is the first release that contains the fix.

sudo apk add --upgrade linux-pam

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback