CVE-2026-123879 in authd
Summary
by MITRE • 11/25/2026
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.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in authd prior to version 0.7.2 represents a critical failure in the implementation of identity verification and session initialization logic during the SSH authentication process. Specifically, this flaw constitutes an improper access control issue where the service fails to strictly validate that the user identifier (UID) associated with the authenticated principal matches the primary group identifier (GID) intended for the login session. In standard Unix-like operating systems, a user account is defined by a unique UID and typically has one or more GIDs, with the primary GID determining the default file creation permissions and initial access rights. The defect allows an attacker who has already obtained valid credentials for one account to manipulate these identifiers during the connection setup phase. By supplying another account's UID alongside an incorrect but syntactically accepted primary GID, the authentication daemon erroneously grants a session that is partially misaligned with standard security expectations. This manipulation effectively bypasses the intended isolation between user identities, allowing the authenticated entity to operate under a hybrid identity state that does not correspond to any single legitimate system account configuration.
From an operational perspective, this vulnerability enables significant unauthorized access and data compromise. Once the attacker establishes a session using the manipulated UID and GID, they gain the ability to read files owned by the target account whose UID was spoofed or utilized in the request. Furthermore, because the file permissions are often tied to both user and group ownership, the incorrect primary GID may further expand the scope of accessible resources if those resources rely on group-level access controls that align with the supplied but invalid GID. This capability directly facilitates data exfiltration, as sensitive information belonging to other users or system services can be accessed without proper authorization. The impact extends beyond mere privacy violations; it creates a pathway for account takeover and privilege escalation. An attacker could potentially use this misaligned session to modify configuration files, inject malicious scripts, or alter permissions on critical system binaries within the context of the targeted UID, thereby establishing persistence or escalating privileges if those modifications allow bypassing subsequent security checks.
This flaw aligns with CWE-269, which describes Improper Privilege Assignment, as well as CWE-862, Missing Authorization, because the application fails to enforce that the authenticated user is only accessing resources for which they are explicitly authorized based on their true identity attributes. In terms of adversarial tactics, this vulnerability supports techniques found in MITRE ATT&CK such as T1078 Valid Accounts and potentially T1546 Event Triggered Execution if used to modify startup scripts or cron jobs owned by the target UID. The exploitation relies on the attacker having valid credentials for at least one account within the system, which lowers the barrier to entry compared to unauthenticated attacks but remains highly dangerous in environments where credential reuse is common or internal lateral movement is a primary threat vector.
Mitigation strategies must prioritize immediate software updates and rigorous configuration hardening. The most effective remediation is upgrading authd to version 0.7.2 or later, where the developers have addressed this logic error by enforcing strict consistency checks between the authenticated UID and the requested GID during session initialization. Until an update can be applied, administrators should implement network-level access controls such as firewall rules to restrict SSH access to only trusted IP addresses, thereby reducing the attack surface for remote exploitation. Additionally, enabling multi-factor authentication adds a layer of defense that may mitigate some risks associated with credential theft, although it does not directly fix the underlying logic flaw in authd. Regular auditing of user and group configurations can also help identify anomalies resulting from such exploits, ensuring that any unauthorized modifications to file ownership or permissions are detected promptly.