{"id":"CVE-2020-25040","aliases":["CVE-2020-25040","GHSA-jv9c-w74q-6762"],"related":[],"kind":"vulnerability","state":"published","title":"Insecure permissions on build temporary rootfs in Singularity","summary":"Sylabs Singularity through 3.6.2 has Insecure Permissions on temporary directories used in explicit and implicit container build operations, a different vulnerability than CVE-2020-25039.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sylabs Singularity through 3.6.2 has Insecure Permissions on temporary directories used in explicit and implicit container build operations, a different vulnerability than CVE-2020-25039.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nInsecure permissions on temporary directories used in explicit and implicit container build operations.\n\nWhen 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.\n\n### Patches\n\nThis issue is addressed in Singularity 3.6.3.\n\nAll users are advised to upgrade to 3.6.3.\n\n### Workarounds\n\nThe 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.\n\n### For more information\n\nGeneral questions about the impact of the advisory / changes made in the 3.6.0 release can be asked in the:\n\n* [Singularity Slack Channel](https://bit.ly/2m0g3lX)\n* [Singularity Mailing List](https://groups.google.com/a/lbl.gov/forum/??sdf%7Csort:date#!forum/singularity)\n\nAny sensitive security concerns should be directed to: security@sylabs.io\n\nSee our Security Policy here: https://sylabs.io/security-policy","format":"markdown","source":"ghsa"},{"lang":"es","text":"Sylabs Singularity versiones hasta 3.6.2, presenta permisos no seguros en directorios temporales utilizados en operaciones de compilación de contenedores explícitas e implícitas, una vulnerabilidad diferente a CVE-2020-25039","source":"nvd"}],"published":"2020-09-16T17:47:17.000Z","modified":"2026-07-08T05:59:53.778Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-668","CWE-732"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.6.3"}],"ecosystem":"Go","package":"github.com/sylabs/singularity","purl":"pkg:golang/github.com/sylabs/singularity","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.6.2"}],"vendor":"sylabs","product":"singularity","cpe":"cpe:2.3:a:sylabs:singularity:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.1"},{"status":"affected","version":"15.2"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://medium.com/sylabs","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hpcng/singularity/security/advisories/GHSA-jv9c-w74q-6762","tags":["mitigation","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00070.html","tags":["third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-09/msg00088.html","tags":["third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25040","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-25040","url":"https://www.cve.org/CVERecord?id=CVE-2020-25040","licence":"CVE Terms of Use","modified":"2024-08-04T15:26:09.173Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jv9c-w74q-6762","url":"https://github.com/advisories/GHSA-jv9c-w74q-6762","licence":"CC-BY-4.0","modified":"2026-07-08T05:59:53.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25040","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25040","licence":"Public domain","modified":"2026-06-17T03:06:16.777Z"}],"updatedAt":"2026-11-25T22:57:54.745Z","epss":{"score":0.0204,"percentile":0.8169,"date":"2026-12-01T12:00:22.000Z"}}