Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-15229

HIGH 8.2EPSS 82%

Path traversal and files overwrite with unsquashfs

Also known as GHSA-7gcp-w6ww-2xv9

Mitigation

  • Upgrade github.com/sylabs/singularity to 3.6.4 or later.

Who should check

  • Projects that depend on Go package github.com/sylabs/singularity (>= 3.1.1, < 3.6.4)
  • Anyone running hpcng singularity < 3.6.4

Vulnerability facts

Affected
github.com/sylabs/singularity >= 3.1.1, < 3.6.4
Fixed in
3.6.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: High
  • Availability impact: None
EPSS
2.05% chance of exploitation in 30 days (percentile 82, 2026-11-26)
CWE
CWE-22
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/sylabs/singularity>= 3.1.1, < 3.6.43.6.4osv
hpcng singularity< 3.6.4—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2020-15229. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-15229.md
Affected: github.com/sylabs/singularity >= 3.1.1, < 3.6.4
Fixed in: 3.6.4

Steps:
1. Search this machine and project for github.com/sylabs/singularity (Go), hpcng singularity: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2020-15229 being exploited?

There is no confirmed exploitation: CVE-2020-15229 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.05% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2020-15229?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2020-15229?

github.com/sylabs/singularity >= 3.1.1, < 3.6.4.

Is there a fix for CVE-2020-15229?

Yes. Fixed in 3.6.4. Upgrade github.com/sylabs/singularity to 3.6.4 or later.

How do I check if I'm affected by CVE-2020-15229?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors