CVE-2021-3538
CRITICAL 9.8CVSS 3.1go.uuid has Predictable UUID Identifiers
A flaw was found in github.com/satori/go.uuid in versions from commit 0ef6afb2f6cdd6cdaeee3885a95099c63f18fc8c to d91630c8510268e75203009fe7daf2b8e1d60c45. Due to insecure randomness in the g.rand.Read function the generated UUIDs are predictable for an attacker.
- Published
- 2 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-338
- Also known as
- GHSA-33m6-q9v5-62r7GO-2022-0244
- Sources
- NVDJSONOSV GHSA-33m6-q9v5-62r7JSONOSV GO-2022-0244JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | satori | uuidcpe:2.3:a:satori:uuid:-:*:*:*:*:go:*:* |
(no version) | |
| OSV | Go | github.com/satori/go.uuid | >= 1.2.1-0.20180103161547-0ef6afb2f6cd, < 1.2.1-0.20180404165556-75cca531ea76 | 1.2.1-0.20180404165556-75cca531ea76 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1954376 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/satori/go.uuid/issues/73 · Third Party Advisory, WEB, REPORT
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMSATORIGOUUID-72488 · Third Party Advisory, WEB
- https://github.com/apptainer/sif/security/advisories/GHSA-33m6-q9v5-62r7 · WEB
- https://github.com/hpcng/sif/security/advisories/GHSA-33m6-q9v5-62r7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3538 · ADVISORY
- https://github.com/satori/go.uuid/pull/75 · WEB, FIX
- https://github.com/satori/go.uuid/commit/75cca531ea763666bc46e531da3b4c3b95f64557 · WEB, FIX
- https://github.com/satori/go.uuid · PACKAGE
- https://pkg.go.dev/vuln/GO-2022-0244 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 2 Jun 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 7 Feb 2023)