Canonical authd access control bypass in SSH login ID reservation
Affects authd 0.4.1 up to 0.7.2, plus Ubuntu builds 0.6.1ubuntu0.1, in setups where first-time SSH logins create accounts. Fixed in authd 0.7.2 and 0.6.1ubuntu0.2.
- Exploited
- No known exploitation
- Fix
- Fixed in 0.7.2
- Who is exposed
- Specific setups only
Summary
Canonical's authd has an improper access control flaw that lets a remote attacker with a low-privilege login complete a first-time SSH login using another account's user ID and an incorrect primary group ID. The attacker can then read or modify that account's files, which could enable account takeover or privilege escalation.
Written by a model
Original description
In authd before 0.7.2, an improper access control vulnerability allows an authenticated remote attacker to complete a first-time SSH login with another account's UID and incorrect primary GID, and to read or modify files owned by that account. This allows an attacker to access another account's data, potentially enabling account takeover or privilege escalation.
Who should check
Anyone running authd from 0.4.1 up to but not including 0.7.2 for SSH logins, including first-time logins of accounts not yet in authd's user database.
“>= 0.4.1, < 0.7.2”
What to do
Check whether your setup matches what the bug needs.
authd versions >= 0.4.1 and < 0.7.2 First-time SSH login for an account not yet stored in authd's user database authd restarts while the attacker's SSH authentication is pending and the connection stays open Another new account receives the released UID and completes authentication before the attacker finishesUpgrade to a fixed version: 0.7.2.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-123879 (authd: SSH session with another account's UID via lost in-memory ID reservation after authd restart), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-123879 (entry last updated 2026-11-25):
Affected:
- Canonical authd: from 0.4.1, fixed in 0.7.2; from 0.6.1ubuntu0.1, fixed in 0.6.1ubuntu0.2
Fixed versions: 0.7.2.
Conditions (all must be true for the bug to be hit):
- authd versions >= 0.4.1 and < 0.7.2 (source: https://github.com/canonical/authd/security/advisories/GHSA-7j35-3378-8qvg)
- First-time SSH login for an account not yet stored in authd's user database (source: https://github.com/canonical/authd/security/advisories/GHSA-7j35-3378-8qvg)
- authd restarts while the attacker's SSH authentication is pending and the connection stays open (source: https://github.com/canonical/authd/security/advisories/GHSA-7j35-3378-8qvg)
- Another new account receives the released UID and completes authentication before the attacker finishes (source: https://github.com/canonical/authd/security/advisories/GHSA-7j35-3378-8qvg)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, low-privilege login, a user action.
CISA KEV: CVE-2026-123879 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-123879 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/canonical/authd/commit/888213607a9a2ceb00eb020f1396703b33d0f04a
- https://github.com/canonical/authd/security/advisories/GHSA-7j35-3378-8qvg
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-123879
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-123879"}.Affected versions
- authdFrom 0.4.1 · fixed in 0.7.2; From 0.6.1ubuntu0.1 · fixed in 0.6.1ubuntu0.2
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure8/25Specific setups only, reachable over the network
- Reach10/20Shipped in major Linux distributions
- Severity7.2/10CVSS 7.2
- No patch0/5No signal
What would change the score
- Would score about 75 if added to CISA KEV
- Would score about 70 if CISA's SSVC rates exploitation active
- Would score about 32 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 4
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Report | GitHub · canonical/authd · Advisory GHSA-7j35-3378-8qvg |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-123879 |
| Record | NVD · CVE-2026-123879 |
| Other links 1 | |
| Patch | GitHub · canonical/authd · Commit 88821360 |
Questions about CVE-2026-123879
Is CVE-2026-123879 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
If authd restarts while a first-time SSH login is still pending, it loses its reservation of the UID for that account. Another new account can then receive the released UID, and the pending session can run with that account's UID and an incorrect primary GID. This can allow reading or modifying that account's files and could enable account takeover or privilege escalation.
Source: github.com
Which versions are affected by CVE-2026-123879?
authd: from 0.4.1 before 0.7.2; from 0.6.1ubuntu0.1 before 0.6.1ubuntu0.2.
Source: cve.now feed data
Am I affected, and how do I check?
The advisory covers authd versions 0.4.1 up to but not including 0.7.2, and Ubuntu packages in the 0.6.1ubuntu0.1 range. The bug needs first-time SSH logins for accounts not yet stored in authd's user database, and an authd restart while that authentication is pending. Check the installed authd version with your system's package manager and whether SSH logins through authd create new accounts.
Source: github.com
How do I fix CVE-2026-123879?
Upgrade authd to 0.7.2 or later, or to 0.6.1ubuntu0.2 on the Ubuntu 0.6.1 branch. The facts name no separate patch identifiers.
Source: github.com
Related
- CVE-2025-5689Improper Permission Management in SSH Session Handling
- CVE-2026-6970authd Denial of Service and Local Privilege Escalation
- CVE-2026-102631authd: Account takeover via username fallback in identity matching after IdP email reassignment
- CVE-2026-112816Improper certificate validation in the HTTPS listener in LXD
- CVE-2026-87799Arbitrary file write on LXD host via symlink in migration stream
- CVE-2026-85526Path traversal via Btrfs optimized-backup subvolumes[].path enables root file/dir manipulation in LXD
No corrections so far. Something wrong on this page? Report an error.