Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-27348

In some conditions, a snap package built by snapcraft includes the current directory in LD_LIBRARY_PATH, allowing a malicious snap to gain code execution within the context of another snap if both plug the home interface or similar. This issue affects snapcraft versions prior to 4.4.4, prior to 2.43.1+16.04.1, and prior to 2.43.1+18.04.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-27348
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:11 UTC · Revision 1

Source evidence

CVE-2020-27348

core-osv · Original source

Published 4 Dec 2020, 03:15 UTC

In some conditions, a snap package built by snapcraft includes the current directory in LD_LIBRARY_PATH, allowing a malicious snap to gain code execution within the context of another snap if both plug the home interface or similar. This issue affects snapcraft versions prior to 4.4.4, prior to 2.43.1+16.04.1, and prior to 2.43.1+18.04.1.

osv:CVE-2020-27348
Complete source record
{
  "id": "2018f5895977de7cf0d3c1b16fed774b74bb2b28096616098903cfe89ad9924f",
  "url": "https://osv.dev/vulnerability/CVE-2020-27348",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-27348",
    "summary": "In some conditions, a snap package built by snapcraft includes the current directory in LD_LIBRARY_PATH, allowing a malicious snap to gain code execution within the context of another snap if both plug the home interface or similar. This issue affects snapcraft versions prior to 4.4.4, prior to 2.43.1+16.04.1, and prior to 2.43.1+18.04.1.",
    "evidence": "osv:CVE-2020-27348",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-27348",
      "aliases": [
        "CVE-2020-27348",
        "GHSA-qxm5-vx5j-pp6w",
        "PYSEC-2020-109"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/canonical/snapcraft",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a0ceca9d531a34c979251030ed67b5fa2abfdd9a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:canonical:snapcraft:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.4.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.4.3",
            "4.4.2",
            "4.4.1",
            "4.4",
            "4.3",
            "4.2",
            "4.1.5",
            "4.1.4",
            "4.1.3",
            "4.1.2",
            "4.1.1",
            "4.1",
            "4.0.7",
            "4.0.6",
            "4.0.5",
            "4.0.4",
            "4.0.3",
            "untagged-062755d465f752108ab6",
            "4.0.2",
            "4.0.1",
            "4.0",
            "4.0rc1",
            "3.11",
            "3.10.2",
            "3.10.1",
            "3.10",
            "3.9.2",
            "3.9.1",
            "3.9",
            "3.8",
            "3.7.2",
            "3.7.1",
            "3.7",
            "3.6",
            "3.5.1",
            "3.5",
            "3.4.1",
            "3.4",
            "3.3",
            "3.2",
            "3.1.1",
            "3.1",
            "3.0.1",
            "3.0",
            "2.43.1",
            "2.43",
            "2.42.1",
            "2.42",
            "2.41",
            "2.40.1",
            "2.40",
            "2.39.2",
            "2.39.1",
            "2.39",
            "2.38",
            "2.37",
            "2.36.1",
            "2.36",
            "2.35",
            "2.34",
            "2.33",
            "2.32",
            "2.31",
            "2.30",
            "2.29.1",
            "2.29",
            "2.28",
            "2.27.1",
            "2.27",
            "2.26",
            "2.25",
            "2.24",
            "2.23",
            "2.22.1",
            "2.22",
            "2.21",
            "2.20",
            "2.19",
            "2.18.1",
            "2.18",
            "refs/tags",
            "2.17",
            "2.16",
            "2.15.1",
            "2.15",
            "2.14",
            "2.13.1",
            "2.13",
            "2.12.1",
            "2.12",
            "2.11",
            "2.10.1",
            "2.10",
            "2.9",
            "2.8.8",
            "2.8.7",
            "2.8.6",
            "2.8.5",
            "2.8.4",
            "2.8.3",
            "2.8.2",
            "2.8.1",
            "2.8",
            "2.7",
            "2.6.1",
            "2.6",
            "2.5",
            "2.4",
            "2.3.2",
            "2.3",
            "2.2.2",
            "2.2.1",
            "2.2",
            "2.1",
            "2.1.1",
            "2.0.1",
            "2.0",
            "0.6",
            "0.5",
            "0.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-27348.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:06.647129267Z",
      "provider": "osv",
      "references": [
        "https://github.com/snapcore/snapcraft/pull/3345",
        "https://bugs.launchpad.net/bugs/1901572",
        "https://usn.ubuntu.com/usn/usn-4661-1"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:*:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-27348",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384193,
  "published_at": "2020-12-04T03:15:12.413+00:00"
}