CVE-2020-15229: hpcng singularity Path Traversal
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.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 14-10-2020PublishedVulnerability first disclosed.
- 04-08-2024Last 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- CVE.orgCNA8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:NDiffers
- OSV · GoEcosystem advisory · calculated8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:NDiffers
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
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected 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
- singularity< 3.6.4
Suse1 product
- singularity&distro=SUSE Package Hub 15 SP2< 3.6.4-bp152.2.12.1
Sylabs1 product
- singularity≥ 3.1.1, ≤ 3.6.3
5 vendors · 8 products
References
13 links- github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9X Refsource CONFIRMWEBThird Party Advisory
- github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.mdX Refsource MISCWEBRelease NotesThird Party Advisory
- github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53eX Refsource MISCWEBPatchThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.htmlVendor AdvisoryX Refsource SUSEWEBBroken LinkMailing ListThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.htmlVendor AdvisoryX Refsource SUSEWEBBroken LinkMailing ListThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.htmlVendor AdvisoryX Refsource SUSEWEBBroken LinkMailing ListThird Party Advisory
- lists.opensuse.org/archives/…Advisory
Show all 13 references
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory