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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-10-14 · Modified: 2024-08-04
- Aliases: openSUSE-SU-2020:1814-1, GHSA-7gcp-w6ww-2xv9, openSUSE-SU-2020:1769-1, openSUSE-SU-2020:1770-1, ALPINE-CVE-2020-15229
- Record: https://cvemate.com/vulnerability/CVE-2020-15229 · JSON: https://cvemate.com/vulnerability/CVE-2020-15229/json

## Description

```text
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.
```

## Signals

- CVSS: 9.3 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- EPSS: 2.046%, percentile 81.865%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine singularity (Alpine Linux): ≥ 3.1.1, \< 3.6.4-r0
- github.com/sylabs singularity (Go): ≥ 3.1.1, \< 3.6.4
- hpcng singularity: \< 3.6.4
- opensuse backports\_sle: 15.0:sp2
- opensuse leap: 15.1 \| 15.2
- opensuse singularity&distro=openSUSE Leap 15.1 (openSUSE): \< 3.6.4-lp151.2.12.1
- opensuse singularity&distro=openSUSE Leap 15.2 (openSUSE): \< 3.6.4-lp152.2.9.1
- suse singularity&distro=SUSE Package Hub 15 SP2 (SUSE Linux Enterprise): \< 3.6.4-bp152.2.12.1
- sylabs singularity: ≥ 3.1.1, ≤ 3.6.3

## References

- <https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9>
- <https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes>
- <https://github.com/hpcng/singularity/pull/5611>
- <https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e>
- <http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html>
- <http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html>
- <http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DY65G6E632UFVXYQXNZWRUZZG53N63DM/>
- <https://bugzilla.suse.com/1177901>
- <https://www.suse.com/security/cve/CVE-2020-15229>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15229>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VFW5R4J7EDFXFXU553USBOXIDLJTJNH5/>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/WNVFYEARGBVAQBFQWF2QYIVBZW76G7CP/>
- <https://security.alpinelinux.org/vuln/CVE-2020-15229>

---

Data as of 2026-12-05T06:33:03.723Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
