CVE-2021-4238
goutils: RandomAlphaNumeric and CryptoRandomAlphaNumeric are not as random as they should be
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux. Rated lower by Red Hat (high), GHSA (low).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | influxdb | 0:2.7.3-3.azl3 |
| chainguard | dynamic-localpv-provisioner, dynamic-localpv-provisioner-fips | 3.4.1-r3 and 1 more |
| go::GitHub Security Advisory Go | github.com/Masterminds/goutils | 1.1.1 |
| wolfi | dynamic-localpv-provisioner | 3.4.1-r3 |
Show all 5 entries from 4 sources
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | influxdb | 0:2.7.3-3.azl3 |
| chainguard | dynamic-localpv-provisioner | 3.4.1-r3 |
| chainguard | dynamic-localpv-provisioner-fips | 3.5.0-r0 |
| go::GitHub Security Advisory Go | github.com/Masterminds/goutils | 1.1.1 |
| wolfi | dynamic-localpv-provisioner | 3.4.1-r3 |
References
- https://access.redhat.com/security/cve/CVE-2021-4238
- https://github.com/Masterminds/goutils
- https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1
- https://github.com/Masterminds/goutils/commit/f1923532a168b8203bfe956d8cd3b17ebece5982
- https://github.com/Masterminds/goutils/releases/tag/v1.1.1
- https://github.com/Masterminds/goutils/security/advisories/GHSA-xg2h-wx96-xgxr
- https://github.com/advisories/GHSA-3839-6r69-m497
- https://nvd.nist.gov/vuln/detail/CVE-2021-4238