CVE-2024-9312 Authd allows attacker-controlled usernames to yield controllable UIDs

High 7.5 Published Updated

A local attacker can spoof user IDs due to insufficient randomization in Authd, allowing them to gain another user's privileges.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-9312?

CVE-2024-9312 is a high-severity vulnerability in Canonical Ltd. Authd, published on 10 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Authd, through version 0.3.6, did not sufficiently randomize user IDs to prevent collisions. A local attacker who can register user names could spoof another user's ID and gain their privileges.

Weakness: CWE-335, CWE-286

Which versions are affected by CVE-2024-9312?

3 open source packages ship an affected version, including github.com/ubuntu/authd. It affects 1 product.

PackageAffectedFixed in
github.com/ubuntu/authd GoAll versions to 0.0.0-20230706090440-d8cb2d561419None
github.com/ubuntu/authd GoAll versions to 0.0.0-20230706090440-d8cb2d561419None
github.com/ubuntu/authd GoAll versions0.3.6

Products include Canonical Authd.

How do I fix CVE-2024-9312?

Upgrade github.com/ubuntu/authd to 0.3.6 or later.

Is CVE-2024-9312 being exploited?

There is no known exploitation of CVE-2024-9312 in the wild and no public exploit code.

Sources

Also known as GHSA-4gfw-wf7c-w6g2, GO-2024-3188.

Is CVE-2024-9312 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free