{"api_version":"1","generated_at":"2026-07-23T14:26:09+00:00","cve":"CVE-2020-27348","urls":{"html":"https://cve.report/CVE-2020-27348","api":"https://cve.report/api/cve/CVE-2020-27348.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-27348","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-27348"},"summary":{"title":"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.","state":"PUBLIC","assigner":"security@ubuntu.com","published_at":"2020-12-04 03:15:00","updated_at":"2020-12-14 20:36:00"},"problem_types":["CWE-427"],"metrics":[],"references":[{"url":"https://usn.ubuntu.com/usn/usn-4661-1","name":"https://usn.ubuntu.com/usn/usn-4661-1","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"USN-4661-1: Snapcraft vulnerability | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugs.launchpad.net/bugs/1901572","name":"https://bugs.launchpad.net/bugs/1901572","refsource":"MISC","tags":["Exploit","Issue Tracking","Third Party Advisory"],"title":"Bug #1901572 “snapd vulnerable to Library Injection from CWD” : Bugs : Snapcraft","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/snapcore/snapcraft/pull/3345","name":"https://github.com/snapcore/snapcraft/pull/3345","refsource":"MISC","tags":["Third Party Advisory"],"title":"project_loader, formatting_utils: take empty env values into account by sergiusens · Pull Request #3345 · snapcore/snapcraft · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-27348","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-27348","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"itszn","lang":""}],"nvd_cpes":[{"cve_year":"2020","cve_id":"27348","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"canonical","cpe5":"snapcraft","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"27348","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"canonical","cpe5":"snapcraft","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"27348","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"27348","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"27348","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"27348","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2020-12-03T18:16:00.000Z","ID":"CVE-2020-27348","STATE":"PUBLIC","TITLE":"snapcraft may build snaps with incorrect LD_LIBRARY_PATH"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"snapcraft","version":{"version_data":[{"version_affected":"<","version_name":"4.4","version_value":"4.4.4"},{"version_affected":"<","version_name":"2.43.1","version_value":"2.43.1+16.04.1"},{"version_affected":"<","version_name":"2.43.1","version_value":"2.43.1+18.04.1"}]}}]},"vendor_name":"Canonical"}]}},"credit":[{"lang":"eng","value":"itszn"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-427 Uncontrolled Search Path Element"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://github.com/snapcore/snapcraft/pull/3345","name":"https://github.com/snapcore/snapcraft/pull/3345"},{"refsource":"MISC","url":"https://usn.ubuntu.com/usn/usn-4661-1","name":"https://usn.ubuntu.com/usn/usn-4661-1"},{"refsource":"MISC","url":"https://bugs.launchpad.net/bugs/1901572","name":"https://bugs.launchpad.net/bugs/1901572"}]},"source":{"advisory":"https://usn.ubuntu.com/usn/usn-4661-1","defect":["https://bugs.launchpad.net/bugs/1901572"],"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2020-12-04 03:15:00","lastModifiedDate":"2020-12-14 20:36:00","problem_types":["CWE-427"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"LOW","baseScore":6.8,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.3,"impactScore":5.5},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:P/I:P/A:P","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":4.4},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:canonical:snapcraft:*:*:*:*:*:*:*:*","versionEndExcluding":"4.4.4","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"27348","Ordinal":"188782","Title":"CVE-2020-27348","CVE":"CVE-2020-27348","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"27348","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"27348","Ordinal":"2","NoteData":"2020-12-03","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"27348","Ordinal":"3","NoteData":"2020-12-03","Type":"Other","Title":"Modified"}]}}}