cve.bz

CVE-2024-5300

5.6 mediumEPSS 0.1%

Medium (5.6). EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.6 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 1st percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-5300 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-5300?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-5300?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-5300 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13snapdno fix listedDEBIAN-CVE-2024-5300
Debian14snapd2.76.3-1DEBIAN-CVE-2024-5300
Ubuntu22.04:LTSsnapd2.76+ubuntu22.04.1UBUNTU-CVE-2024-5300 USN-8579-1
Ubuntu24.04:LTSsnapd2.76+ubuntu24.04.1UBUNTU-CVE-2024-5300 USN-8579-1
Ubuntu25.10snapdno fix listedUBUNTU-CVE-2024-5300
Ubuntu26.04:LTSsnapd2.76+ubuntu26.04.3UBUNTU-CVE-2024-5300 USN-8579-1
UbuntuPro:16.04:LTSsnapd2.61.4ubuntu0.16.04.1+esm4UBUNTU-CVE-2024-5300 USN-8579-1
UbuntuPro:18.04:LTSsnapd2.61.4ubuntu0.18.04.1+esm4UBUNTU-CVE-2024-5300 USN-8579-1
UbuntuPro:20.04:LTSsnapd2.67.1+20.04ubuntu1~esm3UBUNTU-CVE-2024-5300 USN-8579-1
Red Hathummingbird:1systemd, systemd-pam, systemd-libs and 18 more0:261-2.hum1RHSA-2026:29009

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat does not ship the Canonical snapd package. The vulnerability is in snapd's AppArmor security profile configuration, not in systemd itself. RHEL systems are not affected as they do not include snapd.

ProductPackageStateAdvisory
Red Hat Hardened Imagessystemd-main-261-2.hum1Fixed 2026-06-24RHSA-2026:29009

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-5300.

Attack patterns (CAPEC)

  • CAPEC-168 Windows ::DATA Alternate Data Stream Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON