Skip to content
Access control Write-up Intermediate

CVE-2025-5689: New authd users logging in via SSH are members of the root group

When a new authd user logs in via SSH for the first time, the session places them in the root group, granting read and write access to files owned by that group. The user does not gain root privileges or capabilities beyond root group access.

github.com

Published on github.com

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…

The author, on github.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

The user may read and write files accessible by the root group, but does not get root privileges or any capabilities beyond that group access.

What the attacker needed

Authd installed via PPA; Entra ID or Google IAM broker configured; sshd allows authd SSH login; username allowed by ssh_allowed_suffixes

The fix

It was fixed by commit 619ce8e; as a workaround, disable authd SSH authentication by setting UsePAM no or KbdInteractiveAuthentication no.

How it was found

  1. Install authd via the PPA and configure an Entra ID or Google IAM broker.
  2. Configure sshd with PAM and keyboard-interactive authentication enabled.
  3. Ensure the username and user are allowed by the broker configuration.
  4. Log in via SSH as a user who does not yet exist in the authd user database and authenticate successfully.
  5. Observe that the session is a member of the root group.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

On Linux, files have an owner and a group, and group membership decides who can read or write them. A new user signing in through a special login service (authd) over SSH was mistakenly treated as part of the root group, so they could touch files meant only for that group. They did not become the root administrator, but they got more file access than they should have.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.