Vulnerability · Published Dec 4, 2020 · Assigned by canonical
CVE-2020-27348snapcraft may build snaps with incorrect LD_LIBRARY_PATH
Medium 6.8
In plain English
A medium-severity uncontrolled search path in snapcraft from Canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | snapcraft | 4.4.4 | GHSA-qxm5-vx5j-pp6w |
| PyPI | snapcraft | 2.43.1 | PYSEC-2020-109 |
Affected products (as reported)
Weakness: CWE-427 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
References
- https://github.com/snapcore/snapcraft/pull/3345 x_refsource_MISC
- https://usn.ubuntu.com/usn/usn-4661-1 x_refsource_MISC
- https://bugs.launchpad.net/bugs/1901572 x_refsource_MISC