CVE-2020-27348: Snapcraft - Command Injection
- Cve: CVE-2020-27348
- Name: Snapcraft - Command Injection
- 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.
- Impact: Malicious snaps can execute arbitrary code within the context of another snap, potentially leading to privilege escalation or system compromise.
- Remediation: Update to snapcraft 4.4.4 or later, or the latest available version.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
- Epss score: 0.00703
- Epss percentile: 0.54199
- Assignee: [email protected]
- Published at: 2020-12-04T03:15:12Z
- Age in days: 2181
- Modified at: 2026-06-17T03:09:09Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-27348
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-427 | Uncontrolled Search Path Element |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://bugs.launchpad.net/bugs/1901572 | nvd | 2020-12-04 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://usn.ubuntu.com/usn/usn-4661-1 | Patch, Third Party Advisory |
| https://bugs.launchpad.net/bugs/1901572 | Exploit, Issue Tracking, Third Party Advisory |
| https://github.com/snapcore/snapcraft/pull/3345 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| canonical:snapcraft | < 4.4.4 | no | nvd | /v1/products/canonical/snapcraft |
| canonical:ubuntu_linux | = 18.04, = 16.04 | no | nvd | /v1/products/canonical/ubuntu_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| snapcore/snapcraft | commit, package, pull | yes | /v1/repositories/snapcore/snapcraft |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-12-04
- Authentication required: yes
- Hackerone reports: 1
- Exposed hosts: 21216412
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since