CVE-2024-5300
Last modified
CVE-2024-5300 is a medium-severity vulnerability rated 5.6/10 on the CVSS scale. 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).
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/. 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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| — | — | < 2.76.1 |
| Canonical | Ubuntu 26.04 LTS | All versions |
| Canonical | Ubuntu 24.04 LTS | All versions |
| Canonical | Ubuntu 22.04 LTS | All versions |
| Canonical | Ubuntu 20.04 LTS | All versions |
| Canonical | Ubuntu 18.04 LTS | All versions |
| Canonical | Ubuntu 16.04 LTS | All versions |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2024-5300?
How severe is CVE-2024-5300?
How do I fix CVE-2024-5300?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-52994Substance3D - Sampler versions 4.5.1 and earlier are affecte…7.8
- CVE-2024-52995Substance3D - Sampler versions 4.5.1 and earlier are affecte…7.8
- CVE-2024-52996Substance3D - Sampler versions 4.5.1 and earlier are affecte…7.8
- CVE-2024-52997Photoshop Desktop versions 26.0 and earlier are affected by …7.8
- CVE-2024-52998Substance3D - Stager versions 3.0.2 and earlier are affected…5.5
- CVE-2024-52999Substance3D - Modeler versions 1.14.1 and earlier are affect…7.8
- CVE-2024-53000Substance3D - Modeler versions 1.14.1 and earlier are affect…7.8
- CVE-2024-53001Substance3D - Modeler versions 1.14.1 and earlier are affect…7.8
- CVE-2024-53002Substance3D - Modeler versions 1.14.1 and earlier are affect…7.8
- CVE-2024-53003Substance3D - Modeler versions 1.14.1 and earlier are affect…7.8
- CVE-2024-53004Substance3D - Modeler versions 1.14.1 and earlier are affect…5.5
- CVE-2024-53005Substance3D - Modeler versions 1.14.1 and earlier are affect…5.5
Are you affected by CVE-2024-5300?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
