CVE-2020-27348: Vulnerability in snapcraft

snapcraft Updated 02 Oct 2025

Summary

04/12/2020
Yes i
Moderate
6.8

CVE-2020-27348: 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... Affects snapcraft versions < 2.43.1. Fixed in 2.43.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Snapcraft is a tool used for building and packaging software as snaps, a universal Linux package format. It allows developers to easily distribute their applications across different Linux distributions. Snapcraft versions prior to 4.4.4, 2.43.1+16.04.1, and 2.43.1+18.04.1 are affected by a vulnerability that can lead to code execution within the context of another snap if both have access to the home interface or a similar interface.

Vulnerability Detail

The vulnerability arises from the inclusion of the current directory in the LD_LIBRARY_PATH environment variable when building a snap package using snapcraft. This can be exploited by a malicious snap to execute arbitrary code within the context of another snap. The issue can have serious consequences if both snaps have access to sensitive resources or interfaces. The vulnerability has been assigned the CVE identifier CVE-2020-27348.

How To Fix

Minimum fixed version

2.43.1

This is the first release that contains the fix.

pip install --upgrade "snapcraft==2.43.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in snapcraft versions prior to 4.4.4, 2.43.1+16.04.1, and 2.43.1+18.04.1 allows a malicious snap to execute arbitrary code within the context of another snap. To mitigate this vulnerability, it is crucial to update snapcraft to the recommended versions. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for snapcraft →

Share this vulnerability

FAQ

Snapcraft is a tool used for building and packaging software as snaps, a universal Linux package format.

LD_LIBRARY_PATH is an environment variable that specifies the search path for shared libraries. It is used by the dynamic linker/loader to locate shared libraries required by a program.

A malicious snap can exploit this vulnerability by gaining code execution within the context of another snap if both have access to the home interface or a similar interface.

The consequences of this vulnerability depend on the specific snaps involved. If both snaps have access to sensitive resources or interfaces, the malicious snap can potentially perform unauthorized actions or access confidential information.

Updating snapcraft to the recommended versions mentioned earlier will protect your system from this vulnerability. It is important to regularly update software to ensure the latest security patches are applied.

Related vulnerabilities

Recent vulnerabilities recorded for snapcraft.

How To Fix

Minimum fixed version

2.43.1

This is the first release that contains the fix.

pip install --upgrade "snapcraft==2.43.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback