CVE-2020-27348
snapcraft may build snaps with incorrect LD_LIBRARY_PATH
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.
INFO
Published Date :
Dec. 4, 2020, 3:15 a.m.
Last Modified :
Nov. 21, 2024, 5:21 a.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | 
Solution
- Update the affected snapcraft, snapcraft-examples and / or snapcraft-parser packages.
 
Public PoC/Exploit Available at Github
                                            CVE-2020-27348 has a 1 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2020-27348.
                                        
| URL | Resource | 
|---|---|
| https://bugs.launchpad.net/bugs/1901572 | Exploit Issue Tracking Third Party Advisory | 
| https://github.com/snapcore/snapcraft/pull/3345 | Third Party Advisory | 
| https://usn.ubuntu.com/usn/usn-4661-1 | Patch Third Party Advisory | 
| https://bugs.launchpad.net/bugs/1901572 | Exploit Issue Tracking Third Party Advisory | 
| https://github.com/snapcore/snapcraft/pull/3345 | Third Party Advisory | 
| https://usn.ubuntu.com/usn/usn-4661-1 | Patch Third Party Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2020-27348 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2020-27348
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Informational Repository tracking times that real world bugs have come out of CTF challenges intentionally or otherwise
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2020-27348 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2020-27348 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://bugs.launchpad.net/bugs/1901572 Added Reference https://github.com/snapcore/snapcraft/pull/3345 Added Reference https://usn.ubuntu.com/usn/usn-4661-1  - 
                            
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value  - 
                            
Reanalysis by [email protected]
Dec. 14, 2020
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:snapcraft_project:snapcraft:*:*:*:*:*:*:*:* versions up to (excluding) 4.4.4 OR *cpe:2.3:a:canonical:snapcraft:*:*:*:*:*:*:*:* versions up to (excluding) 4.4.4  - 
                            
Initial Analysis by [email protected]
Dec. 08, 2020
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L Changed Reference Type https://bugs.launchpad.net/bugs/1901572 No Types Assigned https://bugs.launchpad.net/bugs/1901572 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/snapcore/snapcraft/pull/3345 No Types Assigned https://github.com/snapcore/snapcraft/pull/3345 Third Party Advisory Changed Reference Type https://usn.ubuntu.com/usn/usn-4661-1 No Types Assigned https://usn.ubuntu.com/usn/usn-4661-1 Patch, Third Party Advisory Added CWE NIST CWE-427 Added CPE Configuration OR *cpe:2.3:a:snapcraft_project:snapcraft:*:*:*:*:*:*:*:* versions up to (excluding) 4.4.4 Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:*:*:*:*  
Vulnerability Scoring Details
Base CVSS Score: 6.8
Base CVSS Score: 4.4
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.06 }} -0.01%
score
0.18320
percentile