Advisory

GO-2022-0477

Also known as: BIT-golang-2022-30634, CVE-2022-30634

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.

Severity

Not rated by the source.

Dates

Published
2022-06-09 01:43 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.17.11, introduced 1.18.0-0, fixed 1.18.3 (semver)

Fixed versions

1.17.11, 1.18.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences