You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New authd users logging in via SSH are members of the root group
High
adombeck
published
GHSA-g8qw-mgjx-rwjrJun 16, 2025
Package
No package listed
Affected versions
< v0.5.4
Patched versions
v0.5.4
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
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.
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
ssh_allowed_suffixes
option in the broker configuriation.allowed_users
option in the broker configuration.Patches
Fixed by 619ce8e
Workarounds
Configure the SSH server to not allow authenticating via authd, for example by setting
UsePAM no
orKbdInteractiveAuthentication no
in thesshd_config
(see https://documentation.ubuntu.com/authd/stable/howto/login-ssh/#ssh-configuration).