Security mailing lists by PureSourceCode

CVE-2021-4238

CRITICAL 9.1CVSS 3.1

Duplicate Advisory: GoUtils's randomly-generated alphanumeric strings contain significantly less entropy than expected

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.

Published
27 Dec 2022
Last modified
10 Sep 2026
Assigned by
security@golang.org
NVD status
Modified
Weakness
CWE-331
Also known as
GHSA-3839-6r69-m497GHSA-xg2h-wx96-xgxrGO-2022-0411
Sources
NVDJSONOSV GHSA-3839-6r69-m497JSONOSV GHSA-xg2h-wx96-xgxrJSONOSV GO-2022-0411JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD goutils_project goutils
cpe:2.3:a:goutils_project:goutils:*:*:*:*:*:go:*:*
< 1.1.1 1.1.1
OSV Go github.com/Masterminds/goutils < 1.1.1 1.1.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 May 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 28 Dec 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.