QID 983828
QID 983828: Go (go) Security Update for github.com/sylabs/singularity (GHSA-7gcp-w6ww-2xv9)
Security update has been released for github.com/sylabs/singularity to fix the vulnerability. Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
Due 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. Squashfs 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: - is a local SIF image or a single file containing a squashfs filesystem - is pulled from remote sources `library://` or `shub://` Image 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.
There 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.
- GHSA-7gcp-w6ww-2xv9 -
github.com/advisories/GHSA-7gcp-w6ww-2xv9
CVEs related to QID 983828
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-7gcp-w6ww-2xv9 | github.com/sylabs/singularity |
|