CVE-2020-25039
mediumpriority · track · 33EPSS 0.020 · 81 %ileEUUSEPSS · scored 2026-10-27
Sylabs Singularity 3.2.0 through 3.6.2 has Insecure Permissions on temporary directories used in fakeroot or user namespace container execution.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.5–8.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-w6v2-qchm-grj7Insecure permissions on user namespace / fakeroot temporary rootfs in Singularity2021-12-20ghsa · osvUS
### Impact Insecure permissions on temporary directories used in fakeroot or user namespace container execution. When a Singularity action command (run, shell, exec) is run with the fakeroot or user namespace option, Singularity will extract a container image to a temporary sandbox directory. Due to insecure permissions on the temporary directory it is possible for any user with access to the system to read the contents of the image. Additionally, if the image contains a world-writable file or directory, it is possible for a user to inject arbitrary content into the running container. ### Patches This issue is addressed in Singularity 3.6.3. All users are advised to upgrade to 3.6.3. ### Workarounds 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. ### For more information General questions about the impact of the advisory / changes made in the 3.6.0 release can be asked in the: * [Singularity Slack Channel](https://bit.ly/2m0g3lX) * [Singularity Mailing List](https://groups.google.com/a/lbl.gov/forum/??sdf%7Csort:date#!forum/singularity) Any sensitive security concerns should be directed to: security@sylabs.io See our Security Policy here: https://sylabs.io/security-policy
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00070.htmlcnnvd
- http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00088.htmlcnnvd
- https://github.com/hpcng/singularity/security/advisories/GHSA-w6v2-qchm-grj7cnnvd
- https://medium.com/sylabscnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2020-25039cnnvd
- https://vigilance.fr/vulnerability/Singularity-two-vulnerabilities-33378cnnvd
- http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00070.htmlenisa_euvd
- http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00088.htmlenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan