GO-2022-0477
Indefinite hang with large buffers on Windows in crypto/rand
At a glance
- Published
- Updated
- CVE
- CVE-2022-30634
- Aliases
- BIT-golang-2022-30634
Description
On Windows, rand.Read will hang indefinitely if passed a buffer larger than 1 << 32 - 1 bytes.
Affected packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.17.11, introduced 1.18.0-0, fixed 1.18.3 |
References
- https://go.dev/cl/402257 FIX
- https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863 FIX
- https://go.dev/issue/52561 REPORT
- https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |