CVE-2021-3538 json
go.uuid has Predictable UUID Identifiers
published 2021-06-02 5 y ago modified 2026-06-17 4 mo ago also GHSA-33m6-q9v5-62r7 , GO-2022-0244 , EUVD-2023-0607
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/satori/go.uuid 1.2.1-0.20180404165556-75cca531ea76
- github.com/satori/go.uuid@75cca53 commit
- github.com/satori/go.uuid#75 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3538 updated cvss 9.8
satori/go.uuid: predictable UUIDs generated via insecure randomness
-
Red Hat OpenStack Platform 16.2 smart-gateway-containeraffected: no fix available
-
Red Hat Migration Toolkit for Containers rhmtc/openshift-migration-velero-rhel8, rhmtc/openshift-migration-registry-rhel8, rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-velero-plugin-for-gcp-rhel8, rhmtc/openshift-migration-velero-plugin-for-microsoft-azure-rhel8 Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/search-rhel8, rhacm2/subctl-rhel9, rhacm2/thanos-rhel7, rhacm2/acm-grafana-rhel8, rhacm2/observatorium-rhel8, rhacm2/openshift-hive-rhel8, +33 more Red Hat OpenShift Container Platform 4 openshift, openshift-clients, openshift-kubelet, openshift-hyperkube, openshift4/ose-tests, openshift-kube-apiserver, +17 more Red Hat OpenShift Container Platform Assisted Installer 1 rhai-tech-preview/assisted-installer-rhel8, rhai-tech-preview/assisted-installer-agent-rhel8, rhai-tech-preview/assisted-installer-reporter-rhel8 Red Hat Openshift Container Storage 4 mcg, ocs4/cephcsi-rhel8, ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/ocs-must-gather-rhel8, ocs4/rook-ceph-rhel8-operator Red Hat OpenShift Virtualization 2 ovs-cni-marker-container, ovs-cni-plugin-container, vm-import-virtv2v-container, vm-import-operator-container, node-maintenance-operator-container, kubernetes-nmstate-handler-container, +6 morenot affected: vulnerable code not present
+3 more productsfewer
Red Hat OpenShift Virtualization 4 container-native-virtualization/ovs-cni-marker, container-native-virtualization/ovs-cni-plugin, container-native-virtualization/vm-import-virtv2v-rhel8, container-native-virtualization/vm-import-operator-rhel8, container-native-virtualization/node-maintenance-operator, container-native-virtualization/vm-import-controller-rhel8, +5 more Red Hat OpenStack Platform 16.1 smart-gateway-container Red Hat Quay 3 quay/clair-rhel8, quay/quay-builder-rhel8, quay/quay-operator-rhel8
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.31% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/satori/go.uuid | >=1.2.1-0.20180103161547-0ef6afb2f6cd, <1.2.1-0.20180404165556-75cca531ea76 |
1.2.1-0.20180404165556-75cca531ea76 |
Affected products
- n/a satori/go.uuid
Classification
- Weakness
-
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
-
github.com
/satori/go.uuid/pull/75
web, patch
-
github.com
/satori/go.uuid/commit/75cca531ea763666bc46e531da3b4c3b95f64557
web, patch
-
bugzilla.redhat.com
/show_bug.cgi?id=1954376
web, issue-tracking, third-party-advisory
-
github.com
/satori/go.uuid/issues/73
web, third-party-advisory, report
-
snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMSATORIGOUUID-72488
web, third-party-advisory
-
github.com
/apptainer/sif/security/advisories/GHSA-33m6-q9v5-62r7
web
-
github.com
/hpcng/sif/security/advisories/GHSA-33m6-q9v5-62r7
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-3538
advisory
-
github.com
/satori/go.uuid
package
-
pkg.go.dev
/vuln/GO-2022-0244
web
Sources
- CVE List CVE-2021-3538
- GitHub Advisory GHSA-33m6-q9v5-62r7
- NVD CVE-2021-3538
- OSV GO-2022-0244
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.