Ubuntu Authd Privilege Escalation Vulnerability via SSH Authentication

Vulnerability

A privilege escalation vulnerability exists in Ubuntu Authd versions prior to 0.5.4. When a new user logs in in an SSH session, they are incorrectly granted membership in the root group. This flaw arises from an issue in the temporary user record used by Authd in the pre-authentication Name Service Switch (NSS). As a result, users who should not have root privileges could gain elevated rights during their SSH session.

Impact

Exploitation of this vulnerability allows for local privilege escalation, granting unauthorized root privileges to users logging in via SSH for the first time.

Remediation

Users can upgrade to Authd version 0.5.4 or later to address this vulnerability. Alternatively, SSH server configurations can be adjusted to disallow authentication via Authd, such as by setting 'UsePAM no' or 'KbdInteractiveAuthentication no' in the 'sshd_config'.

Added: Jun 16, 2025, 12:26 PM
Updated: Jun 16, 2025, 12:34 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
5.2
remediation
0.0
relevance
0.2
threat
0.0
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.