Security mailing lists by PureSourceCode

GO-2021-0225

not scored yetwithdrawn / rejected

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

With the update, ReadUvarint and ReadVarint now always return after consuming
a bounded number of bytes (specifically, MaxVarintLen64, which is 10). The
result being returned has not changed; the functions merely detect and return
some errors without reading as much input.

Published
13 Jan 2022
Last modified
13 May 2022
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go encoding/binary < 1.13.15; >= 1.14.0, < 1.14.7 1.13.15, 1.14.7

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Jan 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.