CVE-2020-15229High· 8.2▾ TwilightPath traversal and files overwrite with unsquashfs in singularity
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 45.1 · likelihood 0.4 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Sep 12.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
2.0%
Due to insecure handling of path traversal and the lack of path sanitization within unsquashfs (a distribution provided utility used by Singularity), it is possible to overwrite/create any files on the host filesystem during the extraction of a crafted squashfs filesystem.
Squashfs extraction occurs automatically for unprivileged execution of Singularity (either --without-suid installation or with allow setuid = no) when a user attempts to run an image which:
library:// or shub://Image build is also impacted in a more serious way as it is often performed by the root user, allowing an attacker to overwrite/create files leading to a system compromise. Bootstrap methods library, shub and localimage trigger a 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 temporarily avoid use of unprivileged mode with single file images, in favor of sandbox images instead. Regarding image build, temporarily avoid building from library and shub sources, and as much as possible use --fakeroot or a VM to limit potential impact.
General questions about the impact of the advisory / changes made in the 3.6.0 release can be asked in the:
Any sensitive security concerns should be directed to: [email protected]
See our Security Policy here: https://sylabs.io/security-policy
github.com/sylabs/singularity >= 3.1.1, < 3.6.4Upgrade to a patched release:
github.com/sylabs/singularity 3.6.4Connected by shared product, vendor, weakness, or advisory.
CVE-2020-13845High· 7.5Execution Control List (ECL) Is Insecure in Singularity
CVE-2020-25040High· 8.8Insecure permissions on build temporary rootfs in Singularity
CVE-2020-13846High· 7.5"Verify All" Returns Success Despite Validation Failures in Singularity
CVE-2021-32635Medium· 6.3Action Commands (run/shell/exec) Against Library URIs Ignore Configured Remote Endpoint
CVE-2021-29499High· 7.5Predictable SIF UUID Identifiers in github.com/sylabs/sif
CVE-2026-47215Medium· 4.8SingularityCE and SingularityPRO are open source container platforms