{"id":"CVE-2020-27348","published":"2020-12-04T02:30:36Z","modified":"2024-09-16T17:14:15Z","title":"snapcraft may build snaps with incorrect LD_LIBRARY_PATH","vendor":"Canonical","product":"snapcraft","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00703,"percentile":0.54176,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://github.com/snapcore/snapcraft/pull/3345","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/usn/usn-4661-1","tags":["x_refsource_MISC"]},{"url":"https://bugs.launchpad.net/bugs/1901572","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.84},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical","product":"snapcraft","versions":[">= 4.4, < 4.4.4",">= 2.43.1, < 2.43.1+16.04.1"]}],"fixedVersions":[{"vendor":"Canonical","product":"snapcraft","versions":["2.43.1+18.04.1"]}],"affected":[{"ecosystem":"PyPI","package":"snapcraft","vulnerableRanges":["<4.4.4","<2.43.1"],"patched":["4.4.4","2.43.1"],"from":["GHSA-qxm5-vx5j-pp6w","PYSEC-2020-109"],"provenance":"source"}],"summary":{"text":"Snapcraft, Canonical's tool for building snap packages, can produce snaps that include the current directory in LD_LIBRARY_PATH under certain conditions, which is an uncontrolled search path element flaw. An attacker who can get a malicious snap installed on the same system can gain code execution within the context of another snap when both have the home interface or a similar interface connected, and this requires the user to take part in that installation and the affected snaps to be built with the flaw.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:13Z"},"euvd":{"id":"EUVD-2020-0181","exploited":false,"provenance":"source"}}