ADVISORIES

Go Vulnerability Database

GO-2022-0477

Indefinite hang with large buffers on Windows in crypto/rand

Details

On Windows, rand.Read will hang indefinitely if passed a buffer larger than 1 << 32 - 1 bytes.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.17.11 (fixed in 1.17.11)
From 1.18.0-0 before 1.18.3 (fixed in 1.18.3)

References