{"id":"CVE-2020-27348","aliases":["EUVD-2020-0181","GHSA-qxm5-vx5j-pp6w","PYSEC-2020-109","UBUNTU-CVE-2020-27348","USN-4661-1"],"status":"published","title":"snapcraft may build snaps with incorrect LD_LIBRARY_PATH","description":"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.","severity":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00703,"percentile":0.53548,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-427"],"published":"2020-12-03T18:16:00Z","modified":"2026-10-20T10:53:06Z","fixes":[{"ecosystem":"PyPI","package":"snapcraft","fixed_in":["4.4.4","2.43.1"],"sources":["ghsa","osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"snapcraft","fixed_in":["2.43.1+16.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"snapcraft","fixed_in":["2.43.1+18.04.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.4"}]}]},{"source":"osv","ecosystem":"PyPI","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.4"}]}],"versions":["2.33","2.39","2.40.1","2.41","2.42","2.43","2.43.1","3.0.1","3.1","3.3","3.8"]},{"source":"osv","ecosystem":"PyPI","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.43.1"}]}],"versions":["2.33","2.39","2.40.1","2.41","2.42","2.43"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.43.1+16.04.1"}]}],"versions":["0.3","0.4","0.5","0.6","1.0","2.0","2.0.1","2.1","2.1.1","2.2","2.2.1","2.2.2","2.3.1","2.3.2","2.4","2.5","2.6","2.6.1","2.7","2.8","2.8.1","2.8.2","2.8.3","2.8.4","2.8.8b","2.9","2.10.1","2.11","2.12","2.12.1","2.13.1","2.14","2.15.1","2.16","2.17","2.18.1","2.19","2.20","2.21","2.22.1","2.23","2.24","2.25","2.26","2.27","2.27.1","2.28","2.29","2.31","2.33","2.34","2.35","2.39.2","2.39.3","2.39.3+really2.35","2.40","2.41","2.42","2.42.1","2.43","2.43.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.43.1+18.04.1"}]}],"versions":["2.34+17.10","2.39.2+18.04.2","2.40+18.04.1","2.40+18.04.3","2.41+18.04.1","2.41+18.04.2","2.42+18.04.2","2.42.1+18.04","2.43+18.04","2.43.1+18.04"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.43.1+16.04.1"}]}],"versions":["0.3","0.4","0.5","0.6","1.0","2.0","2.0.1","2.1","2.1.1","2.2","2.2.1","2.2.2","2.3.1","2.3.2","2.4","2.5","2.6","2.6.1","2.7","2.8","2.8.1","2.8.2","2.8.3","2.8.4","2.8.8b","2.9","2.10.1","2.11","2.12","2.12.1","2.13.1","2.14","2.15.1","2.16","2.17","2.18.1","2.19","2.20","2.21","2.22.1","2.23","2.24","2.25","2.26","2.27","2.27.1","2.28","2.29","2.31","2.33","2.34","2.35","2.39.2","2.39.3","2.39.3+really2.35","2.40","2.41","2.42","2.42.1","2.43","2.43.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"snapcraft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.43.1+18.04.1"}]}],"versions":["2.34+17.10","2.39.2+18.04.2","2.40+18.04.1","2.40+18.04.3","2.41+18.04.1","2.41+18.04.2","2.42+18.04.2","2.42.1+18.04","2.43+18.04","2.43.1+18.04"]}],"products":[{"vendor":"canonical","product":"snapcraft"},{"vendor":"canonical","product":"ubuntu_linux"}],"references":[{"url":"https://github.com/snapcore/snapcraft/pull/3345","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://usn.ubuntu.com/usn/usn-4661-1","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://bugs.launchpad.net/bugs/1901572","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-27348","tags":["advisory"]},{"url":"https://github.com/snapcore/snapcraft/commit/a0ceca9d531a34c979251030ed67b5fa2abfdd9a","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/snapcraft/PYSEC-2020-109.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-qxm5-vx5j-pp6w","tags":["advisory"]},{"url":"https://github.com/snapcore/snapcraft","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2020-27348","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4661-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-27348","tags":["report"]},{"url":"https://launchpad.net/bugs/1901572","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-27348","title":"snapcraft may build snaps with incorrect LD_LIBRARY_PATH","description":"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.","status":"published","published":"2020-12-04T02:30:36.159Z","modified":"2024-09-16T17:14:15.768Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T14:35:53.552996Z"}],"euvd":[{"id":"EUVD-2020-0181","description":"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.","status":"published","published":"2020-12-04T02:30:36Z","modified":"2024-09-16T17:14:15Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"updated_at":"2026-11-03T00:55:44.31512Z"}],"ghsa":[{"id":"GHSA-qxm5-vx5j-pp6w","title":"snapcraft Access Restriction Bypass","description":"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.","status":"published","published":"2022-05-24T17:35:23Z","modified":"2024-10-23T18:48:18Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T14:38:13.09489Z"}],"nvd":[{"id":"CVE-2020-27348","description":"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.","status":"published","published":"2020-12-04T03:15:12.413Z","modified":"2026-06-17T03:09:09.5Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium","assessor":"primary"},{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T14:06:27.10541Z"}],"osv":[{"id":"CVE-2020-27348","description":"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.","status":"published","published":"2020-12-04T03:15:12.413Z","modified":"2026-10-20T10:53:06.647129267Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"updated_at":"2026-11-02T15:44:16.248747Z"},{"id":"GHSA-qxm5-vx5j-pp6w","title":"snapcraft Access Restriction Bypass","description":"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.","status":"published","published":"2022-05-24T17:35:23Z","modified":"2024-10-23T19:10:51.678196Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"cwes":["CWE-427"],"updated_at":"2026-11-02T15:46:55.122811Z"},{"id":"UBUNTU-CVE-2020-27348","description":"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.","status":"published","published":"2020-12-03T18:16:00Z","modified":"2026-02-04T04:15:19.654181Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","level":"medium"}],"updated_at":"2026-11-02T15:54:24.541803Z"},{"id":"PYSEC-2020-109","description":"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.","status":"published","published":"2020-12-04T03:15:00Z","modified":"2026-06-10T17:02:41.654580256Z","updated_at":"2026-11-02T15:52:52.192131Z"},{"id":"USN-4661-1","title":"snapcraft vulnerability","description":"It was discovered that Snapcraft includes the current directory when\nconfiguring LD_LIBRARY_PATH for application commands. If a user were\ntricked into installing a malicious snap or downloading a malicious\nlibrary, under certain circumstances an attacker could exploit this to\naffect strict mode snaps that have access to the library and when\nlaunched from the directory containing the library.\n","status":"published","published":"2020-12-03T18:35:20Z","modified":"2026-02-10T04:42:00Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
