{"id":"EUVD-2021-0998","revision":null,"records":[{"revision":"55684eb298a94c9d8c0f49ba36341b5c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2020-15229","aliases":[],"title":"Path traversal and files overwrite with unsquashfs","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 = 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.","state":0,"publishedAt":"2020-10-14T18:55:14+00:00","modifiedAt":"2024-08-04T13:08:23.183+00:00","affected":[{"ecosystem":"Vendor product","name":"singularity","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"singularity\",\n                    \"vendor\": \"hpcng\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"< 3.6.4\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"severity":"HIGH"}],"references":["https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9","https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes","https://github.com/hpcng/singularity/pull/5611","https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html","http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-15229","license":"CVE Program Terms of Use","key":"cve-program:CVE-2020-15229","identifiers":["CVE-2020-15229"]},"retained":false,"historicalAffected":[]},{"revision":"0f9feb8561f149cc866d6dd8fae33388","observedAt":"2026-11-17T23:30:36.005+00:00","statement":{"source":"euvd","id":"EUVD-2021-0998","aliases":["CVE-2020-15229","GHSA-7gcp-w6ww-2xv9"],"title":"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 f…","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 = 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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"severity":null}],"references":["https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9","https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes","https://github.com/hpcng/singularity/pull/5611","https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html","http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0998","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 14, 2020, 6:55:14 PM","dateUpdated":"Aug 4, 2024, 1:08:23 PM"},"relatedAdvisories":[{"id":"openSUSE-SU-2020:1770-1","title":"Security update for singularity","vulnerabilityIds":["CVE-2020-15229"]},{"id":"openSUSE-SU-2024:11384-1","title":"singularity-3.8.3-1.2 on GA media","vulnerabilityIds":["CVE-2018-12021","CVE-2018-19295","CVE-2019-11328","CVE-2019-19724","CVE-2020-13845","CVE-2020-13846","CVE-2020-13847","CVE-2020-15229","CVE-2020-25039","CVE-2020-25040","CVE-2021-29136","CVE-2021-32635"]},{"id":"openSUSE-SU-2020:1814-1","title":"Security update for singularity","vulnerabilityIds":["CVE-2020-15229"]},{"id":"openSUSE-SU-2020:1769-1","title":"Security update for singularity","vulnerabilityIds":["CVE-2020-15229"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-0998","identifiers":["EUVD-2021-0998","CVE-2020-15229","GHSA-7gcp-w6ww-2xv9"]},"retained":false,"historicalAffected":[]},{"revision":"da7c9019cb974b61a0265c675f77ad42","observedAt":"2026-10-24T16:17:26.926+00:00","statement":{"source":"nvd","id":"CVE-2020-15229","aliases":[],"title":"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 f…","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 = 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.","state":0,"publishedAt":"2020-10-14T19:15:13.743+00:00","modifiedAt":"2026-06-17T02:56:18.987+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":8.2,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":9.3,"severity":"CRITICAL"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"severity":"MEDIUM"}],"references":["http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html","http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html","https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes","https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e","https://github.com/hpcng/singularity/pull/5611","https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2020-15229","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-22"],"productCriteria":["cpe:2.3:a:sylabs:singularity:*:*:*:*:*:*:*:*","cpe:2.3:a:opensuse:backports_sle:15.0:sp2:*:*:*:*:*:*","cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*"],"sourceDates":{"published":"2020-10-14T19:15:13.743","lastModified":"2026-06-17T02:56:18.987"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2020-15229","identifiers":["CVE-2020-15229"]},"retained":false,"historicalAffected":[]},{"revision":"99001df0a6ae4ca4828d7a64ef4223da","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-7gcp-w6ww-2xv9","aliases":["CVE-2020-15229"],"title":"Path traversal and files overwrite with unsquashfs in singularity","description":"### Impact\n\nDue to insecure handling of path traversal and the lack of path sanitization within `unsquashfs` (a distribution provided utility used by Singularity), it is possible to overwrite/create any files on the host filesystem during the extraction of a crafted squashfs filesystem.\n\nSquashfs extraction occurs automatically for unprivileged execution of Singularity (either `--without-suid` installation or with `allow setuid = no`) when a user attempts to run an image which:\n\n- is a local SIF image or a single file containing a squashfs filesystem\n- is pulled from remote sources `library://` or `shub://`\n\nImage build is also impacted in a more serious way as it is often performed by the root user, allowing an attacker to overwrite/create files leading to a system compromise.  Bootstrap methods `library`, `shub` and `localimage` trigger a squashfs extraction.\n\n### Patches\n\nThis issue is addressed in Singularity 3.6.4.\n\nAll users are advised to upgrade to 3.6.4 especially if they use Singularity mainly for building image as root user.\n\n### Workarounds\n\nThere is no solid workaround except to temporarily avoid use of unprivileged mode with single file images, in favor of sandbox images instead. Regarding image build, temporarily avoid building from `library` and `shub` sources, and as much as possible use `--fakeroot` or a VM to limit potential impact.\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","state":0,"publishedAt":"2021-05-24T16:59:53+00:00","modifiedAt":"2026-09-10T03:49:04.7438718+00:00","affected":[{"ecosystem":"Go","name":"github.com/sylabs/singularity","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.1.1"},{"kind":"fixed","version":"3.6.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9","https://nvd.nist.gov/vuln/detail/CVE-2020-15229","https://github.com/hpcng/singularity/pull/5611","https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e","https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html","http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html","http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html"],"sourceUrl":"https://github.com/advisories/GHSA-7gcp-w6ww-2xv9","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7gcp-w6ww-2xv9","identifiers":["GHSA-7gcp-w6ww-2xv9","CVE-2020-15229"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T07:24:18.7298498+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T07:24:18.7298498+00:00","lastSuccessAt":"2026-11-19T07:24:18.9487255+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:24:18.9487263+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-306357659df1e2af16d0405959296720d406f35ce6b690cee2f97e2c7b3b93f8","complete":true,"records":428252,"lastAttemptAt":"2026-11-19T07:22:43.9622969+00:00","lastSuccessAt":"2026-11-19T07:22:43.9282436+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:22:43.9622969+00:00","snapshotPublishedAt":"2026-11-19T06:33:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-07086e6cf313440ea30d10a928fc91b9","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T07:33:41.8483147+00:00","lastSuccessAt":"2026-11-19T07:33:40.828+00:00","error":"235 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T07:33:40.828+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13426,"expectedIdentifiers":13908,"failedIdentifiers":235},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T07:24:18.7298498+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T07:24:18.7298498+00:00","lastSuccessAt":"2026-11-19T07:24:18.9495005+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:24:18.9495036+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-841a7083b5da4792a608345e0878654f","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T07:24:19.9897258+00:00","lastSuccessAt":"2026-11-19T07:24:19.985+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:24:19.985+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T07:24:18.6790903+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:24:18.6790903+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T07:22:44.1289957+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:22:44.1289957+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T07:24:18.6935178+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:24:18.6935178+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-0378f37a427647fa1681f61567cdc1e8dc0f1ff3eb46719acf6c5f27f602fe57","complete":true,"records":232723,"lastAttemptAt":"2026-11-19T07:24:18.515734+00:00","lastSuccessAt":"2026-11-19T07:24:17.5741512+00:00","error":null,"lastVerifiedAt":"2026-11-19T07:24:18.515734+00:00","snapshotPublishedAt":"2026-11-19T07:18:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}