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

PackageVersions
Go · stdlibintroduced 0, fixed 1.17.11, introduced 1.18.0-0, fixed 1.18.3

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database