golang-github-masterminds-goutils — security advisory
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.
- Products
- golang-github-masterminds-goutils
- Affected versions
- 1.1.1-2, 1.1.1-4
- Fixed versions
- Not specified
- CVEs
- CVE-2021-4238
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:54 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2021-4238
golang-github-masterminds-goutils
Fixed versions: Not specified
golang-github-masterminds-goutils
Fixed versions: Not specified
golang-github-masterminds-goutils
Fixed versions: Not specified
golang-github-masterminds-goutils
Fixed versions: Not specified
golang-github-masterminds-goutils
Fixed versions: Not specified
Complete source record
{
"id": "690bdf82c7b2529e88473d6de997d292ae86fdafcb76f888201b7833a187a286",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-4238",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2021-4238",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2021-4238",
"products": [
{
"name": {
"value": "golang-github-masterminds-goutils",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-github-masterminds-goutils",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-4",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-github-masterminds-goutils",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "golang-github-masterminds-goutils",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "golang-github-masterminds-goutils",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-4",
"evidence": "/affected/4/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2021-4238",
"aliases": [
"UBUNTU-CVE-2021-4238"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-masterminds-goutils",
"purl": "pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.1.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-masterminds-goutils-dev",
"binary_version": "1.1.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-masterminds-goutils",
"purl": "pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.1.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-masterminds-goutils-dev",
"binary_version": "1.1.1-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-masterminds-goutils",
"purl": "pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.1.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-masterminds-goutils-dev",
"binary_version": "1.1.1-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-masterminds-goutils",
"purl": "pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.1.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-masterminds-goutils-dev",
"binary_version": "1.1.1-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-masterminds-goutils",
"purl": "pkg:deb/ubuntu/golang-github-masterminds-goutils?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.1.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-4238.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-github-masterminds-goutils-dev",
"binary_version": "1.1.1-4"
}
]
}
}
],
"modified": "2026-10-17T12:56:15.606041017Z",
"provider": "osv",
"upstream": [
"CVE-2021-4238"
],
"references": [
"https://ubuntu.com/security/CVE-2021-4238",
"https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1",
"https://pkg.go.dev/vuln/GO-2022-0411",
"https://www.cve.org/CVERecord?id=CVE-2021-4238"
]
},
"related_cves": [
{
"value": "CVE-2021-4238",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 355062,
"published_at": "2022-12-27T22:15:00+00:00"
}