Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-4238

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-4238
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:21 UTC · Revision 1

Source evidence

CVE-2021-4238

core-osv · Original source

Published 27 Dec 2022, 22:15 UTC

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.

osv:CVE-2021-4238
Complete source record
{
  "id": "388acb74b318960849abb6f9511855869df5c4d23ec71a8a6074f1e26744f2cf",
  "url": "https://osv.dev/vulnerability/CVE-2021-4238",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-4238",
    "summary": "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.",
    "evidence": "osv:CVE-2021-4238",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-4238",
      "aliases": [
        "CVE-2021-4238",
        "GHSA-3839-6r69-m497",
        "GHSA-xg2h-wx96-xgxr",
        "GO-2022-0411"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/masterminds/goutils",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f1923532a168b8203bfe956d8cd3b17ebece5982"
                },
                {
                  "fixed": "869801f20f9f1e7ecdbdb6422049d8241270d5e1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:goutils_project:goutils:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.1.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "869801f20f9f1e7ecdbdb6422049d8241270d5e1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.1.0",
            "v1.0.1",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4238.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:04.513560618Z",
      "provider": "osv",
      "references": [
        "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1",
        "https://pkg.go.dev/vuln/GO-2022-0411"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-4238",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384842,
  "published_at": "2022-12-27T22:15:12.073+00:00"
}