CVE-2024-5300
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/.
Leer descripción completaMostrar menos
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
- Versión: 3.1
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- Puntuación base: 5.6
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días: 0.13%
- Percentil entre todas las CVEs puntuadas: 2
- Fecha de la puntuación: 6/10/2026
EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).
Tecnologías afectadas (2)
⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.
CWE
- CWE-212
Referencias
JSON original (NVD)
Mostrar
{
"id": "CVE-2024-5300",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2024-5300",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-22T18:13:29.966474Z"
}
}
],
"cvssMetricV31": [
{
"type": "Secondary",
"source": "security@ubuntu.com",
"cvssData": {
"scope": "CHANGED",
"version": "3.1",
"baseScore": 5.6,
"attackVector": "LOCAL",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "NONE",
"privilegesRequired": "LOW",
"confidentialityImpact": "HIGH"
},
"impactScore": 4,
"exploitabilityScore": 1.1
}
]
},
"affected": [
{
"source": "security@ubuntu.com",
"affectedData": [
{
"repo": "https://github.com/canonical/snapd/",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "2.76.1",
"versionType": "semver"
}
],
"packageName": "snapd",
"collectionURL": "https://github.com/canonical",
"defaultStatus": "unaffected"
},
{
"repo": "https://launchpad.net/ubuntu/+source/snapd",
"vendor": "Canonical",
"product": "Ubuntu 26.04 LTS",
"versions": [
{
"status": "unaffected",
"version": "2.76+ubuntu26.04.3",
"versionType": "dpkg"
}
],
"platforms": [
"Linux"
],
"packageName": "snapd",
"collectionURL": "https://launchpad.net/ubuntu/resolute",
"defaultStatus": "affected"
},
{
"repo": "https://launchpad.net/ubuntu/+source/snapd",
"vendor": "Canonical",
"product": "Ubuntu 24.04 LTS",
"versions": [
{
"status": "unaffected",
"version": "2.76+ubuntu24.04.1",
"versionType": "dpkg"
}
],
"platforms": [
"Linux"
],
"packageName": "snapd",
"collectionURL": "https://launchpad.net/ubuntu/noble",
"defaultStatus": "affected"
},
{
"repo": "https://launchpad.net/ubuntu/+source/snapd",
"vendor": "Canonical",
"product": "Ubuntu 22.04 LTS",
"versions": [
{
"status": "unaffected",
"version": "2.76+ubuntu22.04.1",
"versionType": "dpkg"
}
],
"platforms": [
"Linux"
],
"packageName": "snapd",
"collectionURL": "https://launchpad.net/ubuntu/jammy",
"defaultStatus": "affected"
},
{
"repo": "https://launchpad.net/ubuntu/+source/snapd",
"vendor": "Canonical",
"product": "Ubuntu 20.04 LTS",
"versions": [
{
"status": "unaffected",
"version": "2.67.1+20.04ubuntu1~esm2",
"versionType": "dpkg"
}
],
"platforms": [
"Linux"
],
"packageName": "snapd",
"collectionURL": "https://launchpad.net/ubuntu/focal",
"defaultStatus": "affected"
},
{
"repo": "https://launchpad.net/ubuntu/+source/snapd",
"vendor": "Canonical",
"product": "Ubuntu 18.04 LTS",
"versions": [
{
"status": "unaffected",
"version": "2.61.4ubuntu0.18.04.1+esm3",
"versionType": "dpkg"
}
],
"platforms": [
"Linux"
],
"packageName": "snapd",
"collectionURL": "https://launchpad.net/ubuntu/bionic",
"defaultStatus": "affected"
},
{
"repo": "https://launchpad.net/ubuntu/+source/snapd",
"vendor": "Canonical",
"product": "Ubuntu 16.04 LTS",
"versions": [
{
"status": "unaffected",
"version": "2.61.4ubuntu0.16.04.1+esm3"
}
],
"platforms": [
"Linux"
],
"packageName": "snapd",
"collectionURL": "https://launchpad.net/ubuntu/xenial",
"defaultStatus": "affected"
}
]
}
],
"published": "2026-07-21T15:16:29.027",
"references": [
{
"url": "https://ubuntu.com/security/CVE-2024-5300",
"source": "security@ubuntu.com"
}
],
"vulnStatus": "Awaiting Analysis",
"weaknesses": [
{
"type": "Secondary",
"source": "security@ubuntu.com",
"description": [
{
"lang": "en",
"value": "CWE-212"
}
]
}
],
"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."
}
],
"lastModified": "2026-07-22T19:16:53.303",
"sourceIdentifier": "security@ubuntu.com"
}