Skip to content

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

MediumCVSS 6.8 EPSS 0.70%
Published
Updated
Exploit status
No public exploit known
Technology
Ubuntu

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.

Upgrade path

5 packages: 4 fixed.

PackageAffectedFixed inStatus
Canonical snapcraft < 4.4.4; >= 2.43.1, < 2.43.1+18.04.1; >= 4.4, < 4.4.4 2.43.1+18.04.1, 4.4.4 Fixed
pypi snapcraft(PyPI) < 2.43.1; < 4.4.4; = 2.33; = 2.39 +9 more 2.43.1, 4.4.4 Fixed
ubuntu/snapcraft(Ubuntu 16.04) < 2.43.1+16.04.1; = 0.3; = 0.4; = 0.5 +58 more 2.43.1+16.04.1 Fixed
ubuntu/snapcraft(Ubuntu 18.04) < 2.43.1+18.04.1; = 2.34+17.10; = 2.39.2+18.04.2; = 2.40+18.04.1 +7 more 2.43.1+18.04.1 Fixed
Canonical Ubuntu Linux = 16.04; = 18.04 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi snapcraft(PyPI) < 4.4.4 4.4.4
pypi snapcraft(PyPI) = 2.33 No fix listed
pypi snapcraft(PyPI) = 2.39 No fix listed
pypi snapcraft(PyPI) = 2.40.1 No fix listed
pypi snapcraft(PyPI) = 2.41 No fix listed
pypi snapcraft(PyPI) = 2.42 No fix listed
pypi snapcraft(PyPI) = 2.43 No fix listed
pypi snapcraft(PyPI) = 2.43.1 No fix listed
pypi snapcraft(PyPI) = 3.0.1 No fix listed
pypi snapcraft(PyPI) = 3.1 No fix listed
pypi snapcraft(PyPI) = 3.3 No fix listed
pypi snapcraft(PyPI) = 3.8 No fix listed
pypi snapcraft(PyPI) < 2.43.1 2.43.1
Canonical snapcraft < 4.4.4 4.4.4
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
Canonical snapcraft >= 4.4, < 4.4.4 4.4.4
Canonical snapcraft >= 2.43.1, < 2.43.1+18.04.1 2.43.1+18.04.1
ubuntu/snapcraft(Ubuntu:16.04) < 2.43.1+16.04.1 2.43.1+16.04.1
ubuntu/snapcraft(Ubuntu:16.04) = 0.3 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 0.4 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 0.5 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 0.6 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 1.0 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.0 No fix listed
Show 66 more
ProductAffected versionsFixed in
ubuntu/snapcraft(Ubuntu:16.04) = 2.0.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.1.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.2 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.2.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.2.2 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.3.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.3.2 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.4 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.5 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.6 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.6.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.7 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.8 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.8.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.8.2 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.8.3 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.8.4 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.8.8b No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.9 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.10.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.11 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.12 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.12.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.13.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.14 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.15.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.16 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.17 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.18.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.19 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.20 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.21 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.22.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.23 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.24 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.25 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.26 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.27 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.27.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.28 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.29 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.31 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.33 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.34 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.35 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.39.2 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.39.3 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.39.3+really2.35 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.40 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.41 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.42 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.42.1 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.43 No fix listed
ubuntu/snapcraft(Ubuntu:16.04) = 2.43.1 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) < 2.43.1+18.04.1 2.43.1+18.04.1
ubuntu/snapcraft(Ubuntu:18.04) = 2.34+17.10 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.39.2+18.04.2 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.40+18.04.1 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.40+18.04.3 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.41+18.04.1 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.41+18.04.2 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.42+18.04.2 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.42.1+18.04 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.43+18.04 No fix listed
ubuntu/snapcraft(Ubuntu:18.04) = 2.43.1+18.04 No fix listed

References