Insecure Randomness Affecting github.com/masterminds/goutils package, versions <1.1.1


0.0
medium

Snyk CVSS

    Attack Complexity High

    Threat Intelligence

    EPSS 0.15% (52nd percentile)
Expand this section
NVD
9.1 critical
Expand this section
Red Hat
7 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMMASTERMINDSGOUTILS-3121153
  • published 16 Nov 2022
  • disclosed 1 Jul 2022
  • credit Unknown

How to fix?

Upgrade github.com/masterminds/goutils to version 1.1.1 or higher.

Overview

github.com/masterminds/goutils is a provides users with utility functions to manipulate strings in various ways.

Affected versions of this package are vulnerable to Insecure Randomness when 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.

References