What’s Vulnerable › Vulnerabilities
CVE-2022-30634: Indefinite hang with large buffers on Windows in crypto/rand
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-07-15 · updated 2026-06-17
- Weakness: CWE-835
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.
Affected products
- Go: before 1.17.11; from 1.18.0 before 1.18.3 — fixed in 1.17.11, 1.18.3
- NetApp Cloud Insights Telegraf Agent: all versions
How to fix
Upgrade to a fixed version: Go 1.17.11, 1.18.3. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/402257
- https://go.dev/issue/52561
- https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
- https://pkg.go.dev/vuln/GO-2022-0477
- https://go.dev/cl/402257
- https://go.dev/issue/52561
- https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
- https://pkg.go.dev/vuln/GO-2022-0477
Get alerted when CVE-2022-30634 or the next vulnerability affects your stack