Incorrect Privilege Assignment Affecting github.com/ubuntu/authd/internal/users/tempentries package, versions <0.5.4


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Privilege Assignment vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMUBUNTUAUTHDINTERNALUSERSTEMPENTRIES-10500057
  • published25 Jun 2025
  • disclosed16 Jun 2025
  • creditUnknown

Introduced: 16 Jun 2025

NewCVE-2025-5689  (opens in a new tab)
CWE-266  (opens in a new tab)

How to fix?

Upgrade github.com/ubuntu/authd/internal/users/tempentries to version 0.5.4 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Privilege Assignment when a new user logs in via SSH and does not exist in the user database, the session assigns the user to the root group. An attacker can gain elevated privileges by authenticating as a new user through SSH.

Workaround

This vulnerability can be mitigated by configuring the SSH server to disallow authentication via the affected process, such as by setting UsePAM no or KbdInteractiveAuthentication no in the SSH configuration.

CVSS Base Scores

version 4.0
version 3.1