# CVE-2024-5300: AppArmor Base Profile Misconfiguration in snapd Permits Confined Snaps Unauthorized Access to Hashed Passwords via systemd-userdbd

- Priority: **Routine**
- Reason: Not severe (CVSS 5.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-21 · Modified: 2026-07-22
- Aliases: RHSA-2026:29009, UBUNTU-CVE-2024-5300, DEBIAN-CVE-2024-5300
- Record: https://cvemate.com/vulnerability/CVE-2024-5300 · JSON: https://cvemate.com/vulnerability/CVE-2024-5300/json

## Description

```text
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.
```

## Signals

- CVSS: 5.6 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- EPSS: 0.099%, percentile 0.837%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 23)

- debian snapd (Debian): All versions (No fix recorded) \| \< 2.76.3-1
- ubuntu snapd (Ubuntu): \< 2.61.4ubuntu0.16.04.1+esm4 \| \< 2.61.4ubuntu0.18.04.1+esm4 \| \< 2.67.1+20.04ubuntu1~esm3 \| \< 2.76+ubuntu22.04.1 \| \< 2.76+ubuntu24.04.1 \| All versions (No fix recorded) \| \< 2.76+ubuntu26.04.3
- redhat systemd (Red Hat): \< 0:261-2.hum1
- redhat systemd-boot-unsigned (Red Hat): \< 0:261-2.hum1
- redhat systemd-container (Red Hat): \< 0:261-2.hum1
- redhat systemd-devel (Red Hat): \< 0:261-2.hum1
- redhat systemd-journal-remote (Red Hat): \< 0:261-2.hum1
- redhat systemd-libs (Red Hat): \< 0:261-2.hum1
- redhat systemd-networkd (Red Hat): \< 0:261-2.hum1
- redhat systemd-networkd-defaults (Red Hat): \< 0:261-2.hum1
- redhat systemd-oomd-defaults (Red Hat): \< 0:261-2.hum1
- redhat systemd-pam (Red Hat): \< 0:261-2.hum1
- redhat systemd-resolved (Red Hat): \< 0:261-2.hum1
- redhat systemd-rpm-macros (Red Hat): \< 0:261-2.hum1
- redhat systemd-shared (Red Hat): \< 0:261-2.hum1
- redhat systemd-standalone-repart (Red Hat): \< 0:261-2.hum1
- redhat systemd-standalone-shutdown (Red Hat): \< 0:261-2.hum1
- redhat systemd-standalone-sysusers (Red Hat): \< 0:261-2.hum1
- redhat systemd-standalone-tmpfiles (Red Hat): \< 0:261-2.hum1
- redhat systemd-sysusers (Red Hat): \< 0:261-2.hum1

## References

- <https://ubuntu.com/security/CVE-2024-5300>
- <https://access.redhat.com/errata/RHSA-2026:29009>
- <https://images.redhat.com/>
- <https://access.redhat.com/security/cve/CVE-2024-5300>
- <https://access.redhat.com/security/updates/classification/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_29009.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2503660>
- <https://www.cve.org/CVERecord?id=CVE-2024-5300>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5300>
- <https://ubuntu.com/security/notices/USN-8579-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-5300>

---

Data as of 2026-12-05T02:45:49.521Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
