CVE-2024-9312 Authd allows attacker-controlled usernames to yield controllable UIDs
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/ubuntu/authd Go | All versions to 0.0.0-20230706090440-d8cb2d561419 | None |
github.com/ubuntu/authd Go | All versions to 0.0.0-20230706090440-d8cb2d561419 | None |
github.com/ubuntu/authd Go | All versions | 0.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.
Other vulnerabilities in Canonical Ltd. Authd
Sources
Also known as GHSA-4gfw-wf7c-w6g2, GO-2024-3188.