GHSA-3839-6r69-m497: Duplicate Advisory GoUtils's Randomly-generated Alphanumeric Strings Contain Vulnerability

CRITICAL
CVSS 9.1
CWE-331
Published
Advisory Summary

GHSA-3839-6r69-m497 is a CRITICAL (CVSS 9.1) goutils's randomly-generated alphanumeric strings contain vulnerability (CWE-331: Insufficient Entropy) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves goutils's randomly-generated alphanumeric strings contain significantly less entropy than expected. Remediation is available by upgrading affected packages to version 1.1.1.

GHSA-3839-6r69-m497 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3839-6r69-m497
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-331: Insufficient Entropy
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:N/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 None (I:N)
Availability High (A:H)

How to Fix GHSA-3839-6r69-m497

To remediate this vulnerability, upgrade all affected Duplicate 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/Masterminds/goutils fixed: 1.1.1
Upgrade github.com/Masterminds/goutils to 1.1.1
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/Masterminds/goutils

How to Check if You Are Affected

To determine whether your application is affected by GHSA-3839-6r69-m497, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/Masterminds/goutils

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), 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-331: Insufficient Entropy, where the product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others. In Duplicate 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-xg2h-wx96-xgxr. This link is maintained to preserve external references. ## Original Description Randomly-generated alphanumeric strings contain significantly less entropy than expected. The `RandomAlphaNumeric` and `CryptoRandomAlphaNumeric` functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions.

GHSA-3839-6r69-m497 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/Masterminds/goutils
Go
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is GHSA-3839-6r69-m497?
GHSA-3839-6r69-m497 is a security vulnerability in Duplicate Advisory involving GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected under CWE-331: Insufficient Entropy.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: github.com/Masterminds/goutils.
What version fixes GHSA-3839-6r69-m497?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/Masterminds/goutils affected?
Yes, github.com/Masterminds/goutils is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What is the CVSS score of GHSA-3839-6r69-m497?
GHSA-3839-6r69-m497 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.
What CWE is associated with GHSA-3839-6r69-m497?
GHSA-3839-6r69-m497 is classified under CWE-331: Insufficient Entropy (The product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others.).
How can I check Go dependencies for GHSA-3839-6r69-m497?
Run the dependency tree command: 'inspect dependencies for github.com/Masterminds/goutils'. 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-3839-6r69-m497",
  "modified" : "2026-01-23T22:51:27Z",
  "published" : "2022-12-28T00:30:23Z",
  "withdrawn" : "2026-01-23T22:51:27Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-xg2h-wx96-xgxr. This link is maintained to preserve external references.\n\n## Original Description\nRandomly-generated alphanumeric strings contain significantly less entropy than expected. The `RandomAlphaNumeric` and `CryptoRandomAlphaNumeric` functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/Masterminds/goutils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4238"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Masterminds/goutils"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-0411"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-331" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-30T18:53:53Z",
    "nvd_published_at" : "2022-12-27T22:15:00Z"
  }
}