Vulnerabilities in pkg:golang/github.com/sylabs/sif

PACKAGE
Advisory Identifier: GHSA-4gh8-x3vv-phhg
Advisory Summary

CVE-2021-29499 is a HIGH (CVSS 7.5) predictable sif uuid identifiers vulnerability (CWE-330: Use of Insufficiently Random Values) affecting Github.com/sylabs/sif libraries in the Go ecosystem. The issue involves predictable sif uuid identifiers in github.com/sylabs/sif. Remediation is available by upgrading affected packages to version 1.2.3.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/sylabs/sif

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/sylabs/sif. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-4gh8-x3vv-phhg CVE-2021-29499 HIGH Predictable SIF UUID Identifiers in github.com/sylabs/sif

CVE-2021-29499 at a Glance

CVE Identifier CVE-2021-29499
GHSA Identifier GHSA-4gh8-x3vv-phhg
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-330: Use of Insufficiently Random Values
Affected Product Github.com/sylabs/sif
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2021-29499

To remediate this vulnerability, upgrade all affected Github.com/sylabs/sif dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/sylabs/sif fixed: 1.2.3
Upgrade github.com/sylabs/sif to 1.2.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/sylabs/sif

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-29499, inspect your project dependencies for Github.com/sylabs/sif:

inspect dependencies for github.com/sylabs/sif

Analyze the terminal output to locate any version of Github.com/sylabs/sif in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-330: Use of Insufficiently Random Values, where the product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. In Github.com/sylabs/sif, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact The `siftool new` command and [func siftool.New()](https://pkg.go.dev/github.com/sylabs/sif/pkg/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](https://pkg.go.dev/github.com/sylabs/sif/pkg/sif#CreateInfo) 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](https://github.com/sylabs/sif/issues/new) * Email us at [security@sylabs.io](mailto:security@sylabs.io)

CVE-2021-29499 Affected Github.com/sylabs/sif Versions

1 component(s)
Fixed Versions:
1.2.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/sylabs/sif
Go
< 1.2.3
1.2.3

References

Frequently Asked Questions

What is CVE-2021-29499?
CVE-2021-29499 is a security vulnerability in Github.com/sylabs/sif involving Predictable SIF UUID Identifiers in github.com/sylabs/sif under CWE-330: Use of Insufficiently Random Values.
Which Github.com/sylabs/sif versions are affected?
Affected versions include releases prior to 1.2.3 across affected packages: github.com/sylabs/sif.
What version fixes CVE-2021-29499?
Upgrading to 1.2.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/sylabs/sif affected?
Yes, github.com/sylabs/sif is affected in releases prior to 1.2.3. Upgrade your dependency to 1.2.3 or later.
What is the CVSS score of CVE-2021-29499?
CVE-2021-29499 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2021-29499?
CVE-2021-29499 is classified under CWE-330: Use of Insufficiently Random Values (The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.).
How can I check Go dependencies for CVE-2021-29499?
Run the dependency tree command: 'inspect dependencies for github.com/sylabs/sif'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4gh8-x3vv-phhg",
  "modified" : "2023-01-10T16:09:36Z",
  "published" : "2021-05-18T18:30:38Z",
  "aliases" : [ "CVE-2021-29499" ],
  "summary" : "Predictable SIF UUID Identifiers in github.com/sylabs/sif",
  "details" : "### Impact\n\nThe `siftool new` command and [func siftool.New()](https://pkg.go.dev/github.com/sylabs/sif/pkg/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.\n\n### Patches\n\nA patch is available in version >= v1.2.3 of the module. Users are encouraged to upgrade.\n\nThe patch is commit https://github.com/sylabs/sif/commit/193962882122abf85ff5f5bcc86404933e71c07d\n\n### Workarounds\nUsers passing [CreateInfo struct](https://pkg.go.dev/github.com/sylabs/sif/pkg/sif#CreateInfo) 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:\n\n```\ngo get github.com/satori/go.uuid@75cca531ea763666bc46e531da3b4c3b95f64557\n```\n\n### References\n* https://github.com/satori/go.uuid/issues/73\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github.com/sylabs/sif](https://github.com/sylabs/sif/issues/new)\n* Email us at [security@sylabs.io](mailto:security@sylabs.io)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/sylabs/sif"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sylabs/sif/security/advisories/GHSA-4gh8-x3vv-phhg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-29499"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/satori/go.uuid/issues/73"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sylabs/sif/commit/193962882122abf85ff5f5bcc86404933e71c07d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sylabs/sif"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-330", "CWE-340" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-07T17:01:30Z",
    "nvd_published_at" : "2021-05-07T21:15:00Z"
  }
}