Advisory

GO-2021-0142

Also known as: BIT-golang-2020-16845, CVE-2020-16845, GHSA-q6gq-997w-f55g

Summary

Unbounded read from invalid inputs in encoding/binary

Details

ReadUvarint and ReadVarint can read an unlimited number of bytes from invalid inputs.

Certain invalid inputs to ReadUvarint or ReadVarint can cause these functions to read an unlimited number of bytes from the ByteReader parameter before returning an error. This can lead to processing more input than expected when the caller is reading directly from a network and depends on ReadUvarint or ReadVarint only consuming a small, bounded number of bytes, even from invalid inputs.

Severity

Not rated by the source.

Dates

Published
2022-07-01 20:11 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.13.15, introduced 1.14.0-0, fixed 1.14.7 (semver)

Fixed versions

1.13.15, 1.14.7

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