8.1high
Insecure permissions on user namespace / fakeroot temporary rootfs in Singularity
- Severity
- 8.1high CVSS:3.1 by NVD
- Exploit likelihood
- 2.01% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-w6v2-qchm-grj7
Description
Sylabs Singularity 3.2.0 through 3.6.2 has Insecure Permissions on temporary directories used in fakeroot or user namespace container execution.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| github.com/sylabs/singularity (Go) | from 3.2.0 before 3.6.3 | GitHub Advisory Database |
| sylabs singularity | from 3.2.0 up to 3.6.2 | NVD |
| opensuse leap | 15.1, 15.2 | NVD |
All scores
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 5.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:N |
Classification
What each source says
CVE List
Sylabs Singularity 3.2.0 through 3.6.2 has Insecure Permissions on temporary directories used in fakeroot or user namespace container execution.
GitHub Advisory Database
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:
Any sensitive security concerns should be directed to: security@sylabs.io
See our Security Policy here: https://sylabs.io/security-policy
NVD (es)
Sylabs Singularity versiones 3.2.0 hasta 3.6.2, presenta permisos no seguros en directorios temporales usados en fakeroot o en la ejecución del contenedor de espacio de nombres de usuario
References
| https://medium.com/sylabs | product, web | |
| https://github.com/hpcng/singularity/security/advisories/GHSA-w6v2-qchm-grj7 | mitigation, third-party-advisory, web | |
| http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00070.html | third-party-advisory, vendor-advisory, web | |
| http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00088.html | third-party-advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-25039 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-25039 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w6v2-qchm-grj7 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-25039 changed 2026-06-17 | Public domain |