GHSA-w6v2-qchm-grj7

Suggest an improvement
Source
https://github.com/advisories/GHSA-w6v2-qchm-grj7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-w6v2-qchm-grj7/GHSA-w6v2-qchm-grj7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w6v2-qchm-grj7
Aliases
Related
Published
2021-12-20T18:25:46Z
Modified
2023-11-08T04:03:09.483949Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Insecure permissions on user namespace / fakeroot temporary rootfs in Singularity
Details

Impact

Insecure permissions on temporary directories used in fakeroot or user namespace container execution.

When a Singularity action command (run, shell, exec) is run with the fakeroot or user namespace option, Singularity will extract a container image to a temporary sandbox directory. Due to insecure permissions on the temporary directory it is possible for any user with access to the system to read the contents of the image. Additionally, if the image contains a world-writable file or directory, it is possible for a user to inject arbitrary content into the running container.

Patches

This issue is addressed in Singularity 3.6.3.

All users are advised to upgrade to 3.6.3.

Workarounds

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.

For more information

General questions about the impact of the advisory / changes made in the 3.6.0 release can be asked in the:

Any sensitive security concerns should be directed to: security@sylabs.io

See our Security Policy here: https://sylabs.io/security-policy

Database specific
{
    "nvd_published_at": "2020-09-16T18:15:00Z",
    "github_reviewed_at": "2021-05-24T17:12:01Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-668",
        "CWE-732"
    ]
}
References

Affected packages

Go / github.com/sylabs/singularity

Package

Name
github.com/sylabs/singularity
View open source insights on deps.dev
Purl
pkg:golang/github.com/sylabs/singularity

Affected ranges

Type
SEMVER
Events
Introduced
3.2.0
Fixed
3.6.3