Secret guessing via forced-digit alphanumeric outputs
Published Dec 27, 2022 · Updated Apr 11, 2025
Insufficient randomness in Masterminds GoUtils before 1.1.1 allows attackers to guess generated secrets through reduced entropy. RandomAlphaNumeric and CryptoRandomAlphaNumeric generated an alphanumeric value, then replaced one character with a digit whenever the value lacked a decimal digit. Exploitation requires a consuming program to use these outputs as security-sensitive secrets; short values expose a smaller keyspace and elevated brute-force and collision risk.
Summary
What happened
Insufficient randomness in Masterminds GoUtils before 1.1.1 allows attackers to guess generated secrets through reduced entropy. RandomAlphaNumeric and CryptoRandomAlphaNumeric generated an alphanumeric value, then replaced one character with a digit whenever the value lacked a decimal digit. Exploitation requires a consuming program to use these outputs as security-sensitive secrets; short values expose a smaller keyspace and elevated brute-force and collision risk.
The record
- CVE
- CVE-2021-4238
- Published
- Dec 27, 2022
- Updated
- Apr 11, 2025
- Vendor
- Masterminds
- Product
- GoUtils
- Classifications
- CWE-331, T1110
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 27, 2022CVE publishedPublication date reported by the CVE source.
- Apr 11, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.1.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo