GHSA-rc7v-65v6-m2v3: Withdrawn Advisory Go-mysql Affected By Go.uuid's Predictable Vulnerability

CRITICAL
CVSS 9.8
CWE-338
Published
Advisory Summary

GHSA-rc7v-65v6-m2v3 is a CRITICAL (CVSS 9.8) go-mysql affected by go.uuid's predictable vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Withdrawn Advisory libraries in the Go ecosystem. The issue involves go-mysql affected by go.uuid's predictable uuid identifiers. Remediation is available by upgrading affected packages to version 1.5.0.

GHSA-rc7v-65v6-m2v3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rc7v-65v6-m2v3
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Withdrawn Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.8

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:H/I:H/A:H).

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 High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-rc7v-65v6-m2v3

To remediate this vulnerability, upgrade all affected Withdrawn Advisory 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/go-mysql-org/go-mysql fixed: 1.5.0
Upgrade github.com/go-mysql-org/go-mysql to 1.5.0
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/go-mysql-org/go-mysql

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rc7v-65v6-m2v3, inspect your project dependencies for Withdrawn Advisory:

inspect dependencies for github.com/go-mysql-org/go-mysql

Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), 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-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Withdrawn Advisory, 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

## Withdrawn Advisory This advisory has been withdrawn because the vulnerability does not affect a released version of the `github.com/go-mysql-org/go-mysql` package. For more information, see https://github.com/github/advisory-database/pull/4990. ## Original Advisory Affected by CVE-2021-3538

GHSA-rc7v-65v6-m2v3 Affected Withdrawn Advisory Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/go-mysql-org/go-mysql
Go
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is GHSA-rc7v-65v6-m2v3?
GHSA-rc7v-65v6-m2v3 is a security vulnerability in Withdrawn Advisory involving go-mysql affected by go.uuid's Predictable UUID Identifiers under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: github.com/go-mysql-org/go-mysql.
What version fixes GHSA-rc7v-65v6-m2v3?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/go-mysql-org/go-mysql affected?
Yes, github.com/go-mysql-org/go-mysql is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What is the CVSS score of GHSA-rc7v-65v6-m2v3?
GHSA-rc7v-65v6-m2v3 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-rc7v-65v6-m2v3?
GHSA-rc7v-65v6-m2v3 is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.).
How can I check Go dependencies for GHSA-rc7v-65v6-m2v3?
Run the dependency tree command: 'inspect dependencies for github.com/go-mysql-org/go-mysql'. 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-rc7v-65v6-m2v3",
  "modified" : "2024-11-08T17:25:16Z",
  "published" : "2024-10-28T15:12:22Z",
  "withdrawn" : "2024-11-08T17:25:16Z",
  "aliases" : [ ],
  "summary" : "Withdrawn Advisory: go-mysql affected by go.uuid's Predictable UUID Identifiers",
  "details" : "## Withdrawn Advisory\n\nThis advisory has been withdrawn because the vulnerability does not affect a released version of the `github.com/go-mysql-org/go-mysql` package.  For more information, see https://github.com/github/advisory-database/pull/4990.\n\n## Original Advisory\n\nAffected by CVE-2021-3538",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/go-mysql-org/go-mysql"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/apptainer/sif/security/advisories/GHSA-33m6-q9v5-62r7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/go-mysql-org/go-mysql/security/advisories/GHSA-rc7v-65v6-m2v3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hpcng/sif/security/advisories/GHSA-33m6-q9v5-62r7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/pull/4990"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/go-mysql-org/go-mysql"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-338" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-28T15:12:22Z",
    "nvd_published_at" : null
  }
}