9.3

CVE-2020-15229: Path traversal and files overwrite with unsquashfs

Modified
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) vulnerability in hpcng singularity. EPSS estimates a 2.05% chance of exploitation in the next 30 days, higher than 81.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.2, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.3/10
010
Critical · v3.1 (NVD)
EPSS score
2.05%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

5 scores · 4 sources · 2 versions

EPSS trend

Probability

2.05%

Chance of exploitation in the next 30 days

Percentile

82%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.05% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

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
Alpine1 product
  • singularity≥ 3.1.1, < 3.6.4-r0
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

6 vendors · 9 products

References

14 links
Show all 14 references