CVE-2025-5689 is a high-severity (CVSS 8.5) Improper Privilege Management vulnerability in github.com/ubuntu/authd. A fix is available for github.com/ubuntu/authd — see the affected versions and patch details below.
Improper Permission Management in SSH Session Handling
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-5689.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/ubuntu/authdReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Impact
When an authd user logs in via SSH for the first time (meaning they do not yet exist in the authd user database) and successfully authenticates via the configured broker, the user is considered a member of the root group in the context of that SSH session. This situation may allow the user to read and write files that are accessible by the root group, to which they should not have access. The user does not get root privileges or any capabilities beyond the access granted to the root group.
Preconditions under which this vulnerability affects a system
- authd was installed via the PPA.
- An OAuth 2.0 application was registered in Microsoft Entra ID or Google IAM, and the respective authd broker was installed (authd-msentraid or authd-google) and configured.
- sshd was configured to enable SSH access with authd, i.e.:
UsePAM yes KbdInteractiveAuthentication yes - The username is allowed by the
ssh_allowed_suffixesoption in the broker configuriation. - The user is allowed by the
allowed_usersoption in the broker configuration. - The user successfully authenticates via the authd broker (Entra ID or Google IAM).
- The user did not log in locally before.
Patches
Fixed by https://github.com/ubuntu/authd/commit/619ce8e55953b970f1765ddaad565081538151ab
Workarounds
Configure the SSH server to not allow authenticating via authd, for example by setting UsePAM no or KbdInteractiveAuthentication no in the sshd_config (see https://documentation.ubuntu.com/authd/stable/howto/login-ssh/#ssh-configuration).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/ubuntu/authd | all versions | 0.5.4go get github.com/ubuntu/authd@v0.5.4 |
Affected Products
authdcanonicalDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/ubuntu/authd, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/ubuntu/authd to 0.5.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-5689 is resolved across your whole dependency graph.
Workarounds
Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
Frequently Asked Questions
Is CVE-2025-5689 in your dependencies?
Find it across Go, including transitive dependencies.