Advisory

GHSA-g8qw-mgjx-rwjr

Also known as: CVE-2025-5689, GO-2025-3762

Summary

New authd users logging in via SSH are members of the root group

Details

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

  UsePAM yes
  KbdInteractiveAuthentication yes

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).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-06-16 16:01 UTC
Modified
2025-07-28 20:42 UTC

Affected packages and fixes

github.com/ubuntu/authd

Go · All systems

Affected

  • introduced 0, fixed 0.5.4 (semver)

Fixed versions

0.5.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences