GHSA-3669-72x9-r9p3
HIGHCVE-2024-37298Running schema.Decoder.Decode() on a struct that has a field of type []struct{...} opens it up to malicious attacks regarding memory allocations, taking advantage of the sparse slice functionality. For instance, in the Proof of Concept written below, someone can specify to set a field of the billionth element and it will allocate all other elements before it in the slice.
- Affected
- < 1.4.1
- Fixed in
- 1.4.1
- Weakness
- CWE-770
- Published
- 2024-07-01
- Source
- github