Go Vulnerability Database
GO-2022-0963
Resource exhaustion in github.com/gagliardetto/binary
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/gagliardetto/binary | All versions before 0.7.1 (fixed in 0.7.1) |