9.3

CVE-2020-15229: hpcng singularity Path Traversal

CVSS: 9.3v3.1CriticalModified
AliasesopenSUSE-SU-2020:1814-1GHSA-7gcp-w6ww-2xv9openSUSE-SU-2020:1769-1
Published 14-10-2020Last modified 04-08-2024

Vulnerability summary

CVE-2020-15229 is a critical (CVSS 9.3) Path Traversal vulnerability in hpcng singularity. EPSS estimates a 2.05% chance of exploitation in the next 30 days, higher than 80.9% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.3/10
010
Critical · v3.1 (NVD)
EPSS score
2.05%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 14-10-2020
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

2.05%

Chance of exploitation in the next 30 days

Percentile

81%

Versus all other CVEs

30-day change

0.00 pp

From 2.05% on 20-09-2026

20-09-202620-10-2026
EPSS score
2.05%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Opensuse4 products
  • backports_sle15.0:sp2
  • leapEOL15.1 | 15.2
  • singularity&distro=openSUSE Leap 15.1< 3.6.4-lp151.2.12.1
  • singularity&distro=openSUSE Leap 15.2< 3.6.4-lp152.2.9.1
Github.com/sylabs1 product
  • singularity≥ 3.1.1, < 3.6.4
Hpcng1 product
Suse1 product
  • singularity&distro=SUSE Package Hub 15 SP2< 3.6.4-bp152.2.12.1
Sylabs1 product

5 vendors · 8 products

References

13 links
Show all 13 references