CVE-2025-5689
vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-5689) was discovered in Ubuntu's authd authentication system on June 16, 2025. The flaw exists in the temporary user record that authd uses in the pre-auth NSS, affecting 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 occurs when specific conditions are met, including having UsePAM and KbdInteractiveAuthentication enabled in the SSH configuration. It has been assigned a CVSS v3.1 base score of 8.5 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N, indicating network attack vector, low attack complexity, low privileges required, and no user interaction needed (NVD, Wiz).

Impact

When exploited, 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. This leads to unauthorized access to root group privileges, enabling the user to read and write files that are accessible by the root group. However, the user does not gain full root privileges or additional capabilities beyond root group access (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version v0.5.4 of authd. As a temporary workaround, administrators can configure the SSH server to prevent 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