CVE-2025-5689
vulnerability analysis and mitigation

Overview

A flaw was found in the temporary user record that authd uses in the pre-auth NSS. The vulnerability, identified as CVE-2025-5689, was discovered and disclosed on June 16, 2025. This vulnerability affects Ubuntu's authd authentication system, specifically impacting systems where authd was installed via PPA and configured with OAuth 2.0 applications in Microsoft Entra ID or Google IAM (GitHub Advisory).

Technical details

The vulnerability allows a user logging in for the first time to be considered part of the root group in the context of that SSH session. The issue occurs when specific conditions are met, including having UsePAM and KbdInteractiveAuthentication enabled in the SSH configuration. The vulnerability has been assigned a CVSS v3.1 base score of 6.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N, indicating network attack vector, low attack complexity, low privileges required, and no user interaction needed (NVD).

Impact

The vulnerability leads to a local privilege escalation if the user should not have root privileges. This affects users who haven't previously logged into the system and are logging in via SSH. The impact is limited to the context of the SSH session but could potentially allow unauthorized access to root group privileges (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version v0.5.4 of authd. As a workaround, administrators can configure the SSH server to not allow authentication via authd by setting UsePAM no or KbdInteractiveAuthentication no in the sshd_config. The fix was implemented in commit 619ce8e (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management