{"schemaVersion":3,"id":"CVE-2020-15229","aliases":["openSUSE-SU-2020:1814-1","GHSA-7gcp-w6ww-2xv9","openSUSE-SU-2020:1769-1","openSUSE-SU-2020:1770-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-10-14T18:55:14.000Z","modified":"2024-08-04T13:08:23.183Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":8.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:N","exploitability":7.2,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.3,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02046,"percentile":0.80932,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02046},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02046,"percentile":0.80932}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02046,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02046,"percentile":0.80932}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"github.com/sylabs","product":"singularity","name":"github.com/sylabs/singularity","label":"singularity","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/sylabs/singularity","purlType":"golang","versions":[{"text":"≥ 3.1.1, < 3.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.1.1, < 3.6.4","eol":null,"hubHref":null},{"vendor":"hpcng","product":"singularity","name":"singularity","label":"singularity","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4","eol":null,"hubHref":"/vendor/hpcng/singularity"},{"vendor":"opensuse","product":"backports_sle","name":"backports sle","label":"backports_sle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"15.0:sp2","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.0:sp2","eol":null,"hubHref":"/vendor/opensuse/backports_sle"},{"vendor":"opensuse","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"15.1","noFixRecorded":false,"fixedIn":null},{"text":"15.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.1 | 15.2","eol":{"isEol":true,"eolDate":"2021-02-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"15.1","label":"Leap 15.1","eolFrom":"2021-02-02T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/leap"},{"vendor":"opensuse","product":"singularity&distro=openSUSE Leap 15.1","name":"singularity","label":"singularity&distro=openSUSE Leap 15.1","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/singularity&distro=openSUSE Leap 15.1","purlType":"rpm","versions":[{"text":"< 3.6.4-lp151.2.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4-lp151.2.12.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"singularity&distro=openSUSE Leap 15.2","name":"singularity","label":"singularity&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/singularity&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 3.6.4-lp152.2.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4-lp152.2.9.1","eol":null,"hubHref":null},{"vendor":"suse","product":"singularity&distro=SUSE Package Hub 15 SP2","name":"singularity","label":"singularity&distro=SUSE Package Hub 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/singularity&distro=SUSE Package Hub 15 SP2","purlType":"rpm","versions":[{"text":"< 3.6.4-bp152.2.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.6.4-bp152.2.12.1","eol":null,"hubHref":null},{"vendor":"sylabs","product":"singularity","name":"singularity","label":"singularity","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.1.1, ≤ 3.6.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.1.1, ≤ 3.6.3","eol":null,"hubHref":"/vendor/sylabs/singularity"}],"affectedCount":8,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9","label":"github.com/hpcng/singularity/security/advisories/GHSA-7gcp-w6ww-2xv9","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md#security-related-fixes","label":"github.com/hpcng/singularity/blob/v3.6.4/CHANGELOG.md","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/hpcng/singularity/pull/5611","label":"github.com/hpcng/singularity/pull/5611","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e","label":"github.com/hpcng/singularity/commit/eba3dea260b117198fdb6faf41f2482ab2f8d53e","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html","label":"lists.opensuse.org/opensuse-security-announce/2020-10/msg00071.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","WEB","Broken Link","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html","label":"lists.opensuse.org/opensuse-security-announce/2020-10/msg00070.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","WEB","Broken Link","Mailing List","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html","label":"lists.opensuse.org/opensuse-security-announce/2020-11/msg00009.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","WEB","Broken Link","Mailing List","Third Party Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DY65G6E632UFVXYQXNZWRUZZG53N63DM/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1177901","label":"bugzilla.suse.com/1177901","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2020-15229","label":"www.suse.com/security/cve/CVE-2020-15229","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15229","label":"nvd.nist.gov/vuln/detail/CVE-2020-15229","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VFW5R4J7EDFXFXU553USBOXIDLJTJNH5/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/WNVFYEARGBVAQBFQWF2QYIVBZW76G7CP/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11384-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11384-1"]},"timeline":[{"kind":"published","date":"2020-10-14T18:55:14.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T13:08:23.183Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:13:29.463Z","stale":false,"partial":false}}