SEPTEMBER 7, 2026
Live Feed
Back to database
Case File

CVE-2024-5300

MEDIUM · CVSS 5.6 EPSS 0.10%

Source: NVD + CISA KEV + EPSS · Published 2026-07-21 · Last synced 2026-08-20

CyberRota Analysis

AI-Generated

An access control bypass vulnerability in the AppArmor security profile of Canonical snapd allows strictly confined snap applications to interact with sensitive UNIX domain sockets, potentially exposing hashed user passwords from the /etc/shadow file. This issue arises when the systemd-userdbd service is operational, enabling a compromised snap application to query user records as if it were an unconfined root user. Organizations using Ubuntu with systemd-userdbd installed should prioritize addressing this vulnerability to safeguard sensitive user information.

CVE
CVE-2024-5300
Severity
MEDIUM
CVSS
5.6
EPSS
0.10%
Ubuntu

Original NVD Description

An access control bypass and information disclosure vulnerability exists in the base AppArmor security profile configuration of Canonical snapd. The abstraction rules located in /etc/apparmor.d/abstractions/nss-systemd (inherited via ) inadvertently permit strictly confined snap applications, which lack the privileged account-control interface, to interact directly with the io.systemd.Multiplexer and io.systemd.NameServiceSwitch UNIX domain sockets under /run/systemd/userdb/. On systems where the systemd-userdbd service is installed and operational, the service fails to distinguish between an unconfined root user on the host system and a restricted root user running within a snap application's sandbox (such as a daemon or configuration hook). Because systemd-userdbd returns "complete" user records—including sensitive hashed user passwords from /etc/shadow—when queried by a process running as root, a compromised or malicious strictly confined snap executing code as root can successfully query the Varlink interface to retrieve all system password hashes, bypassing intended snap sandbox restrictions. This issue is mitigated by the fact that systemd-userdbd is not installed by default on standard Ubuntu deployments.