Back
CVE-2022-30634
Indefinite hang with large buffers on Windows in crypto/rand
High7.5EPSS 2.3%
- Published
- Updated
- Reserved
- Assigned by
- Go
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 2.3% · top 17% of all CVEs (6 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
- CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
- CWE-835 (opens in a new tab)All about CWE-835 and its CVEs
Affected products
Go standard library · crypto/rand
- affected < 1.17.11
- affected 1.18.0-0 – < 1.18.3
References (5)
- https://go.dev/cl/402257 (opens in a new tab)x_transferred
- https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863 (opens in a new tab)x_transferred
- https://go.dev/issue/52561 (opens in a new tab)x_transferred
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ (opens in a new tab)x_transferred
- https://pkg.go.dev/vuln/GO-2022-0477 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-30634)Record last updated .