{"cve":"CVE-2024-37298","nvd":{"published":"2024-07-01T19:15:04.283","modified":"2026-06-17T07:38:05.733","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-770"],"references":["https://github.com/gorilla/schema/blob/main/decoder.go#L223","https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff","https://github.com/gorilla/schema/security/advisories/GHSA-3669-72x9-r9p3","https://github.com/gorilla/schema/blob/main/decoder.go#L223","https://github.com/gorilla/schema/commit/cd59f2f12cbdfa9c06aa63e425d1fe4a806967ff"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-37298","score":0.01096,"percentile":0.65573,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3669-72x9-r9p3","url":"https://osv.dev/vulnerability/GHSA-3669-72x9-r9p3","summary":"Potential memory exhaustion attack due to sparse slice deserialization","modified":"2026-09-10T03:50:16.191599309Z","packages":[{"ecosystem":"Go","name":"github.com/gorilla/schema","purl":"pkg:golang/github.com/gorilla/schema","ranges":["<1.4.1"],"fixed":["1.4.1"]}]},{"id":"GO-2024-2958","url":"https://osv.dev/vulnerability/GO-2024-2958","summary":"Potential memory exhaustion attack due to sparse slice deserialization in github.com/gorilla/schema","modified":"2026-02-04T02:53:15.821632Z","packages":[{"ecosystem":"Go","name":"github.com/gorilla/schema","purl":"pkg:golang/github.com/gorilla/schema","ranges":["<1.4.1"],"fixed":["1.4.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}