{"id":"CVE-2024-37298","published":"2024-07-01T18:27:33Z","modified":"2024-08-02T03:50:55Z","title":"Potential memory exhaustion attack due to sparse slice deserialization","vendor":"gorilla","product":"schema","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01371,"percentile":0.7206,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","tags":["x_refsource_MISC"]},{"url":"https://github.com/gorilla/schema/blob/main/decoder.go#L223","tags":["x_refsource_MISC"]}],"priority":{"score":19.7,"factors":[{"name":"EPSS percentile","points":14.41},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"gorilla","affectedVersions":[{"vendor":"gorilla","product":"schema","versions":["< 1.4.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-02T14:16:14.834696Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gorilla/schema","vulnerableRanges":["<1.4.1"],"patched":["1.4.1"],"from":["GHSA-3669-72x9-r9p3","GO-2024-2958"],"provenance":"source"}],"summary":{"text":"The gorilla/schema library, which converts form values to and from structs, contains a flaw in its schema.Decoder.Decode() function when it is applied to a struct with a field of type []struct{...}, where the sparse slice handling allows excessive memory allocation. An attacker who can send network requests to an application that decodes form input into such a struct, with no authentication or user interaction required, can exhaust the process's memory and cause availability loss; the flaw is fixed in version 1.4.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:33Z"},"euvd":{"id":"EUVD-2024-2233","exploited":false,"provenance":"source"}}