Skip to content
OpenAdvisories
Medium · 6.8 CVE-2020-27348 EUVD-2020-0181GHSA-qxm5-vx5j-pp6wPYSEC-2020-109

snapcraft may build snaps with incorrect LD_LIBRARY_PATH

Published Dec 4, 2020 · Updated Sep 16, 2024 · 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.

Affected products

VendorProductAffectedFixed
Canonical snapcraft 4.4 – < 4.4.4, 2.43.1 – < 2.43.1+16.04.1 4.4.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS snapcraft 2.43.1+18.04.1 USN-4661-1
Ubuntu 16.04 LTS snapcraft 2.43.1+16.04.1 USN-4661-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI snapcraft < 4.4.4 4.4.4 GHSA-qxm5-vx5j-pp6w
PyPI snapcraft < 2.43.1 2.43.1 PYSEC-2020-109

Advisories 1

References