CVE-2024-37298CWE-770

Potential memory exhaustion attack due to sparse slice deserialization

High · published July 1, 2024

CVSS v3.1
7.5
EPSS
1%
Percentile
65.3
In the wild
Unconfirmed
What it is

gorilla/schema converts structs to and from form values. Prior to version 1.4.1 Running `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. Any use of `schema.Decoder.Decode()` on a struct with arrays of other structs could be vulnerable to this memory exhaustion vulnerability. Version 1.4.1 contains a patch for the issue.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01096 · 65.3th percentile
Weakness
CWE-770 · Allocation of Resources Without Limits or Throttling
Published
2024-07-01T18:27Z
EPSS history
Timeline
  • 01 JUL 18:27Z
    Potential memory exhaustion attack due to sparse slice deserialization
    cvelistv5