CVE-2022-30634: Indefinite hang with large buffers on Windows in crypto/rand
Vulnerability summary
CVE-2022-30634 is a high (CVSS 7.5) Loop with Unreachable Exit Condition vulnerability in go standard library crypto/rand. EPSS estimates a 2.28% chance of exploitation in the next 30 days, higher than 83.1% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 5Timeline
- 15-07-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
Infinite loop in Read in crypto/rand before Go 1.17.11 and Go 1.18.3 on Windows allows attacker to cause an indefinite hang by passing a buffer larger than 1 << 32 - 1 bytes.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
2.28%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 2.26% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (go.dev)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu2 products
- golang-1.17All versions (No fix recorded)
- golang-1.8All versions (No fix recorded)
Alpine1 product
- go≥ 1.18.0, < 1.18.4-r0
Go1 product
- stdlib≥ 1.18.0-0, < 1.18.3
Go standard library1 product
- crypto/rand< 1.17.11 | ≥ 1.18.0-0, < 1.18.3
Golang1 product
- go< 1.17.11 | ≥ 1.18.0, < 1.18.3
Netapp1 product
6 vendors · 7 products
References
11 links- pkg.go.dev/vuln/GO-2022-0477Third Party Advisory