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.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.7%top 46.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
PyPIsnapcraft4.4.4GHSA-qxm5-vx5j-pp6w
PyPIsnapcraft2.43.1PYSEC-2020-109

Affected products (as reported)

VendorProductVersions
Canonical snapcraft 4.4 – before 4.4.42.43.1 – before 2.43.1+16.04.1

Weakness: CWE-427 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L

References