CVE-2020-25040High· 8.8▾ TwilightInsecure permissions on build temporary rootfs in Singularity
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 48.4 · 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 Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
2.0%
Insecure permissions on temporary directories used in explicit and implicit container build operations.
When a Singularity command that results in a container build operation is executed, it is possible for a user with access to the system to read the contents of the image during the build. Additionally, if the image contains a world-writable file or directory, it is possible for a user to inject arbitrary content into the running build, which in certain circumstances may enable arbitrary code execution during the build and/or when the built container is run.
This issue is addressed in Singularity 3.6.3.
All users are advised to upgrade to 3.6.3.
The issue is mitigated if TMPDIR is set to a location that is only accessible to the user, as any subdirectories directly under TMPDIR cannot then be accessed by others. However, this is difficult to enforce so it is not recommended to rely on this as a mitigation.
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.6.3Upgrade to a patched release:
github.com/sylabs/singularity 3.6.3Connected by shared product, vendor, weakness, or advisory.
CVE-2020-13845High· 7.5Execution Control List (ECL) Is Insecure in Singularity
CVE-2020-13846High· 7.5"Verify All" Returns Success Despite Validation Failures in Singularity
CVE-2020-15229High· 8.2Path traversal and files overwrite with unsquashfs 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