GO-2022-0477

Source
https://pkg.go.dev/vuln/GO-2022-0477
Import Source
https://vuln.go.dev/ID/GO-2022-0477.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2022-0477
Aliases
Published
2022-06-09T01:43:37Z
Modified
2026-03-17T04:19:46Z
Summary
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.

Database specific
{
    "review_status":  "REVIEWED",
    "url":  "https://pkg.go.dev/vuln/GO-2022-0477"
}
References
Credits
    • Davis Goodin
    • Quim Muntal of Microsoft

Affected packages

Go / stdlib

Package

Name
stdlib
View open source insights on deps.dev
Purl
pkg:golang/stdlib

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.17.11
Introduced
1.18.0-0
Fixed
1.18.3

Ecosystem specific

{
    "imports":  [
        {
            "goos":  [
                "windows"
            ],
            "path":  "crypto/rand",
            "symbols":  [
                "Read"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2022-0477.json"