Lucene search

K
cvelistGoCVELIST:CVE-2021-4238
HistoryDec 27, 2022 - 9:13 p.m.

CVE-2021-4238 Insufficient randomness in github.com/Masterminds/goutils

2022-12-2721:13:50
Go
www.cve.org

9.3 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

53.9%

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.

CNA Affected

[
  {
    "vendor": "github.com/Masterminds/goutils",
    "product": "github.com/Masterminds/goutils",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "github.com/Masterminds/goutils",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.1.1",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "RandomAlphaNumeric"
      },
      {
        "name": "CryptoRandomAlphaNumeric"
      }
    ],
    "defaultStatus": "unaffected"
  }
]

9.3 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

53.9%