Lucene search

K
cvelistCanonicalCVELIST:CVE-2024-1724
HistoryJul 25, 2024 - 7:05 p.m.

CVE-2024-1724 snapd allows $HOME/bin symlink

2024-07-2519:05:23
CWE-732
canonical
www.cve.org
15
snapd
vulnerability
symlink
$home
path
apparmor
ubuntu
sandbox
permissions
snap
home plugin
scripts
escape confinement

CVSS3

6.3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

EPSS

0.001

Percentile

20.8%

In snapd versions prior to 2.62, when using AppArmor for enforcement of
sandbox permissions, snapd failed to restrict writes to the $HOME/bin
path. In Ubuntu, when this path exists, it is automatically added to
the users PATH. An attacker who could convince a user to install a
malicious snap which used the ‘home’ plug could use this vulnerability
to install arbitrary scripts into the users PATH which may then be run
by the user outside of the expected snap sandbox and hence allow them
to escape confinement.

CNA Affected

[
  {
    "vendor": "Canonical",
    "product": "snap",
    "platforms": [
      "Linux"
    ],
    "packageName": "snapd",
    "repo": "https://github.com/snapcore/snapd/",
    "modules": [
      "Generated AppArmor policy"
    ],
    "programFiles": [
      "interfaces/builtin/home.go"
    ],
    "programRoutines": [
      {
        "name": "homeConnectedPlugAppArmor"
      }
    ],
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2.62",
        "versionType": "custom"
      }
    ],
    "defaultStatus": "unaffected"
  }
]

CVSS3

6.3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

EPSS

0.001

Percentile

20.8%