CVE-2024-5300 is an access control bypass and information disclosure vulnerability in the base AppArmor security profile configuration of Canonical snapd. It allows strictly confined snap applications running as root to bypass sandbox restrictions and query systemd-userdbd to retrieve sensitive hashed user passwords from /etc/shadow. This occurs because systemd-userdbd does not distinguish between an unconfined root user and a restricted root user within a snap sandbox. The vulnerability is mitigated by the fact that systemd-userdbd is not installed by default on standard Ubuntu systems.