{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-5300 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-5300 is a medium-severity missing authorization vulnerability in Canonical Ubuntu 16.04 LTS, published on 21 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-5300 and fix it if it is affected.\n\nWhat it is: CVE-2024-5300 is a medium-severity missing authorization vulnerability in Canonical Ubuntu 16.04 LTS, published on 21 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-5300 in the wild and no public exploit code.\n\nAffected product: Canonical Ubuntu 16.04 LTS. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-5300/ (Markdown: https://insights.sbomify.com/CVE-2024-5300/index.md)","id":"CVE-2024-5300","markdown":"https://insights.sbomify.com/CVE-2024-5300/index.md","name":"CVE-2024-5300","record":{"aliases":["DEBIAN-CVE-2024-5300","GHSA-px3v-8ppp-543h","RHSA-2026:29009","UBUNTU-CVE-2024-5300"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Ubuntu snapd","requires_auth":"low_privilege","summary":"Malicious snaps can bypass sandbox restrictions to read system password hashes via systemd-userdbd if the service is installed.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[],"cvss":{"score":5.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer"}],"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.","ecosystems":["Red Hat:hummingbird:1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Missing authorization in Ubuntu 16.04 LTS","id":"CVE-2024-5300","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":21,"n_references":1,"next":{"headline":"Kofax Power PDF PSD File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability","id":"CVE-2024-5301"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd","purl":"pkg:rpm/redhat/systemd","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-boot-unsigned","purl":"pkg:rpm/redhat/systemd-boot-unsigned","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-container","purl":"pkg:rpm/redhat/systemd-container","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-devel","purl":"pkg:rpm/redhat/systemd-devel","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-journal-remote","purl":"pkg:rpm/redhat/systemd-journal-remote","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-libs","purl":"pkg:rpm/redhat/systemd-libs","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-networkd","purl":"pkg:rpm/redhat/systemd-networkd","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-networkd-defaults","purl":"pkg:rpm/redhat/systemd-networkd-defaults","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-oomd-defaults","purl":"pkg:rpm/redhat/systemd-oomd-defaults","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-pam","purl":"pkg:rpm/redhat/systemd-pam","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-resolved","purl":"pkg:rpm/redhat/systemd-resolved","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-rpm-macros","purl":"pkg:rpm/redhat/systemd-rpm-macros","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-shared","purl":"pkg:rpm/redhat/systemd-shared","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-standalone-repart","purl":"pkg:rpm/redhat/systemd-standalone-repart","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-standalone-shutdown","purl":"pkg:rpm/redhat/systemd-standalone-shutdown","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-standalone-sysusers","purl":"pkg:rpm/redhat/systemd-standalone-sysusers","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-standalone-tmpfiles","purl":"pkg:rpm/redhat/systemd-standalone-tmpfiles","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-sysusers","purl":"pkg:rpm/redhat/systemd-sysusers","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-tests","purl":"pkg:rpm/redhat/systemd-tests","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-udev","purl":"pkg:rpm/redhat/systemd-udev","source":"RHSA-2026:29009"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:261-2.hum1"],"introduced":["0"],"last_affected":[],"package":"systemd-ukify","purl":"pkg:rpm/redhat/systemd-ukify","source":"RHSA-2026:29009"}],"prev":{"headline":"D-Link D-View execMonitorScript Exposed Dangerous Method Remote Code Execution Vulnerability","id":"CVE-2024-5299"},"products":["Ubuntu 16.04 LTS","Ubuntu 18.04 LTS","Ubuntu 20.04 LTS","Ubuntu 22.04 LTS","Ubuntu 24.04 LTS","Ubuntu 26.04 LTS"],"published":"2026-07-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-22","vendors":["Canonical"]},"summary":"Malicious snaps can bypass sandbox restrictions to read system password hashes via systemd-userdbd if the service is installed.","url":"https://insights.sbomify.com/CVE-2024-5300/"}