# CVE-2020-27348: snapcraft may build snaps with incorrect LD_LIBRARY_PATH

- Severity: Medium 6.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-04T02:30:36.159Z
- Modified: 2026-06-17T03:09:09.500Z
- Also known as: GHSA-qxm5-vx5j-pp6w, PYSEC-2020-109
- Weaknesses: CWE-427
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- Canonical snapcraft: from 4.4 before 4.4.4; from 2.43.1 before 2.43.1+16.04.1; before 4.4.4
- snapcraft (PyPI): before 4.4.4; before 2.43.1
- canonical ubuntu_linux: 16.04; 18.04

## Every score

- canonical: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L`
- NVD: CVSS:2.0 4.4 Medium `AV:L/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://bugs.launchpad.net/bugs/1901572> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/snapcore/snapcraft/pull/3345> (third-party-advisory, web)
- <https://usn.ubuntu.com/usn/usn-4661-1> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-27348> (advisory)
- <https://github.com/snapcore/snapcraft/commit/a0ceca9d531a34c979251030ed67b5fa2abfdd9a> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/snapcraft/PYSEC-2020-109.yaml> (web)
- <https://github.com/snapcore/snapcraft> (package)
- <https://github.com/advisories/GHSA-qxm5-vx5j-pp6w> (advisory)

## Sources

- CVE List: [CVE-2020-27348](https://www.cve.org/CVERecord?id=CVE-2020-27348), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-qxm5-vx5j-pp6w](https://github.com/advisories/GHSA-qxm5-vx5j-pp6w), CC-BY-4.0, modified 2024-10-23
- NVD: [CVE-2020-27348](https://nvd.nist.gov/vuln/detail/CVE-2020-27348), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-109](https://osv.dev/vulnerability/PYSEC-2020-109), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2020-27348 · Whole record: https://cve.day/CVE-2020-27348.json · Rebuilt by cve.day 2026-11-25T22:57:56.033Z
