GHSA-4gh8-x3vv-phhg

Suggest an improvement
Source
https://github.com/advisories/GHSA-4gh8-x3vv-phhg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-4gh8-x3vv-phhg/GHSA-4gh8-x3vv-phhg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4gh8-x3vv-phhg
Aliases
Related
Published
2021-05-18T18:30:38Z
Modified
2024-08-21T15:58:39.919432Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Predictable SIF UUID Identifiers in github.com/sylabs/sif
Details

Impact

The siftool new command and func siftool.New() produce predictable UUID identifiers due to insecure randomness in the version of the github.com/satori/go.uuid module used as a dependency.

Patches

A patch is available in version >= v1.2.3 of the module. Users are encouraged to upgrade.

The patch is commit https://github.com/sylabs/sif/commit/193962882122abf85ff5f5bcc86404933e71c07d

Workarounds

Users passing CreateInfo struct should ensure the ID field is generated using a version of github.com/satori/go.uuid that is not vulnerable to this issue. Unfortunately, the latest tagged release is vulnerable to this issue. One way to obtain a non-vulnerable version is:

go get github.com/satori/go.uuid@75cca531ea763666bc46e531da3b4c3b95f64557

References

  • https://github.com/satori/go.uuid/issues/73

For more information

If you have any questions or comments about this advisory: * Open an issue in github.com/sylabs/sif * Email us at security@sylabs.io

Database specific
{
    "nvd_published_at": "2021-05-07T21:15:00Z",
    "github_reviewed_at": "2021-05-07T17:01:30Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-330",
        "CWE-340"
    ]
}
References

Affected packages

Go / github.com/sylabs/sif

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.3