CVE-2021-29499: Github.com/sylabs/sif Predictable SIF UUID Identifiers Vulnerability
HIGHCVE-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.
CVE-2021-29499 at a Glance
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).
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.
Upgrade github.com/sylabs/sif to 1.2.3
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
CVE-2021-29499 Affected Github.com/sylabs/sif Versions
1 component(s)| 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?
Which Github.com/sylabs/sif versions are affected?
What version fixes CVE-2021-29499?
Is github.com/sylabs/sif affected?
What is the CVSS score of CVE-2021-29499?
What CWE is associated with CVE-2021-29499?
How can I check Go dependencies for CVE-2021-29499?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}