CVE-2024-37298
HIGH 7.5CVSS 3.1Potential memory exhaustion attack due to sparse slice deserialization
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.
- Published
- 1 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-770
- Also known as
- GHSA-3669-72x9-r9p3GO-2024-2958
- Sources
- NVDJSONOSV GHSA-3669-72x9-r9p3JSONOSV GO-2024-2958JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/gorilla/schema | < 1.4.1 | 1.4.1 |
References
- https://github.com/gorilla/schema/blob/main/decoder.go#L223 · WEB
- https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff · WEB, FIX
- https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-37298 · ADVISORY
- https://github.com/gorilla/schema · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 1 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Jul 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2024)