QID 983798

QID 983798: Go (go) Security Update for github.com/sylabs/singularity (GHSA-jv9c-w74q-6762)

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.

Insecure permissions on temporary directories used in explicit and implicit container build operations. When 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.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as High - 6.5 severity.
  • Solution
    This issue is addressed in Singularity 3.6.3. All users are advised to upgrade to 3.6.3.Workaround:
    The 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.
    Vendor References

    CVEs related to QID 983798

    Software Advisories
    Advisory ID Software Component Link
    GHSA-jv9c-w74q-6762 github.com/sylabs/singularity URL Logo github.com/advisories/GHSA-jv9c-w74q-6762