{"id":"EUVD-2021-0998","enisaUuid":"5aee6c84-d8f7-3e43-8d96-107fb9a7682d","description":"Singularity (an open source container platform) from version 3.1.1 through 3.6.3 has a vulnerability. Due to insecure handling of path traversal and the lack of path sanitization within `unsquashfs`, it is possible to overwrite/create any files on the host filesystem during the extraction with a crafted squashfs filesystem. The extraction occurs automatically for unprivileged (either installation or with `allow setuid \u003d no`) run of Singularity when a user attempt to run an image which is a local SIF image or a single file containing a squashfs filesystem and is coming from remote sources `library://` or `shub://`. Image build is also impacted in a more serious way as it can be used by a root user, allowing an attacker to overwrite/create files leading to a system compromise, so far bootstrap methods `library`, `shub` and `localimage` are triggering the 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 temporary avoid to use unprivileged mode with single file images in favor of sandbox images instead. Regarding image build, temporary avoid to build from `library` and `shub` sources and as much as possible use `--fakeroot` or a VM for that.","datePublished":"Oct 14, 2020, 6:55:14 PM","dateUpdated":"Aug 4, 2024, 1:08:23 PM","baseScore":8.2,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","references":"https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9\nhttps://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes\nhttps://github.com/hpcng/singularity/pull/5611\nhttps://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e\nhttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html\nhttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html\nhttp://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html\n","aliases":"CVE-2020-15229\nGHSA-7gcp-w6ww-2xv9\n","assigner":"GitHub_M","epss":2.05,"enisaIdProduct":[{"id":"3cadd84b-12b0-3b5a-9bc1-73151127dc4a","product":{"name":"singularity","vendor":{"name":"sylabs"}},"product_version":"\u003c 3.6.4"}],"enisaIdVendor":[{"id":"52386a11-670d-3bf8-b2f3-4c37c5c16530","vendor":{"name":"hpcng"}}],"enisaIdVulnerability":[{"id":"43f2f195-ca5d-39b9-8935-f774d98a3830","vulnerability":{"id":"GHSA-7gcp-w6ww-2xv9","description":"Path traversal and files overwrite with unsquashfs in singularity","datePublished":"May 24, 2021, 4:59:53 PM","dateUpdated":"May 21, 2021, 10:17:06 PM","baseScore":null,"references":"https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9\nhttps://nvd.nist.gov/vuln/detail/CVE-2020-15229\nhttps://github.com/hpcng/singularity/pull/5611\nhttps://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e\nhttps://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes\nhttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html\nhttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html\nhttp://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html\n","enisa_id":"EUVD-2021-0998\n","aliases":"CVE-2020-15229\nGHSA-7gcp-w6ww-2xv9\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:05:47 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"775ca9fe-d4ad-3608-967d-86b27c3e9d64","vulnerability":{"id":"CVE-2020-15229","description":"Singularity (an open source container platform) from version 3.1.1 through 3.6.3 has a vulnerability. Due to insecure handling of path traversal and the lack of path sanitization within `unsquashfs`, it is possible to overwrite/create any files on the host filesystem during the extraction with a crafted squashfs filesystem. The extraction occurs automatically for unprivileged (either installation or with `allow setuid \u003d no`) run of Singularity when a user attempt to run an image which is a local SIF image or a single file containing a squashfs filesystem and is coming from remote sources `library://` or `shub://`. Image build is also impacted in a more serious way as it can be used by a root user, allowing an attacker to overwrite/create files leading to a system compromise, so far bootstrap methods `library`, `shub` and `localimage` are triggering the 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 temporary avoid to use unprivileged mode with single file images in favor of sandbox images instead. Regarding image build, temporary avoid to build from `library` and `shub` sources and as much as possible use `--fakeroot` or a VM for that.","datePublished":"Oct 14, 2020, 6:55:14 PM","dateUpdated":"Aug 4, 2024, 1:08:23 PM","status":"PUBLISHED","baseScore":8.2,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","references":"https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9\nhttps://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes\nhttps://github.com/hpcng/singularity/pull/5611\nhttps://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e\nhttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html\nhttp://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html\nhttp://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html\n","enisa_id":"EUVD-2021-0998\n","assigner":"GitHub_M","epss":2.05,"dataProcessed":"Nov 15, 2026, 7:22:27 AM","vulnerabilityProduct":[{"id":"d2adc832-9f9e-3264-af58-af8964eece9a","product":{"name":"singularity","vendor":{"name":"sylabs"}},"product_version":"\u003c 3.6.4"}],"vulnerabilityVendor":[{"id":"0da5f776-9701-3243-975d-3c2379103cc7","vendor":{"name":"hpcng"}}]}}],"enisaIdAdvisory":[{"id":"0d5027a5-0a83-3efc-a3b3-88ec9d02c38c","advisory":{"id":"openSUSE-SU-2020:1770-1","description":"Security update for singularity","summary":"Security update for singularity","datePublished":"Oct 29, 2020, 5:24:21 PM","dateUpdated":"Sep 20, 2026, 7:15:22 PM","baseScore":0.0,"references":"https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2020_1770-1.json\nhttps://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/WNVFYEARGBVAQBFQWF2QYIVBZW76G7CP/\nhttps://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/WNVFYEARGBVAQBFQWF2QYIVBZW76G7CP/\nhttps://bugzilla.suse.com/1177901\nhttps://www.suse.com/security/cve/CVE-2020-15229/\n","aliases":"CVE-2020-15229\n","source":{"id":21,"name":"csaf_opensuse"},"advisoryProduct":[{"id":"0fee7e70-b875-3fa5-bb93-cdfb812a9f41","product":{"name":"openSUSE Leap 15.2","vendor":{"name":"opensuse"}}},{"id":"221ae991-ea7e-3de7-a814-f20a37cd67cf","product":{"name":"singularity-3.6.4-lp152.2.9.1.x86_64","vendor":{"name":"SUSE"}}},{"id":"e72ec2cf-11f3-34ba-b9a4-984ed3272323","product":{"name":"singularity-0:3.6.4-lp152.2.9.1.x86_64","vendor":{"name":"SUSE"}}}]}},{"id":"235f50f1-1014-3577-9c9e-2dea7d3f014a","advisory":{"id":"openSUSE-SU-2024:11384-1","description":"singularity-3.8.3-1.2 on GA media","summary":"singularity-3.8.3-1.2 on GA media","datePublished":"Jun 15, 2024, 12:00:00 AM","dateUpdated":"Sep 20, 2026, 8:17:24 PM","baseScore":0.0,"references":"https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_11384-1.json\nhttps://www.suse.com/security/cve/CVE-2018-12021/\nhttps://www.suse.com/security/cve/CVE-2018-19295/\nhttps://www.suse.com/security/cve/CVE-2019-11328/\nhttps://www.suse.com/security/cve/CVE-2019-19724/\nhttps://www.suse.com/security/cve/CVE-2020-13845/\nhttps://www.suse.com/security/cve/CVE-2020-13846/\nhttps://www.suse.com/security/cve/CVE-2020-13847/\nhttps://www.suse.com/security/cve/CVE-2020-15229/\nhttps://www.suse.com/security/cve/CVE-2020-25039/\nhttps://www.suse.com/security/cve/CVE-2020-25040/\nhttps://www.suse.com/security/cve/CVE-2021-29136/\nhttps://www.suse.com/security/cve/CVE-2021-32635/\n","aliases":"CVE-2018-12021\nCVE-2018-19295\nCVE-2019-11328\nCVE-2019-19724\nCVE-2020-13845\nCVE-2020-13846\nCVE-2020-13847\nCVE-2020-15229\nCVE-2020-25039\nCVE-2020-25040\nCVE-2021-29136\nCVE-2021-32635\n","source":{"id":21,"name":"csaf_opensuse"},"advisoryProduct":[{"id":"488eea2d-6770-35ee-9202-53df5b31661f","product":{"name":"singularity-0:3.8.3-1.2.x86_64","vendor":{"name":"SUSE"}}},{"id":"5c7db079-a4ca-3191-8457-683228c1baf9","product":{"name":"singularity-3.8.3-1.2.ppc64le","vendor":{"name":"SUSE"}}},{"id":"63e2f984-33c7-39ef-837c-d31541badcb4","product":{"name":"singularity-0:3.8.3-1.2.aarch64","vendor":{"name":"SUSE"}}},{"id":"6586b744-d5d1-356d-9601-4f36f96be335","product":{"name":"openSUSE Tumbleweed","vendor":{"name":"SUSE"}}},{"id":"729f82c1-0672-3f32-823b-7815b94f3faa","product":{"name":"singularity-0:3.8.3-1.2.s390x","vendor":{"name":"SUSE"}}},{"id":"a85b7254-e6bc-35f0-ae0b-45dda4b79c77","product":{"name":"singularity-3.8.3-1.2.x86_64","vendor":{"name":"SUSE"}}},{"id":"a88bfdf8-2149-3af5-9519-d85f9761ae66","product":{"name":"singularity-3.8.3-1.2.s390x","vendor":{"name":"SUSE"}}},{"id":"beceb9d5-9f97-3488-9a61-d1cf8be7fb2f","product":{"name":"singularity-0:3.8.3-1.2.ppc64le","vendor":{"name":"SUSE"}}},{"id":"d80cec77-73a6-3d98-afba-5e905368ed6c","product":{"name":"singularity-3.8.3-1.2.aarch64","vendor":{"name":"SUSE"}}}]}},{"id":"be1217d7-ce15-329f-8f2c-83e965c15d33","advisory":{"id":"openSUSE-SU-2020:1814-1","description":"Security update for singularity","summary":"Security update for singularity","datePublished":"Nov 1, 2020, 11:23:57 PM","dateUpdated":"Sep 20, 2026, 7:15:47 PM","baseScore":0.0,"references":"https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2020_1814-1.json\nhttps://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DY65G6E632UFVXYQXNZWRUZZG53N63DM/\nhttps://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DY65G6E632UFVXYQXNZWRUZZG53N63DM/\nhttps://bugzilla.suse.com/1177901\nhttps://www.suse.com/security/cve/CVE-2020-15229/\n","aliases":"CVE-2020-15229\n","source":{"id":21,"name":"csaf_opensuse"},"advisoryProduct":[{"id":"2c67edd4-6b3d-3494-b67f-070018dd472c","product":{"name":"singularity-3.6.4-bp152.2.12.1.s390x","vendor":{"name":"SUSE"}}},{"id":"2cb16cef-9db9-3b37-8230-5a739fc0a4e6","product":{"name":"SUSE Package Hub 15 SP2","vendor":{"name":"SUSE"}}},{"id":"43ebc97e-e5ca-3376-abbe-3ac106faf7bd","product":{"name":"singularity-3.6.4-bp152.2.12.1.x86_64","vendor":{"name":"SUSE"}}},{"id":"7bd8a469-1cec-331d-a44d-6a2e362091f5","product":{"name":"singularity-0:3.6.4-bp152.2.12.1.s390x","vendor":{"name":"SUSE"}}},{"id":"843a4a9d-b0e7-3c26-b49b-e14b208b3843","product":{"name":"singularity-0:3.6.4-bp152.2.12.1.x86_64","vendor":{"name":"SUSE"}}},{"id":"8b1948bb-0cd1-3314-ae64-16bef2e16941","product":{"name":"singularity-3.6.4-bp152.2.12.1.aarch64","vendor":{"name":"SUSE"}}},{"id":"bb2a9967-7dd3-3be1-85c0-f3b7eb792da6","product":{"name":"singularity-0:3.6.4-bp152.2.12.1.aarch64","vendor":{"name":"SUSE"}}},{"id":"c30eef3d-5a4e-39a5-bec9-1ea9943ce286","product":{"name":"singularity-0:3.6.4-bp152.2.12.1.ppc64le","vendor":{"name":"SUSE"}}},{"id":"dde3a938-1279-3457-ab36-04dbe217bc81","product":{"name":"singularity-3.6.4-bp152.2.12.1.ppc64le","vendor":{"name":"SUSE"}}}]}},{"id":"fff55f44-29fc-31d1-bb7f-930cdd2c1d5e","advisory":{"id":"openSUSE-SU-2020:1769-1","description":"Security update for singularity","summary":"Security update for singularity","datePublished":"Oct 29, 2020, 5:24:16 PM","dateUpdated":"Sep 20, 2026, 7:15:21 PM","baseScore":0.0,"references":"https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2020_1769-1.json\nhttps://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VFW5R4J7EDFXFXU553USBOXIDLJTJNH5/\nhttps://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VFW5R4J7EDFXFXU553USBOXIDLJTJNH5/\nhttps://bugzilla.suse.com/1177901\nhttps://www.suse.com/security/cve/CVE-2020-15229/\n","aliases":"CVE-2020-15229\n","source":{"id":21,"name":"csaf_opensuse"},"advisoryProduct":[{"id":"193df9e6-9f85-3e27-bd75-ab5b9306b9fc","product":{"name":"singularity-0:3.6.4-lp151.2.12.1.x86_64","vendor":{"name":"SUSE"}}},{"id":"77c57516-60d3-371d-8135-b9e5b079d399","product":{"name":"openSUSE Leap 15.1","vendor":{"name":"opensuse"}}},{"id":"87030adf-f7e3-3784-9b3d-e019c66d7664","product":{"name":"singularity-3.6.4-lp151.2.12.1.x86_64","vendor":{"name":"SUSE"}}}]}}]}