CVE-2020-15229
Singularity Unprivileged Squashfs Path Traversal Vulnerability
Description
Singularity (an open source container platform) from version 3.1.1 through 3.6.3 has a vulnerability. Due to insecure handling of path traversal and the lack of path sanitization within `unsquashfs`, it is possible to overwrite/create any files on the host filesystem during the extraction with a crafted squashfs filesystem. The extraction occurs automatically for unprivileged (either installation or with `allow setuid = no`) run of Singularity when a user attempt to run an image which is a local SIF image or a single file containing a squashfs filesystem and is coming from remote sources `library://` or `shub://`. Image build is also impacted in a more serious way as it can be used by a root user, allowing an attacker to overwrite/create files leading to a system compromise, so far bootstrap methods `library`, `shub` and `localimage` are triggering the squashfs extraction. This issue is addressed in Singularity 3.6.4. All users are advised to upgrade to 3.6.4 especially if they use Singularity mainly for building image as root user. There is no solid workaround except to temporary avoid to use unprivileged mode with single file images in favor of sandbox images instead. Regarding image build, temporary avoid to build from `library` and `shub` sources and as much as possible use `--fakeroot` or a VM for that.
INFO
Published Date :
Oct. 14, 2020, 7:15 p.m.
Last Modified :
Nov. 16, 2022, 4:22 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.8
Exploitability Score :
2.8
Affected Products
The following products are affected by CVE-2020-15229
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
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-15229
.
URL | Resource |
---|---|
http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html | Broken Link Mailing List Third Party Advisory |
http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html | Broken Link Mailing List Third Party Advisory |
http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html | Broken Link Mailing List Third Party Advisory |
https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes | Release Notes Third Party Advisory |
https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e | Patch Third Party Advisory |
https://github.com/hpcng/singularity/pull/5611 | Patch Third Party Advisory |
https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9 | Third Party Advisory |
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).
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-15229
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2020-15229
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 [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Nov. 16, 2022
Action Type Old Value New Value Changed Reference Type http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html No Types Assigned http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html Broken Link, Mailing List, Third Party Advisory Changed Reference Type http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html No Types Assigned http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html Broken Link, Mailing List, Third Party Advisory Changed Reference Type http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html No Types Assigned http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html Broken Link, Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:opensuse:backports_sle:15.0:sp2:*:*:*:*:*:* *cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:* *cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Nov. 02, 2020
Action Type Old Value New Value Added Reference http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html [No Types Assigned] Added Reference http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html [No Types Assigned] Added Reference http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html [No Types Assigned] -
Initial Analysis by [email protected]
Oct. 29, 2020
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N Changed Reference Type https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes No Types Assigned https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes Release Notes, Third Party Advisory Changed Reference Type https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e No Types Assigned https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e Patch, Third Party Advisory Changed Reference Type https://github.com/hpcng/singularity/pull/5611 No Types Assigned https://github.com/hpcng/singularity/pull/5611 Patch, Third Party Advisory Changed Reference Type https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9 No Types Assigned https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9 Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:sylabs:singularity:*:*:*:*:*:*:*:* versions from (including) 3.1.1 up to (including) 3.6.3
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-15229
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-15229
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.27 }} 0.03%
score
0.68216
percentile