Skip to content
Heist/ feed
Back to feed
MediumFix available

snapd — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-3155

snapd 2.54.2 and earlier created ~/snap directories in user home directories without specifying owner-only permissions. This could allow a local attacker to read information that should have been private. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1

Products
snapd
Affected versions
Not specified
Fixed versions
2.54-1
CVEs
CVE-2021-3155
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:22 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-3155

core-osv · Original source

Published 17 Feb 2022, 23:15 UTC

snapd 2.54.2 and earlier created ~/snap directories in user home directories without specifying owner-only permissions. This could allow a local attacker to read information that should have been private. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1

osv:DEBIAN-CVE-2021-3155

snapd

Fixed versions: 2.54-1

snapd

Fixed versions: 2.54-1

snapd

Fixed versions: 2.54-1

Complete source record
{
  "id": "d6348e6930214344ec99a9ff6c952a57ca3ca4422eb5e788c6915db6d7f699a9",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3155",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-3155",
    "summary": "snapd 2.54.2 and earlier created ~/snap directories in user home directories without specifying owner-only permissions. This could allow a local attacker to read information that should have been private. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1",
    "evidence": "osv:DEBIAN-CVE-2021-3155",
    "products": [
      {
        "name": {
          "value": "snapd",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.54-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "snapd",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.54-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "snapd",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.54-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-3155",
      "aliases": [
        "DEBIAN-CVE-2021-3155"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.54-1"
                }
              ]
            }
          ],
          "package": {
            "name": "snapd",
            "purl": "pkg:deb/debian/snapd?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3155.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.54-1"
                }
              ]
            }
          ],
          "package": {
            "name": "snapd",
            "purl": "pkg:deb/debian/snapd?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3155.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.54-1"
                }
              ]
            }
          ],
          "package": {
            "name": "snapd",
            "purl": "pkg:deb/debian/snapd?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3155.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:13.580741162Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-3155"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-3155"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-3155",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 420871,
  "published_at": "2022-02-17T23:15:07.337+00:00"
}