CVE-2020-27348

snapcraft may build snaps with incorrect LD_LIBRARY_PATH

MEDIUM
6.8
CVSS Score
Published: December 4, 2020 at 02:30 AM UTC
Updated: June 17, 2026 at 03:09 AM UTC
2 products affected across 1 vendorUbuntu LinuxSnapcraft

Using snapcraft by Canonical?

Get instant alerts when new vulnerabilities affect snapcraft - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.8
Exploit prediction
EPSS 0.7%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.42.43.1 ≤ v < 2.43.1+16.04.14.4 ≤ v < 4.4.42.43.14.4
Affected range stops below 2.43.1+16.04.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.4.4, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

References (3)

x_refsource_MISCExploitIssue TrackingThird Party Advisory
https://bugs.launchpad.net/bugs/1901572
x_refsource_MISCThird Party Advisory
https://github.com/snapcore/snapcraft/pull/3345
x_refsource_MISCPatchThird Party Advisory
https://usn.ubuntu.com/usn/usn-4661-1

CVSS

6.8MEDIUMcanonical
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-427

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card