CVE-2024-37298
Potential memory exhaustion attack due to sparse slice deserialization in github.com/gorilla/schema
7.5
HIGH
CVSS 3.1
EPSS 0.27%
Description
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.
How to fix CVE-2024-37298
To remediate CVE-2024-37298, upgrade the affected package to a fixed version below.
- —no fix listed
- —upgrade to 1.4.1 or later
- —upgrade to 1.4.1 or later
Is CVE-2024-37298 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- from 0
- from 0, < 1.4.1
- from 0, < 1.4.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |