CVE-2020-15229Path traversal and files overwrite with unsquashfs
- 8.2HighCVSS base score
- 2.0%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 4 months later
· 4 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N |
| NVDNVD · Modified | 3.1 | Critical9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 2.0% · top 18% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.2.
Affected products
- affected < 3.6.4
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/sylabs/singularityGHSA-7gcp-w6ww-2xv9 (opens in a new tab)
References
References7
- https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/hpcng/singularity/pull/5611 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e (opens in a new tab)x_refsource_MISCx_transferred
- openSUSE-SU-2020:1769 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- openSUSE-SU-2020:1770 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- openSUSE-SU-2020:1814 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0998 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7gcp-w6ww-2xv9 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-15229)Record last updated .