5.6

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

Awaiting analysis
AliasesRHSA-2026:29009UBUNTU-CVE-2024-5300DEBIAN-CVE-2024-5300
Published 21-07-2026Last modified 22-07-2026

Vulnerability summary

CVE-2024-5300 is a medium (CVSS 5.6) vulnerability in snapd. EPSS estimates a 0.10% chance of exploitation in the next 30 days, higher than 0.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.6, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.6/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.10%
0%100%
Low · -0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 21-07-2026
    PublishedVulnerability first disclosed.
  2. 22-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.10%

Chance of exploitation in the next 30 days

Percentile

1%

Versus all other CVEs

30-day change

Decrease -0.03 pp

From 0.13% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat21 products
  • systemd< 0:261-2.hum1
  • systemd-boot-unsigned< 0:261-2.hum1
  • systemd-container< 0:261-2.hum1
  • systemd-devel< 0:261-2.hum1
  • systemd-journal-remote< 0:261-2.hum1
Debian1 product
  • snapdAll versions (No fix recorded) | < 2.76.3-1
Ubuntu1 product
  • snapd< 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

3 vendors · 23 products

References

11 links
Show all 11 references