CVE-2020-27348
snapcraft may build snaps with incorrect LD_LIBRARY_PATH
Reported by canonical · Published December 4, 2020
snapcraft is fixed in 4.4.4 and 2.43.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| snapcraft | PyPI | 4.4.4, 2.43.1 |
| snapcraft | Ubuntu:16.04:LTS | 2.43.1+16.04.1 |
| snapcraft | Canonical | 4.4.4, 2.43.1+16.04.1 |
| snapcraft | Ubuntu:18.04:LTS | 2.43.1+18.04.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Canonical | snapcraft | 4.4, 2.43.1 |
| PyPI | snapcraft | 0 |
| Canonical | snapcraft | 4.4, 2.43.1 |
Timeline
- Dec 4, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jul 23, 2021 PoC Published
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (2 in total, the first dated here)
- Sep 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-27348
vulnetix vdb fixes CVE-2020-27348
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-27348/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-27348 advisory
- https://github.com/advisories/GHSA-qxm5-vx5j-pp6w advisory
- https://github.com/snapcore/snapcraft/commit/a0ceca9d531a34c979251030ed67b5fa2abfdd9a patch
- https://github.com/pypa/advisory-database/tree/main/vulns/snapcraft/PYSEC-2020-109.yaml advisory
- https://github.com/snapcore/snapcraft url