CVE-2017-20002: Vulnerability in Debian login package

shadow Updated 02 Oct 2025

Summary

17/03/2021
Yes i
High
7.8

CVE-2017-20002: The Debian shadow package before 1:4.5-1 for Shadow incorrectly lists pts/0 and pts/1 as physical terminals in /etc/securetty. Affects shadow across 2 version ranges.

< 1:4.5-1 < 68061f2059124f5aa450dfbf6bbad3e7a6f65f9f

Fixed in 1:4.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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The login package is a part of the Debian operating system and is responsible for handling user logins. It provides the functionality for users to authenticate and access the system. The vulnerability in the Debian login package allows local users to login as password-less users, even if they are connected by non-physical means such as SSH. This bypasses the PAM's nullok_secure configuration and can lead to privilege escalation. This vulnerability is particularly significant in environments like virtual machines with default blank root passwords.

Vulnerability Detail

The Debian shadow package before version 1:4.5-1 for Shadow incorrectly lists pts/0 and pts/1 as physical terminals in /etc/securetty. This misconfiguration allows local users to login as password-less users, bypassing PAM's nullok_secure configuration. As a result, users can escalate their privileges and gain unauthorized access to the system. This vulnerability is especially critical in scenarios where virtual machines are automatically generated with default blank root passwords, enabling all local users to exploit the vulnerability.

How To Fix

Minimum fixed version

1:4.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade shadow

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

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in the Debian login package allows local users to login as password-less users and escalate their privileges. It is crucial to upgrade the package to the fixed version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for shadow →

Share this vulnerability

FAQ

The vulnerability allows local users to login as password-less users and escalate their privileges, potentially gaining unauthorized access to the system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file, like package-lock.json, and Vulert will analyze it in real-time.

There are no known exploits available for this vulnerability at the moment.

No, this vulnerability can only be exploited by local users who have access to the system.

Yes, the CVSS score for this vulnerability is 7.8, indicating a high severity.

Related vulnerabilities

Recent vulnerabilities recorded for shadow.

How To Fix

Minimum fixed version

1:4.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade shadow

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