Live threats

All CVEs / Goutils Project

CVE-2021-4238Goutils Project Goutils

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
Dec 27, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-331
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Goutils.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/Masterminds/goutils < 1.1.1 1.1.1 go get github.com/Masterminds/goutils@v1.1.1
Go github.com/Masterminds/goutils < 1.1.1 1.1.1 go get github.com/Masterminds/goutils@v1.1.1

Per OSV / GitHub Advisories (GHSA-xg2h-wx96-xgxr, GO-2022-0411). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
goutils_projectgoutils< 1.1.1

Official sources

References

Links published by the sources. Open them with care.