{"api_version":"1","generated_at":"2026-07-24T20:08:05+00:00","cve":"CVE-2024-5300","urls":{"html":"https://cve.report/CVE-2024-5300","api":"https://cve.report/api/cve/CVE-2024-5300.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-5300","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-5300"},"summary":{"title":"AppArmor Base Profile Misconfiguration in snapd Permits Confined Snaps Unauthorized Access to Hashed Passwords via systemd-userdbd","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/.\nOn 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.","state":"PUBLISHED","assigner":"canonical","published_at":"2026-07-21 15:16:29","updated_at":"2026-07-22 19:16:53"},"problem_types":["CWE-212","CWE-212 CWE-212 Improper removal of sensitive information before storage or transfer"],"metrics":[{"version":"3.1","source":"security@ubuntu.com","type":"Secondary","score":"5.6","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","baseScore":5.6,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"5.6","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","data":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.6,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}}],"references":[{"url":"https://ubuntu.com/security/CVE-2024-5300","name":"https://ubuntu.com/security/CVE-2024-5300","refsource":"security@ubuntu.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-5300","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5300","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Canonical","product":"Ubuntu 26.04 LTS","version":"unaffected 2.76+ubuntu26.04.3 dpkg","platforms":["Linux"]},{"source":"CNA","vendor":"Canonical","product":"Ubuntu 24.04 LTS","version":"unaffected 2.76+ubuntu24.04.1 dpkg","platforms":["Linux"]},{"source":"CNA","vendor":"Canonical","product":"Ubuntu 22.04 LTS","version":"unaffected 2.76+ubuntu22.04.1 dpkg","platforms":["Linux"]},{"source":"CNA","vendor":"Canonical","product":"Ubuntu 20.04 LTS","version":"unaffected 2.67.1+20.04ubuntu1~esm2 dpkg","platforms":["Linux"]},{"source":"CNA","vendor":"Canonical","product":"Ubuntu 18.04 LTS","version":"unaffected 2.61.4ubuntu0.18.04.1+esm3 dpkg","platforms":["Linux"]},{"source":"CNA","vendor":"Canonical","product":"Ubuntu 16.04 LTS","version":"unaffected 2.61.4ubuntu0.16.04.1+esm3","platforms":["Linux"]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"CNA","value":"James Henstridge","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2024","cve_id":"5300","cve":"CVE-2024-5300","epss":"0.000990000","percentile":"0.009760000","score_date":"2026-07-22","updated_at":"2026-07-23 00:09:30"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2024-5300","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-07-22T18:13:29.966474Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-07-22T18:28:16.818Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"collectionURL":"https://github.com/canonical","defaultStatus":"unaffected","packageName":"snapd","repo":"https://github.com/canonical/snapd/","versions":[{"lessThan":"2.76.1","status":"affected","version":"0","versionType":"semver"}]},{"collectionURL":"https://launchpad.net/ubuntu/resolute","defaultStatus":"affected","packageName":"snapd","platforms":["Linux"],"product":"Ubuntu 26.04 LTS","repo":"https://launchpad.net/ubuntu/+source/snapd","vendor":"Canonical","versions":[{"status":"unaffected","version":"2.76+ubuntu26.04.3","versionType":"dpkg"}]},{"collectionURL":"https://launchpad.net/ubuntu/noble","defaultStatus":"affected","packageName":"snapd","platforms":["Linux"],"product":"Ubuntu 24.04 LTS","repo":"https://launchpad.net/ubuntu/+source/snapd","vendor":"Canonical","versions":[{"status":"unaffected","version":"2.76+ubuntu24.04.1","versionType":"dpkg"}]},{"collectionURL":"https://launchpad.net/ubuntu/jammy","defaultStatus":"affected","packageName":"snapd","platforms":["Linux"],"product":"Ubuntu 22.04 LTS","repo":"https://launchpad.net/ubuntu/+source/snapd","vendor":"Canonical","versions":[{"status":"unaffected","version":"2.76+ubuntu22.04.1","versionType":"dpkg"}]},{"collectionURL":"https://launchpad.net/ubuntu/focal","defaultStatus":"affected","packageName":"snapd","platforms":["Linux"],"product":"Ubuntu 20.04 LTS","repo":"https://launchpad.net/ubuntu/+source/snapd","vendor":"Canonical","versions":[{"status":"unaffected","version":"2.67.1+20.04ubuntu1~esm2","versionType":"dpkg"}]},{"collectionURL":"https://launchpad.net/ubuntu/bionic","defaultStatus":"affected","packageName":"snapd","platforms":["Linux"],"product":"Ubuntu 18.04 LTS","repo":"https://launchpad.net/ubuntu/+source/snapd","vendor":"Canonical","versions":[{"status":"unaffected","version":"2.61.4ubuntu0.18.04.1+esm3","versionType":"dpkg"}]},{"collectionURL":"https://launchpad.net/ubuntu/xenial","defaultStatus":"affected","packageName":"snapd","platforms":["Linux"],"product":"Ubuntu 16.04 LTS","repo":"https://launchpad.net/ubuntu/+source/snapd","vendor":"Canonical","versions":[{"status":"unaffected","version":"2.61.4ubuntu0.16.04.1+esm3"}]}],"credits":[{"lang":"en","type":"finder","value":"James Henstridge"}],"datePublic":"2026-07-21T14:00:00.000Z","descriptions":[{"lang":"en","value":"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/.\nOn 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."}],"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","value":"CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.6,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-212","description":"CWE-212 Improper removal of sensitive information before storage or transfer","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-07-21T14:00:51.066Z","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","shortName":"canonical"},"references":[{"tags":["vdb-entry","issue-tracking"],"url":"https://ubuntu.com/security/CVE-2024-5300"}],"source":{"discovery":"INTERNAL"},"title":"AppArmor Base Profile Misconfiguration in snapd Permits Confined Snaps Unauthorized Access to Hashed Passwords via systemd-userdbd"}},"cveMetadata":{"assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","assignerShortName":"canonical","cveId":"CVE-2024-5300","datePublished":"2026-07-21T14:00:51.066Z","dateReserved":"2024-05-23T21:58:22.809Z","dateUpdated":"2026-07-22T18:28:16.818Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-21 15:16:29","lastModifiedDate":"2026-07-22 19:16:53","problem_types":["CWE-212","CWE-212 CWE-212 Improper removal of sensitive information before storage or transfer"],"metrics":{"cvssMetricV31":[{"source":"security@ubuntu.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","baseScore":5.6,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":1.1,"impactScore":4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-07-22T18:13:29.966474Z","id":"CVE-2024-5300","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"5300","Ordinal":"1","Title":"AppArmor Base Profile Misconfiguration in snapd Permits Confined","CVE":"CVE-2024-5300","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"5300","Ordinal":"1","NoteData":"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/.\nOn 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.","Type":"Description","Title":"AppArmor Base Profile Misconfiguration in snapd Permits Confined"}]}}}