VDB
Sign up
—

GO-2022-0963

Resource exhaustion in github.com/gagliardetto/binary

Quick fix

GO-2022-0963 — github.com/gagliardetto/binary: upgrade to the fixed version with the command below.

go get github.com/gagliardetto/binary@v0.7.1

Details

A memory allocation vulnerability can be exploited to allocate arbitrarily large slices, which can exhaust available memory or crash the program.

When parsing data from untrusted sources of input (e.g. the blockchain), the length of the slice to allocate is read directly from the data itself without any checks, which could lead to an allocation of excessive memory.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/gagliardetto/binary
Introduced in: 0Fixed in: 0.7.1
Fixgo get github.com/gagliardetto/binary@v0.7.1

References