gorilla/schema converts structs to and from form values. Prior to version 1.4.1 Running…
Historical advisory recorded 25 Oct 2026 00:17:15 UTC. Read the latest advisory.
nvd · CVE-2024-37298
Publishedgorilla/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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2024-37298
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-770
Original publisher date fields
published: 2024-07-01T19:15:04.283
lastModified: 2026-06-17T07:38:05.733
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON